[
https://issues.apache.org/jira/browse/CAMEL-27800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27800:
--------------------------------
Description:
Found while improving the option descriptions of camel-ibm-secrets-manager for
CAMEL-23832 (commit
https://github.com/apache/camel/commit/8a5ecaf41ffca0f81f3d680155485d5214951a59,
pull request https://github.com/apache/camel/pull/31137).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. listSecrets returns only the first page
{{IBMSecretsManagerProducer.listSecrets}} calls {{listSecrets()}} with no
ListSecretsOptions, so an instance with more than 200 secrets (the SDK default
page) gets a partial list.
Proposed change: accept offset/limit (and search, groups, secret types)
headers, or follow the pages.
h4. 2. CamelIbmSecretsManagerSecretVersion is never read
getSecret always returns the current version.
Proposed change: use {{getSecretVersion(GetSecretVersionOptions)}} when the
header is set, as the properties function does, or deprecate the header.
_Claude Code on behalf of davsclaus_
was:
Found while improving the option descriptions of camel-ibm-secrets-manager for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31137).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. listSecrets returns only the first page
{{IBMSecretsManagerProducer.listSecrets}} calls {{listSecrets()}} with no
ListSecretsOptions, so an instance with more than 200 secrets (the SDK default
page) gets a partial list.
Proposed change: accept offset/limit (and search, groups, secret types)
headers, or follow the pages.
h4. 2. CamelIbmSecretsManagerSecretVersion is never read
getSecret always returns the current version.
Proposed change: use {{getSecretVersion(GetSecretVersionOptions)}} when the
header is set, as the properties function does, or deprecate the header.
_Claude Code on behalf of davsclaus_
> camel-ibm-secrets-manager: listSecrets returns only the first page, the
> SecretVersion header is not used
> --------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27800
> URL: https://issues.apache.org/jira/browse/CAMEL-27800
> Project: Camel
> Issue Type: Bug
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-ibm-secrets-manager
> for CAMEL-23832 (commit
> https://github.com/apache/camel/commit/8a5ecaf41ffca0f81f3d680155485d5214951a59,
> pull request https://github.com/apache/camel/pull/31137).
> These are separate problems of the component; the descriptions change only
> documents the current behavior.
> h4. 1. listSecrets returns only the first page
> {{IBMSecretsManagerProducer.listSecrets}} calls {{listSecrets()}} with no
> ListSecretsOptions, so an instance with more than 200 secrets (the SDK
> default page) gets a partial list.
> Proposed change: accept offset/limit (and search, groups, secret types)
> headers, or follow the pages.
> h4. 2. CamelIbmSecretsManagerSecretVersion is never read
> getSecret always returns the current version.
> Proposed change: use {{getSecretVersion(GetSecretVersionOptions)}} when the
> header is set, as the properties function does, or deprecate the header.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)