<#1977 [BUG] Propeller should reload if oauth clie...
# flyte-github
c
#1977 [BUG] Propeller should reload if oauth client secret changes Issue created by sbrunk ### Describe the bug Currently, propeller does not detect and load a changed if
client_secret
in
flyte-secret-auth
until it is restarted. So if you change
client_secret
after propeller has been deployed, it fails to process any workflow and will log errors like this:
Copy code
E1220 16:10:36.391892       1 workers.go:102] error syncing 'mandant1-development/f3359d6b5cd941830000': Workflow[] failed. ErrorRecordingError: failed to publish event, caused by: EventSinkError: Error sending event, caused by [rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken]
### Expected behavior if
client_secret
in
flyte-secret-auth
is changed, propeller (possibly also flytescheduler) should detect the changes, reload and use the new secret. ### Additional context to reproduce 1. Deploy flyte with auth enabled but without setting
client_secret
(defaults to
foobar
) 2. Change
client_secret
in
flyte_secret_auth
to a valid secret 3. Flytepropeller will still try to use the default secret until you restart it ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte