# Grants access to production Redis targets labeled db: redis and env: prod.
# Allows access as the ops database user. Map to an SSO group or use for JIT access.
apiVersion: almaforge.com/v1
kind: Role
metadata:
  name: redis-prod
spec:
  allow:
    databaseLabels: # Targets the user can reach, matched against DatabaseTarget labels.
      db: redis
      env: prod
    databaseUsers: # Accounts the user may connect as with --user.
      - ops
