chore: local dev auth bypass - #445
Open
mdiapenabc wants to merge 8 commits into
Open
Conversation
Enable laptop development without Keycloak or ICM via DEPLOY_ENV=local and VITE_APP_ENV=LOCAL, with Makefile targets, docker-compose updates, CRA file storage under .local/storage, and seed cleanup for related tables.
Add persona-based seeding, filesystem ICM/MIS/CRA integrations, Makefile targets for ingest/eligibility and mock RSP/WKL generation, and remove the optional MinIO docker profile in favor of .local/storage for laptop dev.
Refresh backend and frontend READMEs with src layout and setup steps, correct seed contact counts in the root README, and add root .nvmrc plus make install for first-time setup.
mdiapenabc
marked this pull request as ready for review
August 8, 2026 15:40
CSAGuard now depends on ConfigService for local auth bypass, so the test module must provide it.
Require DEPLOY_ENV and document CRA/sync vars in .env.example instead of code defaults. Replace TST0016 with TESTUSERID1 for public local dev fixtures.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Developers need to run CSA on a laptop without deploy env dependencies: S3, authentication.... This PR adds a
DEPLOY_ENV=localworkflow: Colima Postgres, filesystem-backed ICM/MIS/CRA mocks, auth bypass, persona-based seed data, Makefile pipeline commands, and mock CRA RSP/WKL generators for end-to-end batch testing.What changed
local-dev-tokenwhenDEPLOY_ENV=local; frontend skips Keycloak whenVITE_APP_ENV=LOCALLocalIcmDataSourceandLocalFileStorageServiceread from.local/storage/; CRA usesMockCraTransferService(no MinIO/S3 on laptop)backend/prisma/local-dev/make db,install,data-fetch,run-eligibility,generate-cra-response,generate-cra-wkl,poll-cra-response,backend/frontendwith optionalBACKEND_WATCH=0RESPONSE_OUTCOME,WKL_OUTCOME)CraModuleimported in API jobs module so Send to CRA works from the local API process.local/storagemounted for app profileHow to test
make env && make install && make db: Postgres up, 32 contacts seeded, fixtures in.local/storage/`make dev— UI at http://localhost:5173, API at http://localhost:3000/api (no Keycloak)make generate-cra-response && make poll-cra-response: acknowledgement appliedmake generate-cra-wkl && make poll-cra-response: contacts move to In Paynpm testinbackend/: includingprisma/local-dev/*.spec.ts