Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make accountDB optional. #52

Open
Foxcapades opened this issue Sep 9, 2024 · 0 comments
Open

Make accountDB optional. #52

Foxcapades opened this issue Sep 9, 2024 · 0 comments

Comments

@Foxcapades
Copy link
Member

Problem

Container core validates that accountdb is configured and reachable regardless of whether it is actually being used.

Right now for a service to use auth at all, container core requires accountdb to be configured. For new services, or services that have been updated to use oauth, accountdb is not necessary, however must still be set up for a service to be usable.

Proposal

Alter the requirements of the auth filter through some means to allow for services to exclusively use oauth without needing account db to be configured.

Perhaps as an interim fix while accountdb's direct use by services is being pruned from our services, container core can check for the accountdb and/or oauth environment variables before deciding whether accountdb should be mandatory?

For example, if a service requests auth be enabled, however only the oauth env vars are present, log a message indicating that legacy auth is disabled and continue without accountdb.

@Foxcapades Foxcapades changed the title Make accountDB non-mandatory. Make accountDB optional. Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant