Skip to content
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

Merged
merged 32 commits into from
Jan 17, 2024

Conversation

alex-dzeda
Copy link
Contributor

🎫 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

  • This PR adds a new software dependency or dependencies. (godotenv: https://github.com/joho/godotenv )
  • This PR modifies or invalidates one or more of our security controls.
  • This PR stores or transmits data that was not stored or transmitted before.
  • This PR requires additional review of its security implications for other reasons.

If any security implications apply, add Jason Ashbaugh (GitHub username: StewGoin) as a reviewer and do not merge this PR without his approval.

@alex-dzeda
Copy link
Contributor Author

@StewGoin this adds a new software dependency, github.com/joho/godotenv, to read .env files containing only non-sensitive values.

Copy link
Contributor

@kyeah kyeah left a 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/
Copy link
Contributor

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!

Copy link

@StewGoin StewGoin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok by me.

@alex-dzeda alex-dzeda merged commit c3c780f into master Jan 17, 2024
1 check passed
@alex-dzeda alex-dzeda deleted the alex/bcda-7529 branch January 17, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants