backend dotenv
This PR is a quality of life improvement to how environment variables are handled for local gradle tasks (these variables are NOT used in the prime-router application being built when it is ran).
- All environment variables from docker yaml and gradle build moved to
.envfile- host-specific overrides that are used in gradle build have a
host(capitalization depending on existing pattern) prefix
- host-specific overrides that are used in gradle build have a
- build fun
loadDotEnvadded- creates map variable of the following in priority least to greatest:
- .env
- .env.local
- host environment
- project properties
- applies specific overrides (docker hostname to localhost) to particular variables if one wasn't supplied manually via host environment or project properties
- creates map variable of the following in priority least to greatest:
- build vault fun updated to create new map (applying vault variables on top) from provided map
- env var accesses replaced with dotEnv
- Prime-router
.gitignoreinitialized using the root.gitignore- Entry ignoring
.env.local / .env.*.localfiles added to.gitignore
- Entry ignoring
- prime-router specific
.gitignoreentries removed from root.gitignore - docker compose usages across github actions, un-deprecated documentation, scripts, etc. updated to use dotenv file
Dependency Review
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
| Package | Version | Score | Details |
|---|
Scanned Manifest Files
Test Results
0 tests - 1 172 0 :white_check_mark: - 1 168 0s :stopwatch: - 6m 57s 0 suites - 147 0 :zzz: - 4 0 files - 147 0 :x: ± 0
Results for commit 281cc936. ± Comparison against base commit eca9466a.
:recycle: This comment has been updated with latest results.
Integration Test Results
0 files - 62 0 suites - 62 0s :stopwatch: - 33m 29s 0 tests - 394 0 :white_check_mark: - 384 0 :zzz: - 10 0 :x: ±0 0 runs - 397 0 :white_check_mark: - 387 0 :zzz: - 10 0 :x: ±0
Results for commit 281cc936. ± Comparison against base commit eca9466a.
:recycle: This comment has been updated with latest results.
