[ 
https://issues.apache.org/jira/browse/CAMEL-27100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18146524#comment-18146524
 ] 

Urmila Unni edited comment on CAMEL-27100 at 11/18/26, 5:14 AM:
----------------------------------------------------------------

Hi, I'd like to work on this one if that's OK.

My plan: load certificatePath with ResourceHelper, but accept only the 
classpath: and file: prefixes and reject the others (such as \{{http:}}). A 
path without a prefix keeps being read from the file system, as today, so 
existing configurations keep working. I'll add tests and document the prefixes 
on the option.


was (Author: JIRAUSER314431):
Hi, I'd like to work on this one if that's OK.

My plan: load certificatePath with ResourceHelper, but accept only the 
classpath: and file: prefixes and reject the others (such as http:). A path 
without a prefix keeps being read from the file system, as today, so existing 
configurations keep working. I'll add tests and document the prefixes on the 
option.

> 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)

Reply via email to