mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Store metadata when it is an empty string (such as role, serial number, etc...) (#27303)
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user