Claus Ibsen created CAMEL-27800:
-----------------------------------
Summary: 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
Fix For: 4.25.0
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_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)