Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transit key config to disable upserting #18272

Merged
merged 6 commits into from
Dec 8, 2022

Conversation

cipherboy
Copy link
Contributor

Per discussion thread elsewhere, this disables the upsert capability of Transit via manual config. It appears only Encrypt uses upsert, probably because the default key type is AES and it doesn't support signing/...

I've renamed the other endpoint's handlers and files to be more clear as to the difference between the two.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Transit would allow anyone with Create permissions on the encryption
endpoint to automatically create new encryption keys. This becomes hard
to reason about for operators, especially if typos are subtly
introduced (e.g., my-key vs my_key) -- there is no way to merge these
two keys afterwards.

Add the ability to globally disable upserting, so that if the
applications using Transit do not need the capability, it can be
globally disallowed even under permissive policies.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy cipherboy force-pushed the cipherboy-add-transit-key-config branch from aac09a0 to 36ae02d Compare December 8, 2022 17:02
Copy link
Contributor

@tjperry07 tjperry07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor edits.

website/content/api-docs/secret/transit.mdx Outdated Show resolved Hide resolved
website/content/api-docs/secret/transit.mdx Outdated Show resolved Hide resolved
cipherboy and others added 2 commits December 8, 2022 15:21
Co-authored-by: tjperry07 <tjperry07@users.noreply.github.com>
Co-authored-by: tjperry07 <tjperry07@users.noreply.github.com>
@cipherboy cipherboy enabled auto-merge (squash) December 8, 2022 20:22
@cipherboy cipherboy merged commit a8d316d into main Dec 8, 2022
AnPucel pushed a commit that referenced this pull request Jan 14, 2023
* Rename path_config -> path_keys_config

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add config/keys to disable upserting

Transit would allow anyone with Create permissions on the encryption
endpoint to automatically create new encryption keys. This becomes hard
to reason about for operators, especially if typos are subtly
introduced (e.g., my-key vs my_key) -- there is no way to merge these
two keys afterwards.

Add the ability to globally disable upserting, so that if the
applications using Transit do not need the capability, it can be
globally disallowed even under permissive policies.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add documentation on disabling upsert

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog entry

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Update website/content/api-docs/secret/transit.mdx

Co-authored-by: tjperry07 <tjperry07@users.noreply.github.com>

* Update website/content/api-docs/secret/transit.mdx

Co-authored-by: tjperry07 <tjperry07@users.noreply.github.com>

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Co-authored-by: tjperry07 <tjperry07@users.noreply.github.com>
@cipherboy cipherboy deleted the cipherboy-add-transit-key-config branch April 21, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants