forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/2709-ssp-section-1-validation
- Loading branch information
Showing
19 changed files
with
527 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
# Sprint 82 Summary | ||
|
||
09/13/23 - 09/26/23 | ||
|
||
Velocity: Dev (13) | ||
|
||
## Sprint Goal | ||
* Continue parsing engine development for TANF Section (04) and SSP (01), close out subsmission history and metadata workflows (1613/12/10). | ||
* UX to continue regional staff and in-app messaging research, errors audit approach, and bridge onboarding to >95% of total users | ||
* DevOps to investigate singluar ClamAV (2429), resolve utlity images for CircleCI and evaluate CI/CD pipeline. | ||
|
||
## Tickets | ||
### Completed/Merged | ||
* [#1613 As a developer, I need parsed file meta data (TANF Section 1)](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/board) | ||
* [#2700 Deployment/migration issue](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2700) | ||
|
||
### Ready to Merge | ||
* N/A | ||
|
||
### Submitted (QASP Review, OCIO Review) | ||
* [#1612 Detailed case level metadata](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1612) | ||
|
||
### Closed (not merged) | ||
* N/A | ||
|
||
## Moved to Next Sprint (Blocked, Raft Review, In Progress, Current Sprint Backlog) | ||
### In Progress | ||
|
||
* [#2429 Singular ClamAV scanner](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2429) | ||
* [#2695 space-filled values update](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2695) | ||
* [#2411 As system admin, I need to view metadata on parsed datafiles](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2411) | ||
* [#2536 [spike] Cat 4 validation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2536) | ||
* [#2709 SSP (Section 1) validation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2709) | ||
|
||
### Blocked | ||
* N/A | ||
|
||
### Raft Review | ||
* [#1610 As a user, I need information about the acceptance of my data and a link for the error report](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1610) | ||
* [#1111 TANF (04) Parsing and Validation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1111) | ||
* [#2664 (bug) file extension](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2664) | ||
|
||
### Demo | ||
* Internal: | ||
* 1613 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# CLAMAV | ||
|
||
In order to have one CLAMAV instance, existing in prod, the Nginx router is created | ||
for CLAMAV to forward the traffic from 'dev' and 'staging' spaces into | ||
prod space, where the CLAMAV service exists. | ||
|
||
## Deploy Nginx instance | ||
To route the clamav traffic to clamav in prod, each space needs to have one instance of _Nginx Router_ which routes traffic to clamav. | ||
|
||
In order to deploy the nginx router instance, change your directory to `tdrs-backend/clamav-router/` and run the following command while logged into the target space: | ||
|
||
|
||
>`cf push tdp-clamav-nginx-${cf-shortened-space} -f manifest.yml --no-route` | ||
, where _cf-shortened-space_ can be : _dev_, _staging_, or _prod_. | ||
|
||
The instance name then will be set as an environment variable to redirect each instance traffic. This will deploy the nginx instance to the target environment. | ||
|
||
## Further communication configurations | ||
|
||
### Setup Individual Instances | ||
|
||
First, set the environment variable __AV_SCAN_URL__ as follows: | ||
``` | ||
Environment variable name: AV_SCAN_URL | ||
Environment variable value: http://{nginx_instance}.apps.internal:9000/scan | ||
``` | ||
|
||
### Add network policy from _{tdp-clamav-nginx}_ to clamav in prod | ||
To enable traffic between the "__nginx instance__" and "__clamav instance in production__", we need to add the network policiy and route between the two: | ||
|
||
>`cf add-network-policy {nginx_instance} "clamav-rest" -s "tanf-prod" --protocol tcp --port 9000` | ||
e.g: `{nginx_instance_name} = tdp-clamav-nginx-dev` | ||
|
||
### Add network policy from _{backend_instance}_ to _tdp-clamav-nginx_ | ||
|
||
>`cf add-network-policy {backend_instance} {nginx_instance} --protocol tcp --port 9000` | ||
where e.g: `backend_instance = tdp-backend-develop` | ||
|
||
### Add route for _tdp-clamav-nginx_ | ||
|
||
Note: Make sure to delete (if existing) routes that are not being used. In some rare cases, a mal-assigned network policy can interfere with outgoing traffic. As an example, a policy like | ||
>`cf delete-route app.cloud.gov --hostname tdp-frontend-staging` | ||
Add route: | ||
|
||
>`cf map-route {nginx_instance} apps.internal --hostname {nginx_instance}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 1 | ||
applications: | ||
- name: tdp-clamav-nginx | ||
buildpacks: | ||
- https://github.com/cloudfoundry/nginx-buildpack.git#v1.2.6 | ||
memory: 32M | ||
instances: 1 | ||
disk_quota: 64M | ||
timeout: 180 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
events { worker_connections 1024; | ||
} | ||
|
||
# This opens a route to clamav prod | ||
http{ | ||
server { | ||
listen {{port}}; | ||
location /scan { | ||
proxy_pass http://tanf-prod-clamav-rest.apps.internal:9000/scan; | ||
proxy_pass_request_headers on; | ||
} | ||
} | ||
server { | ||
listen 9000; | ||
location /scan { | ||
proxy_pass http://tanf-prod-clamav-rest.apps.internal:9000/scan; | ||
proxy_pass_request_headers on; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.