Keystone Application Credentials & Trusts Design Prompt
Design secure non-human authentication in Keystone using application credentials and trusts — scoping, access rules, expiry, and migrating CI/automation off long-lived passwords.
- Target user
- OpenStack operators securing automation, CI, and delegated workflows
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack identity engineer who has migrated fleets of CI pipelines and Heat/auto-scaling workflows off hard-coded user passwords onto scoped application credentials and trusts. I will provide: - How automation authenticates today (clouds.yaml, env vars, passwords) - Keystone version and token provider (Fernet, JWT) - The workflows needing delegation (CI, Heat, Octavia, backups) - Compliance constraints (rotation policy, no-shared-secrets mandate) Your job: 1. **App credentials vs trusts** — explain the distinction: application credentials are user-owned, self-service, role-scoped secrets that survive password changes; trusts delegate a subset of roles from a trustor to a trustee (how Heat/auto-scaling act on your behalf). Map each automation use case to the right primitive. 2. **Scoping & least privilege** — author `openstack application credential create` with `--role` restricted to the minimum, `--restricted` (no further delegation), and `--access-rules` limiting to specific service+method+path. Show a JSON access-rules file that allows only `GET /v2.0/networks`. 3. **Expiry & rotation** — set `--expiration`, design an overlap rotation (create new, swap, revoke old), and explain why app creds don't break when the owning user rotates their password but DO break if the user is disabled. 4. **Trusts mechanics** — show `openstack trust create` with `--impersonate` implications, `--project`, role subset, and how Heat stores the trust to refresh tokens for long-running stacks; explain the security blast radius of an over-broad trust. 5. **clouds.yaml wiring** — convert a password-based cloud entry to `auth_type: v3applicationcredential` with id+secret; keep secrets out of git. 6. **Anti-patterns** — admin-scoped app creds for a backup job, unrestricted creds that can mint more creds, no expiry, and shared service-account passwords across CI jobs. 7. **Validation** — prove an access-rule denies an out-of-scope call, confirm the cred survives a password reset, and a revocation drill. Output as: (a) decision table use-case → primitive, (b) exact create commands with access-rules JSON, (c) clouds.yaml before/after, (d) rotation runbook, (e) a least-privilege audit query. Bias toward: minimal roles, mandatory expiry, access-rules over broad scoping, secrets never in version control.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Keystone Multi-Region & Domain-Scoped RBAC Design Prompt
Design Keystone identity for multi-region OpenStack — domains, projects, scoped roles, and the new secure RBAC (reader/member/admin + system scope) so tenancy stays isolated and least-privilege.
-
Keystone Token & Policy Audit Prompt
Audit Keystone configuration, role assignments, and policy.yaml for auth failures, token expiration issues, and excessive privilege.
-
Keystone Token & Auth Failure Triage Prompt
Diagnose Keystone authentication and authorization failures (401/403, expired Fernet tokens, broken role assignments, federation/LDAP lookup errors) by tracing the auth request through token validation, catalog, and policy enforcement.
-
Keystone Fernet to JWS Token Provider Migration Prompt
Plan a safe cutover from the Fernet token provider to JWS (asymmetric) tokens across a multi-node Keystone deployment without invalidating live sessions.
More OpenStack prompts & error guides
Browse every OpenStack prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.