# Token for App agents that join the cluster via AWS IAM identity.
# Pin awsAccount and awsARN to the exact role the agent assumes.
apiVersion: almaforge.com/v1
kind: Token
metadata:
  name: app-agent
spec:
  roles:
    - system:app # Token is only valid for agents joining as App services.
  aws: # Presence of this block selects the AWS IAM caller-identity join method.
    allow:
      - awsAccount: '123456789012' # AWS account hosting the agent.
        awsARN: 'arn:aws:sts::123456789012:assumed-role/almaforge-agent/*' # Assumed-role ARN; wildcards widen the trust boundary.
