Skip to content

Commit

Permalink
Merge pull request #2687 from GSA-TTS/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jadudm authored Nov 2, 2023
2 parents 165b429 + 6e7fc1c commit d24f03a
Show file tree
Hide file tree
Showing 153 changed files with 769 additions and 458 deletions.
20 changes: 11 additions & 9 deletions backend/.profile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export no_proxy="${S3_ENDPOINT_FOR_NO_PROXY},${S3_FIPS_ENDPOINT_FOR_NO_PROXY},${
export NEW_RELIC_LICENSE_KEY="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "newrelic-creds" ".[][] | select(.name == \$service_name) | .credentials.NEW_RELIC_LICENSE_KEY")"

# Set the application name for New Relic telemetry.
export NEW_RELIC_APP_NAME="$(echo "$VCAP_APPLICATION" | jq -r .application_name)"
#export NEW_RELIC_APP_NAME="$(echo "$VCAP_APPLICATION" | jq -r .application_name)"
export NEW_RELIC_APP_NAME="$(echo "$VCAP_APPLICATION" | jq -r .application_name)-app"

# Set the environment name for New Relic telemetry.
export NEW_RELIC_ENVIRONMENT="$(echo "$VCAP_APPLICATION" | jq -r .space_name)"
Expand All @@ -28,19 +29,20 @@ export NEW_RELIC_ENVIRONMENT="$(echo "$VCAP_APPLICATION" | jq -r .space_name)"
export NEW_RELIC_LOG=stdout

# Logging level, (critical, error, warning, info and debug). Default to info
export NEW_RELIC_LOG_LEVEL=error
export NEW_RELIC_LOG_LEVEL=info

# https://docs.newrelic.com/docs/security/security-privacy/compliance/fedramp-compliant-endpoints/
export NEW_RELIC_HOST="gov-collector.newrelic.com"
# https://docs.newrelic.com/docs/apm/agents/python-agent/configuration/python-agent-configuration/#proxy
https_proxy_protocol="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.protocol")"
https_proxy_domain="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.domain")"
https_proxy_port="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.port")"
#https_proxy_protocol="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.protocol")"
#https_proxy_domain="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.domain")"
#https_proxy_port="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.port")"

export NEW_RELIC_PROXY_HOST="$https_proxy_protocol://$https_proxy_domain"
export NEW_RELIC_PROXY_PORT="$https_proxy_port"
export NEW_RELIC_PROXY_USER="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.username")"
export NEW_RELIC_PROXY_PASS="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.password")"
#export NEW_RELIC_PROXY_SCHEME="$https_proxy_protocol"
#export NEW_RELIC_PROXY_HOST="$https_proxy_domain"
#export NEW_RELIC_PROXY_PORT="$https_proxy_port"
#export NEW_RELIC_PROXY_USER="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.username")"
#export NEW_RELIC_PROXY_PASS="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "https-proxy-creds" ".[][] | select(.name == \$service_name) | .credentials.password")"

