-
Notifications
You must be signed in to change notification settings - Fork 31
GHM-824 Build masking and containerized masking packages with secrets #258
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
GHM-824 Build masking and containerized masking packages with secrets #258
Conversation
16049ec to
fa2d6c6
Compare
prakashsurya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable.. but, could we be consistent with #256.. it seems like both are doing the same thing, but with slightly different implementations.. even better, would probably be to move this logic into a function within the common.sh file, and have both call the common function..
I don't feel strongly, so I'm OK moving forward as-is (hence my approval), but I do think it'd be nice to consolidate the two and be consistent with each other (as much as would be reasonable, at least)..
Even in this one review, we have the duplication.. so having the common function might help us maintain this moving forward..
Sure thing, I can definitely consolidate that logic in a function in common.sh. The one discrepancy between the virtualization build config and masking/containerized masking build configs is that the former requires them as ant parameters whereas the latter requires them as environment variables. Are you amenable to me having a function just export the variables as environment variables? Since it's duplicated in both masking/containerized masking config shell scripts, it seems like it'd be the most useful to have them implement all of the necessary functionality. FYI: raised GHM-833 per slack convo with @prakashsurya. |
|
Might want to consider explicitly including the environment variables for the command. Exporting sends these variables to every command (e.g. the following rsync and cp commands and anything else added after this in the future). |
fa2d6c6 to
65aab7b
Compare
65aab7b to
7088a99
Compare
7088a99 to
234e301
Compare
Problem
masking and containerized masking package builds need to retrieve secrets from AWS.
This is especially critical for when DLPX-81645 Remove secrets from tip of dms-core-gate repo changes are integrated.
Testing
→ git-ab-pre-push -b "masking" --jenkins-url=http://selfservice.pkg-test.dcol2.delphix.com Your build is at: http://selfservice.pkg-test.dcol2.delphix.com/job/appliance-build-orchestrator-pre-push/7/Per http://selfservice.pkg-test.dcol2.delphix.com/job/linux-pkg/job/6.0/job/stage/job/build-package/job/masking/job/pre-push/5/console:
Future Improvements
See GHM-833.