Returning a single-use wrapping token instead of the secret, its TTL, unwrapping, lookup to check where it came from, and what a failed unwrap tells you.
Study it
Response wrapping: single-use wrapping tokens and unwrapping
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the HashiCorp documentation page that proves it.
Question 1 · choose 1
A deployment tool delivers a response-wrapped SecretID to a new server with a 10-minute wrap TTL. Two minutes later the server's lookup of the wrapping token reports that the token is invalid. What should happen next?
ARequest a new wrapped SecretID with a 30-minute wrap TTL and carry on with the server's deployment
BRaise a security alert and check the audit logs to see whether the token was already unwrapped
CCall sys/wrapping/rewrap on the token to obtain a fresh wrapping token
DUnwrap it with the deployment tool's own token, which created the wrapping
Show the answer and why
ARequest a new wrapped SecretID with a 30-minute wrap TTL and carry on with the server's deployment
Incorrect
The TTL had not expired, so a longer TTL does not explain the failure, and continuing ignores possible interception.
BRaise a security alert and check the audit logs to see whether the token was already unwrapped
Correct
A token that cannot be unwrapped, or fails lookup before its TTL, may have been intercepted and should trigger an immediate investigation.
CCall sys/wrapping/rewrap on the token to obtain a fresh wrapping token
Incorrect
Rewrap works only on a valid wrapping token, and it would not reveal who used this one.
DUnwrap it with the deployment tool's own token, which created the wrapping
Incorrect
A wrapping token is single use; once it is used or revoked nobody can unwrap it, whichever token makes the call.
Response wrapping gives malfeasance detection: only one party can ever unwrap a token. An unexpected invalid token is a security event to investigate.
A service expects a wrapped TLS private key issued from pki/issue/web. Before unwrapping the token it received, which two checks does HashiCorp's validation guidance call for? (Choose TWO.)
ARenew the wrapping token to keep it from expiring during the unwrap
BLook up the wrapping token to confirm it is still valid and has not been used
CRewrap the token first and unwrap the fresh token instead
DRead pki/issue/web directly to compare the result with the wrapped key
EConfirm that the token's creation path is pki/issue/web as expected
Show the answer and why
ARenew the wrapping token to keep it from expiring during the unwrap
Incorrect
Validation does not involve renewing; a wrapping token's short TTL is what limits exposure.
BLook up the wrapping token to confirm it is still valid and has not been used
Correct
A lookup shows at once whether the token was already unwrapped, expired or revoked.
CRewrap the token first and unwrap the fresh token instead
Incorrect
Rewrapping moves data to a new token but does not validate where the original came from.
DRead pki/issue/web directly to compare the result with the wrapped key
Incorrect
Each read of that path issues a new certificate and key, so nothing can be compared.
EConfirm that the token's creation path is pki/issue/web as expected
Correct
A different creation path, such as cubbyhole or sys/wrapping/wrap, suggests the data was read and rewrapped.
Validate by lookup, check the creation path (exactly for KV paths), and only then unwrap.
An operator holds a one-time password that is not stored in Vault and wants to hand it to a colleague as a single-use wrapping token. Which endpoint does that?
Asys/wrapping/rewrap
Bsys/wrapping/lookup
Csys/wrapping/wrap
Dcubbyhole/<colleague>
Show the answer and why
Asys/wrapping/rewrap
Incorrect
rewrap moves existing wrapped data to a new token.
Bsys/wrapping/lookup
Incorrect
lookup returns a wrapping token's properties.
Csys/wrapping/wrap
Correct
wrap echoes back the data sent to it inside a response-wrapping token.
Dcubbyhole/<colleague>
Incorrect
That is not an endpoint that creates wrapping tokens.
Any data can be wrapped; wrapping tokens are just as useful for values that never lived in Vault.