forked from cds-snc/notification-api
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1344 - Authenticate via Reader instance (#1421)
* read-db uri, engine binding, refactored service * add read-db for testing, formatting fixes, removed prints * added SQLALCHEMY_DATABASE_URI_READ to tasks def-n * adding .rate_limit and .service_sms_senders to AutheticatedServiceInfo * lintere fixes * added tasks for perf, prod and staging * improve readability of docker-compose * add message_limit * refactoring and clean up * lint fix * blank line fix * fixing unit tests init work * fixing unit tests aug2-3 part 1 * fixing unit tests aug 4 * fixed .has_permissions and service_has_permission * all unit tests are passing * cleaned up dev code and prints * additional clean up of unused code and comments * linter fixes * fixed "secret" violates not-null constraint" error * removed commented out import * add logger prints and move .close() * reverting * contextmanager and AuthenticatedServiceApiKey * clean up * clean up * added ticket number to TODO comments * docs for AuthenticatedServiceInfo and clean up * changed set to frozenset * added annotations * pr chage requests * new fixture, __eq__ for ServiceData, renamed AuthenticatedServiceInfo to ServiceData * readme update, moved context to dao utils, changed 403 test case to use sample_service_data_api_key * revert test changes * 403 fix and clean up * fix sample_service_data_api_key def and test_should_attach_the_current_api_key_to_current_app * use postgres 15 * fixed SQLALCHEMY_BINDS in main config * fixed SQLALCHEMY_BINDS * fixed _READ env variable * mod Staging and Production * rm extra line * add a log statement for SQLALCHEMY_BINDS * style fixes * logging * log in config.py * add _read to all task definitions, not only api * check BINDS instead of _READ directly
- Loading branch information
1 parent
eec1408
commit 5c64b47
Showing
49 changed files
with
696 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.