# Token for SSH Service agents that join with Azure managed identity.
# The allow block restricts joins to one subscription and resource group.
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 azure block selects the "azure" join method, which
  # verifies the host via Azure managed-identity attestation.
  azure:
    allow:
      - subscription: '11111111-1111-1111-1111-111111111111' # Azure subscription containing the VM.
        resourceGroups:
          - 'servers-rg' # Restrict joins to this resource group.
