Fix client.WithKeychain
to use it during the lifecycle
#1845
Labels
size/sm
Small level of effort
status/ready
Issue ready to be worked on.
type/bug
Issue that reports an unexpected behaviour.
Milestone
Summary
When creating a client using
WithKeychain
, the keychain should be used in the lifecycle.Right now, the lifecycle executor relies on the global
authn.DefaultKeychain
, rather than the one we set in the client.Reproduction
Steps
Create a new
authn.Keychain
and inject it into the client.Current behavior
The keychain is used at first, but the lifecycle still relies on
authn.DefaultKeychain
Expected behavior
The client should inject it's keychain into a new field inside
LifecycleOptions
, and the executor should use the injected keychain rather than the global default.The text was updated successfully, but these errors were encountered: