# Token for SSH Service agents that join with GCE metadata attestation.
# Pin projectIDs and serviceAccounts to the exact host identity.
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 gcp block selects the "gcp" join method, which
  # verifies the host via GCE metadata-server attestation.
  gcp:
    allow:
      - projectIDs:
          - 'my-project' # GCP project hosting the agent.
        serviceAccounts:
          - 'almaforge-node@my-project.iam.gserviceaccount.com' # Service account the VM runs as.
