# Token for SSH Service agents that join the cluster with AWS IAM.
# Pin awsAccount and awsARN to the exact role the host assumes.
apiVersion: almaforge.com/v1
kind: Token
metadata:
  name: ssh-node
spec:
  roles:
    - system:ssh # Token is only valid for SSH Service hosts.
  # Presence of the aws block selects the "aws" join method, which
  # verifies the host via the AWS IAM caller identity.
  aws:
    allow:
      - awsAccount: '123456789012' # AWS account that owns the host identity.
        awsARN: 'arn:aws:sts::123456789012:assumed-role/almaforge-node/*' # Assumed-role ARN. Wildcards widen the trust boundary.
