-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(cdk-assets): docker buildkit secrets from environment #24691
Comments
Thank you for your feature request. Any PR would be highly welcome and appreciated. |
@pahud do you have any recommendation of one of the two proposed solutions? Or perhaps a third one? |
Hey, I'm not able to continue development on this since the repo refactor. The build takes too much ram on my machine.
The crux of the solution is here: https://github.com/danwiltshire/aws-cdk/tree/feat/docker-secret-from-env |
Dockerbuildsecret is a very good feature, and so is its |
The const asset = new DockerImageAsset(stack, 'blah', { directory, buildSecrets: { 'MY_SECRET': 'type=env' } }); |
Can confirm it work in my environment now. |
Describe the feature
#23778 Introduced the ability to pass secrets within the build process thanks to BuildKit. Such feature supports secrets from two souces:
The PR aboved implemented (1) but not (2)
Use Case
Proposed Solution
In line with what is proposed in here, I suggest to
This way we keep the same interface and we take the
undefined
semantic to fetch the secret from the environment.Specifically we can modify this line such
Otherwise we can create a new method such
and parse that down the line.
This last method would be more scalable to include other methods such the one mentioned in #14395 (pass secrets from Secrets Manager or SSM)
Other Information
Relates to #14395 but is a different user need
Acknowledgements
CDK version used
2.69.0
Environment details (OS name and version, etc.)
MacOS Ventura 13.2.1
The text was updated successfully, but these errors were encountered: