[
https://issues.apache.org/jira/browse/CAMEL-27100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146543#comment-18146543
]
Urmila Unni commented on CAMEL-27100:
-------------------------------------
PR: https://github.com/apache/camel/pull/30315
> camel-cyberark-vault - load the certificatePath file as a resource, so that
> classpath: and file: work
> -----------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27100
> URL: https://issues.apache.org/jira/browse/CAMEL-27100
> Project: Camel
> Issue Type: Improvement
> Reporter: Andrea Cosentino
> Priority: Minor
>
> Follow-up of CAMEL-26279 ([PR
> #29210|https://github.com/apache/camel/pull/29210]), suggested in its review.
> {{ConjurClientFactory}} (main 73fe55b4f931, line 159) reads the
> {{certificatePath}} option with
> {{Files.newInputStream(Path.of(certificatePath))}}, so it takes only a file
> system path. Other components load such files with
> {{ResourceHelper.resolveMandatoryResourceAsInputStream}} (for example
> camel-solr, {{SolrEndpoint}} line 199), which also takes {{classpath:}} and
> {{file:}} resources.
> Proposed: resolve the option with {{ResourceHelper}}, but keep it to
> {{classpath:}} and {{file:}}: {{ResourceHelper}} also loads {{http:}}
> resources, and trust material should not come over plain HTTP. Then document
> the prefixes on the option.
> _Claude Code on behalf of Andrea Cosentino (oscerd)_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)