-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI parameter to overwrite MTA parameters #124
Comments
Hi Lukas & thanks for sharing your feedback! Until the service starts supporting such capabilities, the closest experience I can propose is templating the secret in the *.mtaext right before deployment. This is also a bit more flexible, as one can pick from a variety of templating tools. The downside is obvious - extra templating has to be done over the mta model, which already kind of supports templating with its properties/parameters references. From the top of my head I see security shortcomings with both mentioned approaches so far
The security mindful options I can think of are
None of those options are trivial enhancements to the service. Only the last one is at least contained only in the client code(this repo). I'll run them through the team before we decide on any implementation. |
Hi Dido, thank you very much for the reply! I didn't consider the leaking, I think in the past I observed Jenkins marking secrets regardless of where they are used, but I might be wrong. I like the idea about passing it via environment variables directly, as this is already supported by our pipeline framework's model of reading secrets from the credential store -- they are put into arbitrarily nameable environment variables. No extra steps to provide them as CLI parameters as well. So thank you for looking into this! |
@ddonchev : We do have a similar requirement. Any updates on the feature? |
Description
Hi everyone,
In my project, I have a resource which needs to be passed a secret token during deployment. This is why I wouldn't want to put the token into the repository as part of mta or extension (even if putting credentials into the extension seems to be recommended), but inject it to the
cf deploy
command from the CD pipeline.As a workaround, we've currently modeled the resource as
existing-service
and manually create the service instance. For dev-spaces, however, we'd like to use a development plan of the service, which doesn't need the secret token. However, we still have to manually create the service, as we can't change the resource type tomanaged-service
from the mta extension.In an ideal world, I would be able to, in my
mta.yaml
(or any extension), specify a parameter like this:In the CLI, I would only now need to be able to overwrite the parameters via an additional CLI parameter, e.g.:
Would it be possible to add such a feature?
I've checked
cf help deploy
but didn't find any hint into this direction...I don't know if server-side support is necessary here, but in the worst case the CLI could generate an transient mta extension with the parameters and just send it along.
Thank you very much for your support!
Kind regards
Lukas
The text was updated successfully, but these errors were encountered: