-
Notifications
You must be signed in to change notification settings - Fork 3
Add support for unique master and follower certificates #183
Description
Is your feature request related to a problem? Please describe.
Migrated from pivotal-cf/docs-cyberark-conjur-service-broker#21 as reported by @whip113
Currently, the tile config only has one field for importing the SSL certificate. The recommendations for certificates is to use one certificate for the master VIP and a different certificate for the follower VIP. The tile config allows us to configure both the master URL and the follower URL, but when using different certs for each the lack of a field to store the follower certificate means you can't actually use the follower URL.
The configuration for the tile relates to this service broker. At current, the service broker supports specifying the DAP master URL and a (read-only) follower URL - but it only allows specifying one certificate, when (as noted above):
The recommendations for certificates is to use one certificate for the master VIP and a different certificate for the follower VIP.
Describe the solution you would like
At current the service broker supports supplying the following relevant configuration environment variables:
CONJUR_SSL_CERTIFICATECONJUR_APPLIANCE_URLCONJUR_FOLLOWER_URL
We could add another parameter
CONJUR_FOLLOWER_SSL_CERTIFICATE
And if set, we could use this alternate certificate when we instantiate the read-only API:
| ConjurClient.new.api(ConjurClient.application_conjur_url) |
Additional context
Once this change is made, we will also need to update the VMWare Tanzu tile definition to accept this parameter and properly configure the service broker with the CONJUR_FOLLOWER_SSL_CERTIFICATE env var.