In Vault, tokens normally belong to a parent-child tree, and revoking a parent cascades the revocation to its children. Orphan tokens, however, are not part of this tree and do not cascade-expire when a parent is revoked.
This article explains the definition of Orphan tokens, their relationship to Periodic tokens, how to detect and remediate them, and configuration pitfalls — from both an exam-prep and an operational perspective.
By default, Vault tokens have a parent-child relationship, and revoking a parent cascades to its children. An Orphan token, in contrast, has no parent and is exempt from cascade revocation. Create one with vault token create -orphan on the CLI, or POST /auth/token/create-orphan via the API.
Note that the Root token is a special token created at system startup with broad permissions. Conceptually it is similar to Orphan in that it has no parent, but its purpose and risk profile are very different. For both the exam and the field, keep these separate: an Orphan token is independent from the revocation chain, while Root is a powerful token reserved for emergencies and initial setup.
Vault token hierarchy and where Orphan tokens sit (conceptual diagram)
Creating and inspecting child and Orphan tokens
## Child token (default: has parent)
$ vault token create -policy=app -ttl=1h
## Orphan token (no parent)
$ vault token create -policy=app -ttl=1h -orphan
## Inspect token attributes (orphan flag, etc.)
$ vault token lookup s.xxxxxx
Key Value
--- -----
orphan true
policies ["app" "default"]
ttl 1hAt the Associate level, differences in revocation cascade, renewal behavior, and creation paths come up often. In particular, Periodic tokens are not part of the parent-child tree (they effectively behave like Orphans) and do not cascade when a parent is revoked.
Behavior depends on which API path or CLI option you used at creation, and on the TTL/period values you set. Use the comparison below to identify each type quickly.
| Type | Has Parent? | Cascade Revocation | Expiry / Renewal |
|---|---|---|---|
| Child token (default) | Yes (issuer is parent) | Cascades on parent revoke | Renewable within ttl and max_ttl |
| Orphan token | No | Does not cascade (independent) | Follows ttl/max_ttl; revoke manually as needed |
| Periodic token | (Outside tree) effectively none | Does not cascade (independent) | Must renew every period (no max_ttl) |
API path differences (child vs Orphan) and a Periodic role example
# Child token (default)
curl -sS -H "X-Vault-Token: $PARENT" \
-d '{"policies":["app"],"ttl":"1h"}' \
$VAULT_ADDR/v1/auth/token/create
# Orphan token
curl -sS -H "X-Vault-Token: $PARENT" \
-d '{"policies":["app"],"ttl":"1h"}' \
$VAULT_ADDR/v1/auth/token/create-orphan
# Role for Periodic tokens
vault write auth/token/roles/ci \
allowed_policies=build \
period=24h
# Issue from role (Periodic)
vault token create -role=ciOrphan tokens are created either when -orphan (or /auth/token/create-orphan) is used explicitly, or when issued from a Periodic role. Existing child tokens do not spontaneously "become" Orphans.
lookup is the most reliable way to detect them. From an audit perspective, enumerating accessors and then doing per-accessor lookup is the practical approach. For Periodic tokens, lookup shows period set and orphan=true (output field names may differ across Vault versions, so verify in your environment).
Enumerating accessors and checking attributes (inventory basics)
# List accessors
$ vault list auth/token/accessors
Keys
----
accessor-AAAA
accessor-BBBB
# Lookup by accessor (works without knowing the token itself)
$ vault token lookup -accessor accessor-AAAA
Key Value
--- -----
orphan true
period 24h
policies ["app" "default"]
# Revoke by accessor as needed (reduces leak risk)
$ vault token revoke -accessor accessor-AAAAOrphan and Periodic tokens give you stability that does not depend on the parent, but the flip side is they do not stop when the parent is revoked — they easily live longer than intended. If leaked, you cannot rely on parent revocation to stop them, so TTL/period design, monitoring, and explicit revoke are mandatory.
Practical countermeasures: enable audit devices, run periodic inventories (enumerate accessors and lookup), and use token roles to enforce least privilege with short renewal intervals.
Conservative Periodic role configuration (short period, minimal permissions)
vault write auth/token/roles/automation \
allowed_policies="read-only" \
period=1h
# Requires explicit renewal every hour; without renewal it auto-expires, shrinking residual risk.
# Renewal example
vault token renew $(vault token lookup -format=json | jq -r .data.id)You cannot "convert" an existing Orphan into a child token. The proper approach is replacement: issue a new token with the desired parent relationship and revoke the old one. Plan this for a maintenance window where downtime is acceptable.
For prevention: standardize via token roles (allowed_policies, ttl/period, renew policy) and review the Vault server's token_ttl/token_max_ttl settings. The key is to make -orphan and period opt-in only when truly needed.
Replacement and server-default TTL (example)
# 1) Issue a new token with the desired parent relationship (default = has parent)
NEW=$(vault token create -policy=app -ttl=30m -format=json | jq -r .auth.client_token)
# 2) Revoke the old Orphan by accessor
OLD_ACCESSOR=accessor-BBBB
vault token revoke -accessor $OLD_ACCESSOR
# 3) Re-check Vault server defaults (HCL) (example)
# token_ttl = "30m"
# token_max_ttl = "24h"
# Apply via the server config file; a restart is requiredHigh-frequency topics: whether parent revoke cascades, the creation path (create vs create-orphan), and Periodic renewal requirements (period). Memorize them together with the concrete commands and API paths.
Watch out for these pitfalls: confusing Root with Orphan, treating Periodic the same as a standard TTL token, and forgetting to verify attributes via lookup.
Minimum command set to memorize
# Create
vault token create -policy=app # Child
vault token create -policy=app -orphan # Orphan
vault write auth/token/roles/ci period=24h # Periodic role
vault token create -role=ci # Periodic
# Detect
vault token lookup <token>
vault token lookup -accessor <accessor>
# Revoke
vault token revoke <token>
vault token revoke -accessor <accessor>Associate
問題 1
Immediately after revoking a parent token in Vault, which token remains unaffected and continues to work?
正解: A
Periodic tokens are outside the parent-child tree and do not cascade when the parent is revoked. Default child tokens and tokens obtained via unwrap are subject to cascade revocation.
What is the difference between an Orphan token and a Root token?
Both are independent of any parent chain, but a Root token is an extremely powerful special token used for initial setup and emergency operations and should be avoided in normal operations. An Orphan token is limited to use cases that need to detach from the parent chain within ordinary policy scope (autonomous jobs, etc.).
Can I convert an existing child token into an Orphan, or vice versa?
Conversion is not possible in either direction. You must issue a new token with the desired attributes and revoke the old one — a replacement, not a conversion.
Can I always treat a Periodic token as an Orphan?
Periodic tokens are not part of the parent-child tree and do not expire when the parent is revoked, so they share Orphan-like properties. However, they require renewal within each period, which differs operationally from standard TTL-based tokens.
Practice with certification-focused question sets
無料で問題を解いてみるNicheeLab Editorial Team
NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.
Vault Core Concepts: Sealed/Unsealed, Auth, Secrets (2026)
Vault fundamentals — sealed/unsealed state, auth methods, se...
Vault Operations Professional (VOP-003): Complete Guide (2026)
Pass the Vault Operations Professional exam — enterprise pat...
Vault Path-Based Routing: API URL Structure (2026)
How Vault's path-based routing works — mount points, sub-pat...
Vault Tokens: Auth Token Mechanics (2026)
Token fundamentals — service vs. batch tokens, accessor, ren...
Vault Token Types: Service, Batch, Periodic (2026)
Service vs. batch tokens compared — performance, ACL behavio...