Andrea Cosentino created CAMEL-24471:
----------------------------------------

             Summary: camel-ibm-secrets-manager: SecretId producer header has a 
copy-pasted description
                 Key: CAMEL-24471
                 URL: https://issues.apache.org/jira/browse/CAMEL-24471
             Project: Camel
          Issue Type: Bug
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino
             Fix For: 4.23.0


In IBMSecretsManagerConstants, the CamelIbmSecretsManagerSecretId header is 
documented as "Set the desired secret version as header." which is a copy-paste 
of the SecretVersion header's description:

{code:java}
@Metadata(label = "producer", description = "Set the desired secret version as 
header.", javaType = "String")
public static final String SECRET_VERSION = HEADER_PREFIX + "SecretVersion";

@Metadata(label = "producer", description = "Set the desired secret version as 
header.", javaType = "String")
public static final String SECRET_ID = HEADER_PREFIX + "SecretId";
{code}

The SecretId header actually carries the secret id (the producer reads it as 
the secret identifier for the getSecret and deleteSecret operations), not a 
version. The description should describe the secret id. The SecretName header 
description ("Set the desired secret path as header.") is likewise slightly 
misleading and can be clarified to refer to the secret name.

This is a documentation/metadata-only fix (regenerates the component's 
generated JSON descriptor).

Affected: components/camel-ibm/camel-ibm-secrets-manager 
(org.apache.camel.component.ibm.secrets.manager.IBMSecretsManagerConstants).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to