canonical / dex-auth-operator

Operator for Dex Auth
Apache License 2.0
3 stars 14 forks source link

feat: add `enablePasswordDB` charm configuration option to enable/disable static password login (#149) #153

Closed DnPlas closed 1 year ago

DnPlas commented 1 year ago

In this PR:

Generate dex-auth configuration outside of update_layer() will allow us to have error handling when checking for certain conditions of the configurations without cluttering too much the update_layer() method.

This commit also leverages CheckFailedError to set the unit status to blocked when the static login has been disabled and no connectors configuration has been provieded.

Lastly, this commit introduces a change for raising CheckFailedError in some methods and handling the exception in main().

Fixes #76 in track/2.31 Fixes #155 in track/2.31

IMPORTANT: