Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial sandbox prototype Services are built, postgrest is online, but having difficulties with the app, proxies, logshipper and scanner. Likely due to the fact that sandbox can't create multiple spaces for the egress. Considering putting them in the same sandbox space, and keeping everything on apps.internal * Terraform runs, fails to stage 2024-09-09T15:43:11.60-0400 [STG/0] ERR Warning: the last buildpack is not compatible with multi-buildpack apps and cannot make use of any dependencies supplied by the buildpacks specified before it 2024-09-09T15:43:11.60-0400 [STG/0] ERR Warning: this buildpack can only be run as a supply buildpack, it can not be run alone 2024-09-09T15:43:12.48-0400 [STG/0] ERR Failed to compile droplet: Failed to compile droplet: exit status 1 * App and AV deploy.. but.. App: 2024-09-10T14:00:13.78-0400 [APP/PROC/WEB/0] OUT Invoking pre-start scripts. 2024-09-10T14:00:13.99-0400 [APP/PROC/WEB/0] OUT STARTUP LOCAL_ENV No environment variable is set! 2024-09-10T14:00:13.99-0400 [APP/PROC/WEB/0] OUT STARTUP STARTUP_CHECK setup_env FAIL Looks like the app is atleast trying to run the .profile AV: Out of memory. Need to increase the memory, potentially ask cgov about expanding sandbox quota limits for memory * Modified setup to try and get a running instance Due to the error presented (Which we expect) 2024-09-11T09:24:17.29-0400 [APP/PROC/WEB/0] OUT Invoking pre-start scripts. 2024-09-11T09:24:17.47-0400 [APP/PROC/WEB/0] OUT STARTUP LOCAL_ENV Environment set as: SANDBOX 2024-09-11T09:24:17.72-0400 [APP/PROC/WEB/0] OUT STARTUP STARTUP_CHECK setup_env PASS 2024-09-11T09:24:17.72-0400 [APP/PROC/WEB/0] OUT STARTUP API_TEARDOWN BEGIN 2024-09-11T09:24:17.72-0400 [APP/PROC/WEB/0] OUT STARTUP DROP_DEPRECATED_API_SCHEMA_AND_VIEWS BEGIN 2024-09-11T09:24:18.19-0400 [APP/PROC/WEB/0] ERR show_deprecation_warning() 2024-09-11T09:24:19.43-0400 [APP/PROC/WEB/0] ERR {"message": "RSA key format is not supported"} 2024-09-11T09:24:19.43-0400 [APP/PROC/WEB/0] ERR {"message": "Key jar preparation failed for https://idp.int.identitysandbox.gov"} 2024-09-11T09:24:19.43-0400 [APP/PROC/WEB/0] ERR {"message": "[******] The system broke while trying to log you in."} 2024-09-11T09:24:19.43-0400 [APP/PROC/WEB/0] ERR {"message": "Unable to configure OpenID Connect provider. Users cannot log in."} This will require some dev intervention * Update gitignore * Disable newrelic start * Add note about proxy * Update Readme Force app replacement * Use an old procfile to try and get system to boot * Add --preload to debug stack * Test without collectstatic * Modify profile again * Disable the entire .profile * Try to just do something that will pass * Just use an echo for now * Preboot in sandbox Ultimately will not work due to out of memory exceptions being thrown * Single Worker thread * executable for start command in terraform * Modify based on SO post * Fails gunicorn startup * Reconfigure the app now that we can do strategy rolling * update chmod for destroy * Reset everything to try and get a working deployment * Add fac-key-service * disable api * Proxy configuration seems good At this time, there are still a few major issues, but.. it does appear that the proxy is working as intended. Even though the deploy failed for staticfiles and on the boot sequence, the attempts to reach out to identitysandbox seemed to work, and were not 443'd. * Disable collectstatic * Reset proxy * Add direct route back * Remove --preload, maybe fix whitenoise missing import? * Revert Procfile * Add the correct routing and environment variables * Make sure settings.py included sandbox space * Remove depends_on * Readd staticfiles in .profile * disable once more * Modify app * add collectstatic back * disable once again * Get things back to stable * Update System * Modify bin/ops files to run * Create a complete initial README.md * Update gitignore * Delete terraform lock file * Have a dedicated https-proxy for sandbox This moves the client registration of the network policies to be out of the proxy module without impacting the live proxy * Add acl for client registration * add acl support for routes * Specify only the branch * Infra config improvements * Ensure we have compiled assets * Bump the timeout to 15m * Disable smtp-proxy (for now) * Re-enable API boot sequence * Disable collectstatic in .profile * CRLF -> LF * Fix command * add MV * Executable * Copy paste error * Update Readme * terraform fmt * Add sandbox.tfvars helper * Add helper script * Update helper scripts * Indent fix * Update Readme * Update readme * Update readme * Update Readme * Execution bit, README edits Some changes useful, some just flags for further editing. * cleanup helper scripts * Add backup db * Enable partial config with s3 to store tfstate * Update Readme * Update Readme * Fix cat * Uncomment Destroy * Fix proxy * Revert * Update Readme * Update Readme * Update Readme * Update Readme * Update Readme * Update Readme * Update Readme * Test fixing migrations * revert * Update Readme * Undo smtp proxy change * CRLF -> LF * CRLF -> LF * CRLF -> LF * Cleanup .profile * CRLF -> LF * Regenerate Examples with Meta Module * Upgrade Provider * Module Upgrades * terraform fmt * Update provider --------- Co-authored-by: Matt Jadud <[email protected]>
- Loading branch information