# We only want to run migrate and collecstatic for the first app instance, not
# for additional app instances, so we gate all of this behind CF_INSTANCE_INDEX
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"endpoint": "additional_eins",
"report_id": "2021TEST000134732",
"report_id": "2021-12-TSTDAT-0000134732",
"rows": [],
"singletons": {
"auditee_uei": "BADBADBADBAD"
Expand All @@ -14,7 +14,7 @@
},
{
"endpoint": "corrective_action_plans",
"report_id": "2021TEST000134732",
"report_id": "2021-12-TSTDAT-0000134732",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -59,7 +59,7 @@
},
{
"endpoint": "federal_awards",
"report_id": "2021TEST000134732",
"report_id": "2021-12-TSTDAT-0000134732",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -1303,7 +1303,7 @@
},
{
"endpoint": "findings_text",
"report_id": "2021TEST000134732",
"report_id": "2021-12-TSTDAT-0000134732",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -1348,7 +1348,7 @@
},
{
"endpoint": "findings",
"report_id": "2021TEST000134732",
"report_id": "2021-12-TSTDAT-0000134732",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -1459,7 +1459,7 @@
},
{
"endpoint": "notes_to_sefa",
"report_id": "2021TEST000134732",
"report_id": "2021-12-TSTDAT-0000134732",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -1491,7 +1491,7 @@
},
{
"endpoint": "secondary_auditor",
"report_id": "2021TEST000134732",
"report_id": "2021-12-TSTDAT-0000134732",
"rows": [],
"singletons": {
"auditee_uei": "BADBADBADBAD"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[
{
"endpoint": "additional_eins",
"report_id": "2022TEST000147110",
"report_id": "2022-06-TSTDAT-0000147110",
"rows": [],
"singletons": {
"auditee_uei": "ZUFJEU4NMK52"
}
},
{
"endpoint": "additional_ueis",
"report_id": "2022TEST000147110",
"report_id": "2022-06-TSTDAT-0000147110",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -234,7 +234,7 @@
},
{
"endpoint": "corrective_action_plans",
"report_id": "2022TEST000147110",
"report_id": "2022-06-TSTDAT-0000147110",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -1203,7 +1203,7 @@
},
{
"endpoint": "federal_awards",
"report_id": "2022TEST000147110",
"report_id": "2022-06-TSTDAT-0000147110",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -10737,7 +10737,7 @@
},
{
"endpoint": "findings_text",
"report_id": "2022TEST000147110",
"report_id": "2022-06-TSTDAT-0000147110",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -11706,7 +11706,7 @@
},
{
"endpoint": "findings",
"report_id": "2022TEST000147110",
"report_id": "2022-06-TSTDAT-0000147110",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -19985,7 +19985,7 @@
},
{
"endpoint": "notes_to_sefa",
"report_id": "2022TEST000147110",
"report_id": "2022-06-TSTDAT-0000147110",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -20057,7 +20057,7 @@
},
{
"endpoint": "secondary_auditor",
"report_id": "2022TEST000147110",
"report_id": "2022-06-TSTDAT-0000147110",
"rows": [],
"singletons": {
"auditee_uei": "ZUFJEU4NMK52"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"endpoint": "additional_eins",
"report_id": "2022TEST000171944",
"report_id": "2022-08-TSTDAT-0000171944",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -1202,7 +1202,7 @@
},
{
"endpoint": "additional_ueis",
"report_id": "2022TEST000171944",
"report_id": "2022-08-TSTDAT-0000171944",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -2171,7 +2171,7 @@
},
{
"endpoint": "corrective_action_plans",
"report_id": "2022TEST000171944",
"report_id": "2022-08-TSTDAT-0000171944",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -2540,7 +2540,7 @@
},
{
"endpoint": "federal_awards",
"report_id": "2022TEST000171944",
"report_id": "2022-08-TSTDAT-0000171944",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -168186,7 +168186,7 @@
},
{
"endpoint": "findings_text",
"report_id": "2022TEST000171944",
"report_id": "2022-08-TSTDAT-0000171944",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -168555,7 +168555,7 @@
},
{
"endpoint": "findings",
"report_id": "2022TEST000171944",
"report_id": "2022-08-TSTDAT-0000171944",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -172770,7 +172770,7 @@
},
{
"endpoint": "notes_to_sefa",
"report_id": "2022TEST000171944",
"report_id": "2022-08-TSTDAT-0000171944",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -172932,7 +172932,7 @@
},
{
"endpoint": "secondary_auditor",
"report_id": "2022TEST000171944",
"report_id": "2022-08-TSTDAT-0000171944",
"rows": [
{
"fields": [
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
[
{
"endpoint": "additional_eins",
"report_id": "2022TEST000181744",
"report_id": "2022-09-TSTDAT-0000181744",
"rows": [],
"singletons": {
"auditee_uei": "MKEJWVSEURF3"
}
},
{
"endpoint": "additional_ueis",
"report_id": "2022TEST000181744",
"report_id": "2022-09-TSTDAT-0000181744",
"rows": [],
"singletons": {
"auditee_uei": "MKEJWVSEURF3"
}
},
{
"endpoint": "corrective_action_plans",
"report_id": "2022TEST000181744",
"report_id": "2022-09-TSTDAT-0000181744",
"rows": [],
"singletons": {
"auditee_uei": "MKEJWVSEURF3"
}
},
{
"endpoint": "federal_awards",
"report_id": "2022TEST000181744",
"report_id": "2022-09-TSTDAT-0000181744",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -5075,21 +5075,21 @@
},
{
"endpoint": "findings_text",
"report_id": "2022TEST000181744",
"report_id": "2022-09-TSTDAT-0000181744",
"rows": [],
"singletons": {
"auditee_uei": "MKEJWVSEURF3"
}
},
{
"endpoint": "findings",
"report_id": "2022TEST000181744",
"report_id": "2022-09-TSTDAT-0000181744",
"rows": [],
"singletons": {}
},
{
"endpoint": "notes_to_sefa",
"report_id": "2022TEST000181744",
"report_id": "2022-09-TSTDAT-0000181744",
"rows": [
{
"fields": [
Expand All @@ -5111,7 +5111,7 @@
},
{
"endpoint": "secondary_auditor",
"report_id": "2022TEST000181744",
"report_id": "2022-09-TSTDAT-0000181744",
"rows": [],
"singletons": {
"auditee_uei": "MKEJWVSEURF3"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[
{
"endpoint": "additional_eins",
"report_id": "2022TEST000182926",
"report_id": "2022-06-TSTDAT-0000182926",
"rows": [],
"singletons": {
"auditee_uei": "M1LVPE5GLSD9"
}
},
{
"endpoint": "additional_ueis",
"report_id": "2022TEST000182926",
"report_id": "2022-06-TSTDAT-0000182926",
"rows": [],
"singletons": {
"auditee_uei": "M1LVPE5GLSD9"
}
},
{
"endpoint": "corrective_action_plans",
"report_id": "2022TEST000182926",
"report_id": "2022-06-TSTDAT-0000182926",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -62,7 +62,7 @@
},
{
"endpoint": "federal_awards",
"report_id": "2022TEST000182926",
"report_id": "2022-06-TSTDAT-0000182926",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -89594,7 +89594,7 @@
},
{
"endpoint": "findings_text",
"report_id": "2022TEST000182926",
"report_id": "2022-06-TSTDAT-0000182926",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -89639,7 +89639,7 @@
},
{
"endpoint": "findings",
"report_id": "2022TEST000182926",
"report_id": "2022-06-TSTDAT-0000182926",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -89860,7 +89860,7 @@
},
{
"endpoint": "notes_to_sefa",
"report_id": "2022TEST000182926",
"report_id": "2022-06-TSTDAT-0000182926",
"rows": [
{
"fields": [
Expand Down Expand Up @@ -89892,7 +89892,7 @@
},
{
"endpoint": "secondary_auditor",
"report_id": "2022TEST000182926",
"report_id": "2022-06-TSTDAT-0000182926",
"rows": [],
"singletons": {
"auditee_uei": "M1LVPE5GLSD9"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit d24f03a

Please sign in to comment.