Skip to content

Commit e60d031

Browse files
committed
rgw: Replace deprecated Barbican payload endpoint with alternative
`GET /v1/secrets/{uuid}` with Header `Accept: application/octet-stream` has been deprecated in favor of `GET /v1/secrets/{uuid}/payload` in OpenStack Barbican. The old API is still functional, but generates a warning level log message on Barbican for every access. Deprecation commit from 2015: openstack/barbican@b4b64be Signed-off-by: Marcel Lauhoff <[email protected]> On-behalf-of: SAP [email protected]
1 parent 07ab7ec commit e60d031

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rgw/rgw_kms.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@ static int request_key_from_barbican(const DoutPrefixProvider *dpp,
929929
}
930930
concat_url(secret_url, "/v1/secrets/");
931931
concat_url(secret_url, std::string(key_id));
932+
concat_url(secret_url, "/payload");
932933

933934
bufferlist secret_bl;
934935
RGWHTTPTransceiver secret_req(cct, "GET", secret_url, &secret_bl);

0 commit comments

Comments
 (0)