oidc configuration not being removed when config is unset
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Charm |
New
|
Undecided
|
Unassigned |
Bug Description
I have the following config options set via Juju:
* oidc_client_id
* oidc_client_secret
* oidc_issuer
* oidc_logout_url
These are correctly reflected in "/etc/landscape
```
ubuntu@
oidc-issuer = https:/
oidc-client-id = <redacted>
oidc-client-secret = <redacted>
oidc-logout-url =
```
When I set those config options back to their defaults:
```
juju config landscape-server --reset oidc_client_id --reset oidc_client_secret --reset oidc_issuer --reset oidc_logout_url
```
I see the following in the unit log:
```
2024-03-27 03:58:16 INFO unit.landscape-
2024-03-27 03:58:35 INFO juju.worker.
```
But the OIDC keys are not removed from "/etc/landscape
As a workaround I can set "additional_
```
stg-is-
[landscape]
oidc-issuer =
oidc-client-id =
oidc-client-secret =
oidc-logout-url =
```
This blanks out those settings:
```
ubuntu@
oidc-issuer =
oidc-client-id =
oidc-client-secret =
oidc-logout-url =
```