You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/02/11 09:21:26 UTC

[GitHub] [camel-k] nicolaferraro opened a new issue #1261: Allow to inject data from externally crafted secrets

nicolaferraro opened a new issue #1261: Allow to inject data from externally crafted secrets
URL: https://github.com/apache/camel-k/issues/1261
 
 
   Let's say a broker is installed inside the same namespace as my integration. The broker is secured and provides a secret with authentication data: username and password.
   
   Can I inject those two fields in my integration?
   Afaik, currently we can inject only secrets containing a "xxx.properties" file.
   
   Is this the case?
   @jamesnetherton , @lburgazzoli , @astefanutti 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] lburgazzoli edited a comment on issue #1261: Allow to inject data from externally crafted secrets

Posted by GitBox <gi...@apache.org>.
lburgazzoli edited a comment on issue #1261: Allow to inject data from externally crafted secrets
URL: https://github.com/apache/camel-k/issues/1261#issuecomment-584555079
 
 
   > Yeah, we can still load automatically `.properties` files in the secrets, plus make the content of each entry of a secret available in a `secrets` namespace, so users can reference them by name, e.g.
   > 
   > ```
   > camel.component.xxx.password = {{secrets.broker.authToken}}
   > ```
   
   We can use properties functions like 
   
       {{secret:secret-name:property-name}}
   
   so your example will become:
   
       camel.component.xxx.password = {{secret:broker:authToken}}
   
   I did it in the past for Karaf and blueprints, need to resurrect that code :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1261: Allow to inject data from externally crafted secrets

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1261: Allow to inject data from externally crafted secrets
URL: https://github.com/apache/camel-k/issues/1261#issuecomment-584553933
 
 
   Ref: https://github.com/apache/camel-k-runtime/issues/239

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] lburgazzoli commented on issue #1261: Allow to inject data from externally crafted secrets

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1261: Allow to inject data from externally crafted secrets
URL: https://github.com/apache/camel-k/issues/1261#issuecomment-584555079
 
 
   > Yeah, we can still load automatically `.properties` files in the secrets, plus make the content of each entry of a secret available in a `secrets` namespace, so users can reference them by name, e.g.
   > 
   > ```
   > camel.component.xxx.password = {{secrets.broker.authToken}}
   > ```
   
   We can use properties functions like 
   
       {{secret:$secret-name:property-name}}
   
   so your example will become:
   
       camel.component.xxx.password = {{secret:broker:authToken}}
   
   I did it in the past for Karaf and blueprints, need to resurrect that code :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] lburgazzoli closed issue #1261: Allow to inject data from externally crafted secrets

Posted by GitBox <gi...@apache.org>.
lburgazzoli closed issue #1261: Allow to inject data from externally crafted secrets
URL: https://github.com/apache/camel-k/issues/1261
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] lburgazzoli commented on issue #1261: Allow to inject data from externally crafted secrets

Posted by GitBox <gi...@apache.org>.
lburgazzoli commented on issue #1261: Allow to inject data from externally crafted secrets
URL: https://github.com/apache/camel-k/issues/1261#issuecomment-584547094
 
 
   We now support only properties but it won't be to complex to load any kind of property however some additional properties may still be required, like to set those properties to a component:
   
       camel.component.jms.connection-factory.host = {{my-other-property}}
   
   Mind opening an issue on camel-k-runtime ?
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1261: Allow to inject data from externally crafted secrets

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1261: Allow to inject data from externally crafted secrets
URL: https://github.com/apache/camel-k/issues/1261#issuecomment-584553106
 
 
   Yeah, we can still load automatically `.properties` files in the secrets, plus make the content of each entry of a secret available in a `secrets` namespace, so users can reference them by name, e.g.
   
   ```
   camel.component.xxx.password = {{secrets.broker.authToken}}
   ```
   
   Thinking big (for the far future), we can also provide an addon module where we add auto-configuration for connecting to known systems.. this require some effort to be maintained, but a user would be able to do:
   ```
   kamel run integration.groovy --connect activemq:mybroker
   ```
   ... and have all `camel.component.activemq.xxx` properties set.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services