003 · Domain 1: Authentication methods · 15% of the exam
Task 1.6: Configure authentication methods using the API, CLI, and UI
vault auth enable, tune and disable, sys/auth on the API, roles and users written under auth/<path>, token settings per role, and what disabling a method does to its tokens.
Study it
Enabling, tuning and disabling auth methods
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
Users are moving from the userpass method at userpass/ to OIDC. The proposal is to run vault auth disable userpass/ at 09:00 while people are still working, and let them switch to OIDC during the day. What happens to their sessions at 09:00?
AExisting userpass tokens keep working until their TTLs run out; only new logins through userpass/ fail
BThe command fails while tokens issued by the method are still valid
CEvery token issued through userpass/ is revoked, and those users lose access until they log in again
DTokens keep working, and re-enabling userpass/ later restores the users and their passwords
Show the answer and why
AExisting userpass tokens keep working until their TTLs run out; only new logins through userpass/ fail
Incorrect
Disabling does not wait for TTLs; the method's tokens are revoked immediately.
BThe command fails while tokens issued by the method are still valid
Incorrect
The command does not refuse; it revokes those tokens and waits until revocation completes.
CEvery token issued through userpass/ is revoked, and those users lose access until they log in again
Correct
Disabling an auth method revokes all tokens generated through it, and the command blocks until they are revoked.
DTokens keep working, and re-enabling userpass/ later restores the users and their passwords
Incorrect
Disabling removes the mount and its data, and its tokens are revoked rather than kept.
vault auth disable is immediate for everyone who logged in through that mount. Migrate users first, then disable the old method.
userpass is enabled at userpass/. An operator must create the user alice with a password, so that her tokens carry the dev policy. Which command does it?