Skip to content

Commit

Permalink
Merge pull request #141 from GSA/feature/80_login_gov
Browse files Browse the repository at this point in the history
Implementing Login.Gov
  • Loading branch information
BuckinghamAJ authored Feb 2, 2024
2 parents e0d90ac + 5077d60 commit 0928c01
Show file tree
Hide file tree
Showing 15 changed files with 1,066 additions and 522 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,7 @@ deploy-log*
winston.log.json
data/
docker/db/scripts/init.sql
docker/certs/private.pem
docker/certs/public.crt
private.pem
public.crt
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ RUN npm install
# Bundle app source
COPY server/ ./server


# Get Login.gov Certs
COPY bin/copy_certs.sh ./

RUN /opt/api/copy_certs.sh

#see https://docs.cloudfoundry.org/devguide/deploy-apps/push-docker.html
COPY docker/conf/passwd /etc/passwd

Expand Down
9 changes: 9 additions & 0 deletions bin/copy_certs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [ "$NODE_ENV" = "production" ]; then
cp /app/certs/prod/* /app/server/certs/
elif [ "$NODE_ENV" = "staging" ]; then
cp /app/certs/staging/* /app/server/certs/
else
cp /app/certs/dev/* /app/server/certs/
fi
3 changes: 3 additions & 0 deletions certs/dev/dev_cert_location.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Place your Login.gov RSA certification in here for the dev environment before deploying.

Find certs on g-drive.
3 changes: 3 additions & 0 deletions certs/staging/staging_cert_location.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Place your Login.gov RSA certification in here for the staging environment before deploying.

Find certs on g-drive.
2 changes: 1 addition & 1 deletion cf/manifest.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ applications:
- route: http://srt-server-prod.app.cloud.gov
- route: http://srt-server.app.cloud.gov
services:
- srt-postgres-prod
- srt-postgresql15-prod

Loading

0 comments on commit 0928c01

Please sign in to comment.