-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OAuth session store secret to credential store implementations (#…
…1221) * Add get/set methods for OAuth session store secret Signed-off-by: Babak K. Shandiz <[email protected]> * Add `GetOAuthSecretsBasePath` method to Vault implementation Signed-off-by: Babak K. Shandiz <[email protected]> * Add `(Get|Put)OAuthSessionStoreSecret` methods to Vault implementation Signed-off-by: Babak K. Shandiz <[email protected]> * Add tests for `(Get|Put)OAuthSessionStoreSecret` methods to Vault implementation Signed-off-by: Babak K. Shandiz <[email protected]> * Delete session store secret when cleaning up OAuth secrets in PostgreSQL implementation Signed-off-by: Babak K. Shandiz <[email protected]> * Add `(Get|Put)OAuthSessionStoreSecret` methods to PostgreSQL implementation Signed-off-by: Babak K. Shandiz <[email protected]> * Add tests for `(Get|Put)OAuthSessionStoreSecret` methods to PostgreSQL implementation Signed-off-by: Babak K. Shandiz <[email protected]> * Add `(Get|Put)OAuthSessionStoreSecret` methods to in-memory implementation Signed-off-by: Babak K. Shandiz <[email protected]> * Update mock with new credential store methods Signed-off-by: Babak K. Shandiz <[email protected]> * Use credential store to fetch OAuth session store secret Signed-off-by: Babak K. Shandiz <[email protected]> * Generate OAuth session store secret on start if not exist Signed-off-by: Babak K. Shandiz <[email protected]> * Abort service setup when credential store is not set Signed-off-by: Babak K. Shandiz <[email protected]> * Update test to verify setup fails when credential store is not set Signed-off-by: Babak K. Shandiz <[email protected]> * Apply PostgreSQL credential store for tests Signed-off-by: Babak K. Shandiz <[email protected]> * Fix cleanup by calling `Delete` multiple times Signed-off-by: Babak K. Shandiz <[email protected]> * Run `go mod tidy` Signed-off-by: Babak K. Shandiz <[email protected]> * Fix early stopping of session clean ups Signed-off-by: Babak K. Shandiz <[email protected]> --------- Signed-off-by: Babak K. Shandiz <[email protected]>
- Loading branch information
Showing
13 changed files
with
299 additions
and
63 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
Oops, something went wrong.