Hello!
I am trying to mount secrets from doppler (using doppler operator) with the following memphis helm chart:
But sadly the app expects secrets to format in a special format such as:
- refreshJwtSecretRestGW_key
- jwtSecret_key
While doppler change the format to REFRESHJWTSECRETRESTGW_KEY
, which is then unusable by the container.
The best I could come up is refreshJwtSecretRestGWKey
with putting REFRESH_JWT_SECRET_REST_G_W_KEY in doppler (upper camel case name transformer).
Any idea how I could solve this?
Hi Francois!
You should be able to take advantage of Processors to rename the secrets you need renamed liked that. The tl;dr of that is you’d use something like this:
apiVersion: secrets.doppler.com/v1alpha1
kind: DopplerSecret
metadata:
name: doppler-secret-test
namespace: doppler-operator-system
spec:
tokenSecret:
name: doppler-token-secret
managedSecret:
name: doppler-jwt-secrets
namespace: default
processors:
REFRESHJWTSECRETRESTGW_KEY:
type: plain
asName: refreshJwtSecretRestGW_key
JWTSECRET_KEY:
type: plain
asName: jwtSecret_key
Will that work for you?
Regards,
-Joel
Feels dirty but it would work! THanks!
(Any plans of supporting other formats other than uppercase in doppler by default? )
@Francois We don’t currently have plans to support that outside of name transformers like this.