Skip to content

Conversation

@migmartri
Copy link
Member

@migmartri migmartri commented Jun 5, 2024

To prevent unexpected credentials overrides in the case the user has previously logged in explicitly but has an env variable, the system will not give priority to the user authentication instead and will show a warning message.

In addition to that, the credentials load logic has been improved to being able to detect when credentials are explicitly set vs loaded from env variables, and notify the user accordingly.

Token provided

chainloop wf ls --token $T
INF API token provided to the command line
...

with env var instead CHAINLOOP_TOKEN=foobar

chainloop wf ls           
WRN Both user credentials and $CHAINLOOP_TOKEN set. Ignoring $CHAINLOOP_TOKEN.
...

refs #891

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri requested review from javirln and jiparis June 5, 2024 14:12
Copy link
Member

@javirln javirln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@migmartri migmartri merged commit e545dae into chainloop-dev:main Jun 5, 2024
@migmartri migmartri deleted the do-not-load-account branch June 5, 2024 14:33
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

Successfully merging this pull request may close these issues.

2 participants