vault/website/content/api-docs/secret
Alexander Scheel 8ea8598b63
Allow tidy to backup legacy CA bundles (#18645)
* Allow tidy to backup legacy CA bundles

With the new tidy_move_legacy_ca_bundle option, we'll use tidy to move
the legacy CA bundle from /config/ca_bundle to /config/ca_bundle.bak.
This does two things:

 1. Removes ca_bundle from the hot-path of initialization after initial
    migration has completed. Because this entry is seal wrapped, this
    may result in performance improvements.
 2. Allows recovery of this value in the event of some other failure
    with migration.

Notably, this cannot occur during migration in the unlikely (and largely
unsupported) case that the operator immediately downgrades to Vault
<1.11.x. Thus, we reuse issuer_safety_buffer; while potentially long,
tidy can always be run manually with a shorter buffer (and only this
flag) to manually move the bundle if necessary.

In the event of needing to recover or undo this operation, it is
sufficient to use sys/raw to read the backed up value and subsequently
write it to its old path (/config/ca_bundle).

The new entry remains seal wrapped, but otherwise isn't used within the
code and so has better performance characteristics.

Performing a fat deletion (DELETE /root) will again remove the backup
like the old legacy bundle, preserving its wipe characteristics.

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

* Add changelog

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

* Add documentation about new tidy parameter

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

* Add tests for migration scenarios

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

* Clean up time comparisons

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

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-01-11 12:12:53 -05:00
..
databases website: fixes redirected links (#17574) 2022-10-18 14:06:27 -04:00
identity website: content updates for developer (#17035) 2022-09-22 08:11:04 -07:00
key-management Fix missing quote in docs (#14277) 2022-02-25 09:02:08 -08:00
kv docs: highlight paragraph about path in kv secrets engines docs (#18413) 2022-12-19 13:52:22 -06:00
ad.mdx VAULT-6091 Document Duration Format String (#15920) 2022-06-13 08:51:07 -04:00
alicloud.mdx feat(website): migrates nav data format and updates docs pages (#11242) 2021-04-06 13:49:04 -04:00
aws.mdx Docs: API AWS Secrets Formatting (#16797) 2022-08-25 15:11:56 -07:00
azure.mdx website: fixes redirected links (#17574) 2022-10-18 14:06:27 -04:00
cassandra.mdx website: content updates for developer (#17035) 2022-09-22 08:11:04 -07:00
consul.mdx Add Consul Dataplane compatibility info to docs (#18041) 2022-11-22 08:56:18 -05:00
cubbyhole.mdx Replace docs references to PUT with POST (#14270) 2022-02-25 06:52:24 -08:00
gcp.mdx Correct sample payload at Generate Secret (#18561) 2023-01-04 16:00:16 -05:00
gcpkms.mdx feat(website): migrates nav data format and updates docs pages (#11242) 2021-04-06 13:49:04 -04:00
index.mdx feat(website): migrates nav data format and updates docs pages (#11242) 2021-04-06 13:49:04 -04:00
kmip.mdx Add new KMIP backend operation parameters to API documentation. (#16107) 2022-06-22 13:28:03 -04:00
kubernetes.mdx [Kubernetes Secret Engine]: Role namespace configuration possible via LabelSelector (#16240) 2022-07-19 13:11:45 -05:00
ldap.mdx secrets/ldap: updates API documentation (#17448) 2022-10-07 08:50:37 -05:00
mongodbatlas.mdx secrets/mongodbatlas: adds missing organization_id to API docs (#15624) 2022-05-26 08:08:29 -07:00
nomad.mdx website: content updates for developer (#17035) 2022-09-22 08:11:04 -07:00
pki.mdx Allow tidy to backup legacy CA bundles (#18645) 2023-01-11 12:12:53 -05:00
rabbitmq.mdx RabbitMQ - Add username customization (#11899) 2021-06-22 14:50:46 -05:00
ssh.mdx Clarify ssh/public_key response, recommend -format=raw (#17745) 2022-10-31 11:14:49 -04:00
terraform.mdx website: content updates for developer (#17035) 2022-09-22 08:11:04 -07:00
totp.mdx Rename master key -> root key in docs (#14542) 2022-03-16 22:01:38 -07:00
transform.mdx Document the deletion_allowed transform flag (#17544) 2022-10-13 16:31:07 -05:00
transit.mdx Resolve unrecognized parameter warnings on batch_input parameter in transit (#18299) 2023-01-04 09:15:48 -05:00