Skip to content

Conversation

@pkalsi97
Copy link
Contributor

Changes JVM trait caCert and caCertPassword parameters from secret references (secret:name/key) to file paths.

Users can now mount secrets via the mount trait and provide file paths to the JVM trait:

kamel run app.java \
  -t mount.configs=secret:my-ca \
  -t mount.configs=secret:my-password \
  -t jvm.ca-cert=/etc/camel/conf.d/_secrets/my-ca/ca.crt \
  -t jvm.ca-cert-password=/etc/camel/conf.d/_secrets/my-password/password

Closes #6425
Original Issue #2820
Follows up to #6416

@github-actions
Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 59.8% to 61.1% (+1.3%)

Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. And yes, it is better when done with less code!

@pkalsi97
Copy link
Contributor Author

@squakez yup. I definitely think I need to study the existing traits better. I wasn't able to think about this solution in the first attempt.

@squakez
Copy link
Contributor

squakez commented Dec 18, 2025

@squakez yup. I definitely think I need to study the existing traits better. I wasn't able to think about this solution in the first attempt.

You're doing a great work, and for sure we're here to drive the newer contributors in the right direction :)

@github-actions
Copy link
Contributor

✔️ Unit test coverage report - coverage increased from 59.2% to 61.1% (+1.9%)

@pkalsi97
Copy link
Contributor Author

@squakez I am a bit out and won't be able to take a look at the ci failure till tomorrow.

@squakez
Copy link
Contributor

squakez commented Dec 19, 2025

@squakez I am a bit out and won't be able to take a look at the ci failure till tomorrow.

No worries. It does not seem to be related to this PR. And, in general, we have no rush to have things sorted immediately.

@squakez squakez merged commit 13d4c0a into apache:main Dec 19, 2025
11 of 12 checks passed
@pkalsi97 pkalsi97 deleted the chore/6425 branch December 22, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change caCert params from secrets to files

2 participants