Store metadata when it is an empty string (such as role, serial number, etc...) (#27303)

This commit is contained in:
Kit Haines
2024-05-31 12:33:04 -04:00
committed by GitHub
parent f8eb0154d4
commit b2877f7050

View File

@@ -449,7 +449,7 @@ func (b *backend) pathIssueSignCert(ctx context.Context, req *logical.Request, d
}
}
if metadataInRequest && len(metadata.(string)) > 0 {
if metadataInRequest {
metadataBytes, err := base64.StdEncoding.DecodeString(metadata.(string))
if err != nil {
// TODO: Should we clean up the original cert here?