-
Notifications
You must be signed in to change notification settings - Fork 1
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
BCDA-7529: Remove nonsensitive env variables from ops repos #153
Conversation
@StewGoin this adds a new software dependency, github.com/joho/godotenv, to read .env files containing only non-sensitive values. |
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.
Checks out to me. Thanks for digging into this!
@@ -34,7 +34,7 @@ go clean | |||
echo "Building ssas..." | |||
go build -ldflags "-X github.com/CMSgov/bcda-ssas-app/ssas/constants.Version=$VERSION" -o ssas ./service/main | |||
echo "Packaging ssas binary into RPM..." | |||
fpm -v $VERSION -s dir -t rpm -n ssas ssas=/usr/local/bin/ssas swaggerui=/etc/sv/ssas | |||
fpm -v $VERSION -s dir -t rpm -n ssas ssas=/usr/local/bin/ssas swaggerui=/etc/sv/ssas cfg/configs/=/go/src/github.com/CMSgov/bcda-ssas-app/ssas/cfg/configs/ |
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.
good catch on this one!
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.
Ok by me.
🎫 Ticket
https://jira.cms.gov/browse/BCDA-7529
🛠 Changes
Re-configured pulling of variables from environment, so that a volume is attached to docker with the configs. Removal from S3 will be a separate manual process.
ℹ️ Context for reviewers
This assumes that DEPLOYMENT_TARGET is set in all environments.
The non-sensitive values to be pulled in through env files are:
DEBUG
DEPLOYMENT_TARGET (duplicated for reference within a file).
SSAS_DEFAULT_SYSTEM_SCOPE
SSAS_IDLE_TIMEOUT
SSAS_LOG
SSAS_READ_TIMEOUT
SSAS_WRITE_TIMEOUT
✅ Acceptance Validation
Unit-tests pass, and a dev deployment / re-deploy with the S3 variables for the variables listed above works.
🔒 Security Implications
If any security implications apply, add Jason Ashbaugh (GitHub username: StewGoin) as a reviewer and do not merge this PR without his approval.