Skip to content

Commit

Permalink
Merge branch 'develop' into 2695-field-spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-jameson authored Nov 6, 2023
2 parents ce8521d + 7115532 commit 9a53a06
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 11 deletions.
49 changes: 49 additions & 0 deletions docs/Sprint-Review/sprint-83-summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

# Sprint 83 Summary

09/30/23 - 10/11/23

Velocity: Dev (18)

## Sprint Goal
* Complete parsing engine development for TANF Section (04) and begin 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
* [#1612 Detailed case level metadata](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1612)
* [#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)

### Ready to Merge
* N/A

### Submitted (QASP Review, OCIO Review)
* N/A

### Closed (not merged)
* N/A

## Moved to Next Sprint (Blocked, Raft Review, In Progress, Current Sprint Backlog)
### In Progress
* [#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)
* [#2663 Investigate OWASP NightlyScan findings](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2663)

### Blocked
* N/A

### Raft Review
* [#2429 Singular ClamAV scanner](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2429)
* [#2664 (bug) file extension](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2664)
* [#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)

### Demo
* Internal:
* 1111, 1610, 1612
* External:
* 1111, 1610, 1612

61 changes: 61 additions & 0 deletions docs/Sprint-Review/sprint-84-summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Sprint 84 Summary
10/10/23 - 10/24/23

Velocity: Dev (10)

### Sprint Goal
* Dev:
* Continue parsing engine development
* Complete SSP Sec (01) and SSP Sec (02)
* Resolve deployment blocker
* Coordinate w/ OFA and draft dev contingency plan for future gov shutdown
* DevOps:
* 2429 - Singular Clam AV
* 2722 - Singular deployment workflow
* UX: Resume regional staff research, synthesize in-app messaging research, continue supporting onboarding/utilization
* Prod: Find path forward on Sendgrid

## Tickets
### Completed/Merged
* [#2411 As system admin, I want to view metadata on parsed datafiles](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2411)
* [#2429 Singular ClamAV Scanner](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2429)
* [#2664 (bug) file extension](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2664)



### Ready to Merge
* [#2695 space-filled values update](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2695)
* [#2725 file input render issue](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2725)


### Submitted (QASP Review, OCIO Review)
* [#2701 FETCH_STTS Infinite Request](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2701)
* [#2709 SSP (Section 1) validation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2709)

### Closed (not merged)
* N/A

## Moved to Next Sprint (Blocked, Raft Review, In Progress, Current Sprint Backlog)
### In Progress
* [#2536 [spike] Cat 4 validation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2536)
* [#1119 SSP Aggregate (03) Parsing](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1119)
* [#2592 Deploy celery as a separate cloud.gov app](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2592)
* [#2599 Readability enhancements for error reports](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2599)
* [#2683 ZAP result - CORS config issue](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2683)
* [#2722 simplify workflows and de-bloat pipeline code](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2722)


### Blocked
* N/A

### Raft Review
* [#1118 SSP Closed Data (02) Parsing](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1118)
* [#1120 SSP Stratum (04) Parsing](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/1120)
* [#2116 Container Registry creation](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2116)
* [Spike - Investigate OWASP nightly scan findings](https://app.zenhub.com/workspaces/sprint-board-5f18ab06dfd91c000f7e682e/issues/gh/raft-tech/tanf-app/2663)

### Demo
* N/A



12 changes: 9 additions & 3 deletions scripts/deploy-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ set_cf_envs()
"FRONTEND_BASE_URL"
"LOGGING_LEVEL"
"REDIS_URI"
"JWT_KEY"
"STAGING_JWT_KEY"
)

echo "Setting environment variables for $CGAPPNAME_BACKEND"
Expand All @@ -62,9 +64,13 @@ set_cf_envs()
cf_cmd="cf unset-env $CGAPPNAME_BACKEND $var_name ${!var_name}"
$cf_cmd
continue
elif [[ ("$var_name" =~ "STAGING_") && ("$CF_SPACE" = "tanf-staging") ]]; then
sed_var_name=$(echo "$var_name" | sed -e 's@STAGING_@@g')
cf_cmd="cf set-env $CGAPPNAME_BACKEND $sed_var_name ${!var_name}"
else
cf_cmd="cf set-env $CGAPPNAME_BACKEND $var_name ${!var_name}"
fi

cf_cmd="cf set-env $CGAPPNAME_BACKEND $var_name ${!var_name}"

echo "Setting var : $var_name"
$cf_cmd
done
Expand Down Expand Up @@ -128,7 +134,7 @@ update_backend()
bind_backend_to_services() {
echo "Binding services to app: $CGAPPNAME_BACKEND"

if [ "$CFAPPNAME_BACKEND" = "tdp-backend-develop" ]; then
if [ "$CGAPPNAME_BACKEND" = "tdp-backend-develop" ]; then
# TODO: this is technical debt, we should either make staging mimic tanf-dev
# or make unique services for all apps but we have a services limit
# Introducing technical debt for release 3.0.0 specifically.
Expand Down
6 changes: 5 additions & 1 deletion tdrs-backend/tdpservice/settings/cloudgov.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ class CloudGov(Common):
#
env_based_db_name = f'tdp_db_{cloudgov_space_suffix}_{cloudgov_name}'

db_name = database_creds['db_name'] if (cloudgov_space_suffix in ["prod", "staging"]) else env_based_db_name
logger.debug("css: " + cloudgov_space_suffix)
if (cloudgov_space_suffix in ["prod", "staging"]):
db_name = database_creds['db_name']
else:
db_name = env_based_db_name

DATABASES = {
'default': {
Expand Down
8 changes: 4 additions & 4 deletions tdrs-frontend/nginx/cloud.gov/buildpack.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ http {
log_format compression '$remote_addr - $remote_user [$time_local] '
'"proxy_host and upstream_addr": $proxy_host $upstream_addr, '
' "request": $request, '
'"body_bytes_sent" : $body_bytes_sent, '
'"body_bytes_sent" : $body_bytes_sent, '
'"request_body": $request_body, '
'"http_x_forwarded_for": $http_x_forwarded_for, '
'"http_x_forwarded_for": $http_x_forwarded_for, '
'"host": $host, '
' "status": $status, '
'"proxy_add_x_forwarded_for": $proxy_add_x_forwarded_for, '
Expand All @@ -47,7 +47,7 @@ http {
}

client_max_body_size 100m;

# Block all requests except ones listed in whitelist; disabled for local
# First have to correct the source IP address using real_ip_header, otherwise
# the IP address will be the internal IP address of the router
Expand All @@ -63,7 +63,7 @@ http {
set $CSP "default-src 'self';";
set $CSP "${CSP}script-src 'self';";
set $CSP "${CSP}script-src-elem 'self';";
set $CSP "${CSP}script-src-attr 'self';";
set $CSP "${CSP}script-src-attr 'self' 'unsafe-inline';";
set $CSP "${CSP}img-src 'self' data:;";
set $CSP "${CSP}font-src 'self';";
set $CSP "${CSP}connect-src 'self' ${CONNECT_SRC};";
Expand Down
6 changes: 3 additions & 3 deletions tdrs-frontend/nginx/local/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ http {
set $CSP "${CSP}prefetch-src 'none';";
set $CSP "${CSP}form-action *;";
set $CSP "${CSP}script-src-elem 'self' http://localhost:* http://www.w3.org;";
set $CSP "${CSP}script-src-attr 'self';";
set $CSP "${CSP}script-src-attr 'self' 'unsafe-inline';";
set $CSP "${CSP}style-src-elem 'self' 'unsafe-inline';";
set $CSP "${CSP}style-src-attr 'self';";
set $CSP "${CSP}worker-src 'none';";
Expand All @@ -104,7 +104,7 @@ http {

access_log /dev/stdout compression;
#access_log stderr compression;

# Content caching
# saves cached fies in /tmp
# cache zone name = tdp_cache
Expand All @@ -126,7 +126,7 @@ http {
set $CSP "default-src 'self';";
set $CSP "${CSP}script-src 'self';";
set $CSP "${CSP}script-src-elem 'self';";
set $CSP "${CSP}script-src-attr 'self';";
set $CSP "${CSP}script-src-attr 'self' 'unsafe-inline';";
set $CSP "${CSP}img-src 'self' data:;";
set $CSP "${CSP}font-src 'self';";
set $CSP "${CSP}manifest-src 'self';";
Expand Down

0 comments on commit 9a53a06

Please sign in to comment.