vault/website/content/docs/concepts
Max Bowsher 188bdca4bd
Fix sudo paths missing from OpenAPI and docs (#21772)
* Fix sudo paths missing from OpenAPI and docs

Various sudo (a.k.a. root-protected) paths are implemented in
non-standard ways, and as a result:

* are not declared as x-vault-sudo in the OpenAPI spec

* and as a result of that, are not included in the hardcoded patterns
  powering the Vault CLI `-output-policy` flag

* and in some cases are missing from the table of all sudo paths in the
  docs too

Fix these problems by:

* Adding `seal` and `step-down` to the list of root paths for the system
  backend. They don't need to be there for enforcement, as those two
  special endpoints bypass the standard request handling code, but they
  do need to be there for the OpenAPI generator to be able to know they
  require sudo.

  The way in which those two endpoints do things differently can be
  observed in the code search results for `RootPrivsRequired`:
  https://github.com/search?q=repo%3Ahashicorp%2Fvault%20RootPrivsRequired&type=code

* Fix the implementation of `auth/token/revoke-orphan` to implement
  endpoint sudo requirements in the standard way. Currently, it has an
  **incorrect** path declared in the special paths metadata, and then
  compensates with custom code throwing an error within the request
  handler function itself.

* changelog

* As discussed in PR, delete test which is just testing equality of a constant

* Restore sudo check as requested, and add comment

* Update vault/token_store.go

Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>

---------

Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>
2023-07-19 16:28:17 +00:00
..
client-count [Docs] Client count doc updates for ACME update in 1.14 (#21541) 2023-07-07 08:32:31 -04:00
integrated-storage [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
auth.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
dev-server.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
duration-format.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
events.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
ha.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
identity.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
index.mdx feat(website): migrates nav data format and updates docs pages (#11242) 2021-04-06 13:49:04 -04:00
lease.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
mount-migration.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
namespace-api-lock.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
oidc-provider.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
password-policies.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
pgp-gpg-keybase.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
policies.mdx Fix sudo paths missing from OpenAPI and docs (#21772) 2023-07-19 16:28:17 +00:00
recovery-mode.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
resource-quotas.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
response-wrapping.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
seal.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
storage.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
tokens.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
transform.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
user-lockout.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00
username-templating.mdx [docs] Convert titles to sentense case (#21426) 2023-06-30 19:22:07 -04:00