Camel Spring Boot

CyberArk Vault

Retrieve and store secrets in CyberArk Conjur.

What’s inside

Please refer to the above links for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-cyberark-vault-starter</artifactId>
</dependency>

Spring Boot Auto-Configuration

The starter supports 15 options, which are listed below.

Name Description Default Type

camel.component.cyberark-vault.account

The Conjur organization account, which is part of the path of every request to the Conjur REST API. Not used when the conjurClient option is set.

String

camel.component.cyberark-vault.api-key

The API key of the Conjur user or host given by the username option. The component exchanges it for an access token, and again when Conjur rejects the token. Used when the authToken option is not set.

String

camel.component.cyberark-vault.auth-token

A Conjur access token, as returned by the Conjur authenticate request, which the component sends Base64-encoded in the Authorization header. It takes precedence over apiKey and password. The component cannot renew it, so the requests fail once the token has expired.

String

camel.component.cyberark-vault.autowired-enabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

Boolean

camel.component.cyberark-vault.certificate-path

Path of a file with the SSL certificate to trust when connecting to CyberArk Conjur, for example the certificate of a private CA, in PEM or DER format. The certificates in the file are trusted instead of the default trust store of the JVM. A path of the file system, or a resource with the file: or classpath: prefix, for example classpath:conjur-ca.pem. Other prefixes, such as http:, are not supported. Not used when verifySsl is false.

String

camel.component.cyberark-vault.configuration

The configuration that the endpoints of the component share: each endpoint starts from a copy of it. The option is a org.apache.camel.component.cyberark.vault.CyberArkVaultConfiguration type.

CyberArkVaultConfiguration

camel.component.cyberark-vault.conjur-client

To use a custom ConjurClient, for example #myClient from the registry. When set, the url, account, credential and SSL options are not used, and the endpoint does not close the client. The option is a org.apache.camel.component.cyberark.vault.client.ConjurClient type.

ConjurClient

camel.component.cyberark-vault.enabled

Whether to enable auto configuration of the cyberark-vault component. This is enabled by default.

Boolean

camel.component.cyberark-vault.lazy-start-producer

Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

Boolean

camel.component.cyberark-vault.operation

The operation that the producer performs. getSecret reads the value of the secret into the message body. createSecret stores the message body, or the CamelCyberArkVaultSecretValue header, as a new value of a variable that is declared in Conjur policy. The CamelCyberArkVaultOperation header replaces this option.

getsecret

CyberArkVaultOperations

camel.component.cyberark-vault.password

The password of the Conjur user, used with the username option when neither authToken nor apiKey is set. The component sends it in the Conjur authenticate request, in place of an API key.

String

camel.component.cyberark-vault.secret-id

The ID of the secret, which is the ID of a Conjur variable, for example db/password. If not set on the endpoint, the value of the URI path is used. The CamelCyberArkVaultSecretId header replaces this option.

String

camel.component.cyberark-vault.url

The base URL of the Conjur server, for example https://conjur.example.com. The component appends the paths of the Conjur REST API, such as /authn and /secrets, to it. Not used when the conjurClient option is set.

String

camel.component.cyberark-vault.username

The login of the Conjur user or host to authenticate as, for example admin or host/myapp. It is used together with the apiKey option or the password option.

String

camel.component.cyberark-vault.verify-ssl

Whether to verify the SSL certificate and the host name of the CyberArk Conjur server. Setting it to false trusts any server, so use it only for testing.

true

Boolean