Claus Ibsen created CAMEL-27995:
-----------------------------------
Summary: Vault secret refresh - the secret lists are not trimmed,
and the Kubernetes refresh never reloads
Key: CAMEL-27995
URL: https://issues.apache.org/jira/browse/CAMEL-27995
Project: Camel
Issue Type: Bug
Components: camel-kubernetes
Reporter: Claus Ibsen
Fix For: 4.25.0
h4. 1. Kubernetes SecretsReloadTriggerTask / ConfigmapsReloadTriggerTask
Unlike AWS, Azure, GCP, IBM and Hashicorp, matchSecret does not add the names
read by the secret:/configmap: placeholders. doStart accepts an empty list when
the properties function exists, so the refresh watches but never reloads.
Without the function, propertiesFunction.getClient() throws a
NullPointerException. Proposed change: add propertiesFunction.getSecrets() as
the others do, or fail when the list is empty.
h4. 2. All vault refresh tasks (AWS, Azure, GCP, IBM, Hashicorp, Kubernetes)
matchSecret uses secrets.split(",") without trim, so "a, b" never matches b.
Proposed change: trim each entry and skip empty ones.
Found while checking the option and console descriptions of CAMEL-27980.
----
_Filed by Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)