Open mlajkim opened 10 months ago
ROLE_CERT_NAMING_FORMAT="/var/run/athenz/rolecerts/<domain>_<role>.cert.pem"
ACCESS_TOKEN_NAMING_FORMAT="/var/run/athenz/roletokens/<domain>_<role>.atoken"
ROLE_TOKEN_NAMING_FORMAT="/var/run/athenz/accesstokens/<domain>_<role>.ztoken"
/var/run/athenz/rolecerts/rolecert.cert.pem
, if only one TARGET_DOMAIN_ROLES?TODO: Make sure to change
Background
Too many environment variables for setting role cert
And if you decide to let the user of SIA to customize output files name, there will be more env variables needed.
But, you can actually shrink in this way (though it requires unit test)
Once logic is implemented, you can apply it for access token and role tokens too!
TODOs