Skip to content

a public web application to manage the creation, permitting, and payment for underground injection control sites in Utah

Notifications You must be signed in to change notification settings

uic-utah/uic-inventory

Repository files navigation

UIC Inventory

Debugging

./scripts/watch.sh

Rebuilding database

./scripts/rebuild_db.sh

chmod +x ./scripts/yada yada

Secrets

API secrets

dotnet user-secrets init
dotnet user-secrets set "Redis:Configuration" "localhost:6379"

dotnet user-secrets set "UtahId:Authority" "https://login.dts.utah.gov:443/sso/oauth2"
dotnet user-secrets set "UtahId:ClientId" ""
dotnet user-secrets set "UtahId:ClientSecret" ""

dotnet user-secrets set "CloudSql:Host" "localhost"
dotnet user-secrets set "CloudSql:Port" "5432"
dotnet user-secrets set "CloudSql:Db" "app"
dotnet user-secrets set "CloudSql:Username" "postgres"
dotnet user-secrets set "CloudSql:Password" "what password"

dotnet user-secrets set "App:AdminEmail" "[email protected]"

dotnet user-secrets set "SendGrid:Key" "your send grid api key"

dotnet user-secrets set "UPLOAD_BUCKET" "the gcp storage bucket where uploaded files are processed"
dotnet user-secrets set "STORAGE_BUCKET" "the gcp bucket where scanned files are stored"

dotnet user-secrets set "GroundWaterContacts:Connection" "the connection string for the ground water contacts database"

App secrets

  1. Duplicate ./src/api/uic-inventory/.env to ./src/api/uic-inventory/.env.local and add an API key.

Deployment

Warning

There are a lot of chicken and egg issues with this project deployment.

API deployment

  1. Request the Cloud Run service account is attached to the DTS shared VPC
  2. Request an authorized network for the Memorystore Redis
  3. Update those values in the terraform and apply the plan. It will fail.
  4. Update the secret-appsettings with the database password, redis URI, UtahID client information, and report function URI.

Malware scanner deployment

  1. Run the Scheduled Events GitHub Action to create the clam AV data

  2. Run the Workflow Dispatch Events GitHub Action to create the clam AV Cloud Run

  3. Rerun the terraform

About

a public web application to manage the creation, permitting, and payment for underground injection control sites in Utah

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages