Allow custom Vault transit mount path when using SSE-S3
What should the feature do:
Rook seems to be enforcing a Vault transit path /v1/transit when I try setting up SSE-S3 in our CephObjectStore. I tried setting VAULT_BACKEND_PATH like for SSE-KMS , however this seems to be ignored.
Tried to upload to my bucket with the AWS CLI using --sse AES256 flag, I get uploaded failed
My RGW vault agent logs:
Request to Vault failed with error -13The path it is trying is /v1/transit/keys/<key>
Rook should honour VAULT_BACKEND_PATH for transit instead of forcing the default mount as some of us might already be using the transit mount path for other apps.
Looks like it is being used here: https://github.com/rook/rook/blob/8d73672d91c2bc4b1eafa4e61c6046b52e9a1352/pkg/operator/ceph/object/spec.go#L1112
Declared here: https://github.com/rook/rook/blob/8d73672d91c2bc4b1eafa4e61c6046b52e9a1352/pkg/daemon/ceph/osd/kms/vault.go#L38
Validated here: https://github.com/rook/rook/blob/8d73672d91c2bc4b1eafa4e61c6046b52e9a1352/pkg/operator/ceph/object/spec.go#L955
Hence, as a workaround I can't set VAULT_SECRET_ENGINE to my custom path. A feature to add VAULT_BACKEND_PATH for SSE-S3 will resolve this.
What is use case behind this feature: Any Hashicorp Vault user trying to setup SSE-S3 and is already using the transit mount path for other apps.
Environment:
Running Rook - v1.20.1 Kubernetes - v1.34.3
Source: rook/rook