Skip to content

Commit

Permalink
Merge branch 'develop' into fix/pentest-high-pri-xss
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-jameson authored Feb 21, 2024
2 parents 1312fc2 + ae6894e commit dd7dc90
Show file tree
Hide file tree
Showing 18 changed files with 784 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .circleci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ updated along with the secondary apps running in CF.

### Frontend/Backend
- Before updating, make sure the current buildpacks that these apps use are supported by the latest OS. If they aren't you can update the manifest to point them to the correct buildpacks.
- To update the apps you can either deploy each of the environments (sandbox, raft, qasp, etc) from CircleCi or you can use the `tdrs-deploy <ENVIRONMENT>` command from `commands.sh`. Assuming the buildpacks are up to date, that is all you need to do.
- To update the apps you can either deploy each of the environments (raft, qasp, etc) from CircleCi or you can use the `tdrs-deploy <ENVIRONMENT>` command from `commands.sh`. Assuming the buildpacks are up to date, that is all you need to do.

### Secondary apps
- Before you can make the update, you need to ensure you have the CF plugin that allows you to do so. Download the binary for your respective OS [HERE](https://github.com/cloudfoundry/stack-auditor/releases) and follow the installation instructions [HERE](https://docs.cloudfoundry.org/adminguide/stack-auditor.html#install).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Within the dev space, there is no correlation for branch to environment as these

| Dev Site | Frontend URL | Backend URL | Purpose |
| -------- | -------- | -------- |--------------------------------------------------|
| Sandbox | https://tdp-frontend-sandbox.app.cloud.gov | https://tdp-backend-sandbox.app.cloud.gov/admin/ | Space for development in a deployed environment |
| A11y | https://tdp-frontend-a11y.app.cloud.gov | https://tdp-backend-a11y.app.cloud.gov/admin/ | Space for accessibility testing |
| QASP | https://tdp-frontend-qasp.app.cloud.gov | https://tdp-backend-qasp.app.cloud.gov/admin/ | Space for QASP review |
| raft | https://tdp-frontend-raft.app.cloud.gov | https://tdp-backend-raft.app.cloud.gov/admin/ | Space for Raft review |
Expand All @@ -53,4 +52,4 @@ Within the dev space, there is no correlation for branch to environment as these

## Notes

- As of June 2022, CircleCI supplies environment variable key-value pairs to multiple environments (e.g. vendor's CircleCI deploys applications to dev and staging environments). The values from CircleCI are expected to be unique per environment, so until [#1826](https://github.com/raft-tech/TANF-app/issues/1826) is researched and addressed, these values will need to be manually corrected in cloud.gov immediately following the execution of the execution of the [`<env>-deployment` CircleCI workflow](../../.circleci/config.yml) CircleCI workflow. This workaround applies to backend applications in the TDP staging environment.
- As of June 2022, CircleCI supplies environment variable key-value pairs to multiple environments (e.g. vendor's CircleCI deploys applications to dev and staging environments). The values from CircleCI are expected to be unique per environment, so until [#1826](https://github.com/raft-tech/TANF-app/issues/1826) is researched and addressed, these values will need to be manually corrected in cloud.gov immediately following the execution of the execution of the [`<env>-deployment` CircleCI workflow](../../.circleci/config.yml) CircleCI workflow. This workaround applies to backend applications in the TDP staging environment.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ In preparation for production-ready infrastructure, we wanted to create a living
+ [CircleCI failures](./Failed-Deployment-Troubleshooting.md#circleci-failures)
+ [Runtime failures](./Failed-Deployment-Troubleshooting.md#compilationruntime-failure)
+ [App Connectivity issues](./Failed-Deployment-Troubleshooting.md#app-connectivity-issues)
+ [App roll-back](./Failed-Deployment-Troubleshooting.md#revision-rollback)

## CircleCI failures
**Symptom:** I deployed new code (via merging) but the app in Cloud.gov didn't update and is still running old code.
Expand Down Expand Up @@ -77,4 +78,26 @@ export [email protected]
export LOGGING_LEVEL=DEBUG
[...]
bash scripts/deploy-backend.sh rebuild tdp-backend-raft tanf-dev
```
```

## Revision Rollback

First we need to get list of revisions and select a stable revision id.
```cf revisions {app-name}```

Then use the last successful guid, we can populate this reversion command:
```
cf curl v3/deployments \
-X POST \
-d '{
"revision": {
"guid": "{last stable guid from list above}"
},
"relationships": {
"app": {
"data": {
"guid": "{current app guid}"
}
}
}
}'```
1 change: 0 additions & 1 deletion docs/Technical-Documentation/TDP-environments-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

| Dev Site | Frontend URL | Backend URL | Purpose |
| -------- | -------- | -------- | -------- |
| Sandbox | https://tdp-frontend-sandbox.app.cloud.gov | https://tdp-frontend-sandbox.app.cloud.gov/admin/ | Space for devs to test in a deployed environment |
| A11y | https://tdp-frontend-a11y.app.cloud.gov | https://tdp-frontend-a11y.app.cloud.gov/admin/ | Space for accessibility testing |
| QASP | https://tdp-frontend-qasp.app.cloud.gov | https://tdp-frontend-qasp.app.cloud.gov/admin/ | Space for QASP review |
| raft | https://tdp-frontend-raft.app.cloud.gov | https://tdp-frontend-raft.app.cloud.gov/admin/ | Space for raft review |
Expand Down
Loading

0 comments on commit dd7dc90

Please sign in to comment.