Skip to content

Comments

fix(registry/auth): auth validation workaround#2225

Closed
radu-matei wants to merge 1 commit intospinframework:mainfrom
radu-matei:fix/skip-registry-login-verification
Closed

fix(registry/auth): auth validation workaround#2225
radu-matei wants to merge 1 commit intospinframework:mainfrom
radu-matei:fix/skip-registry-login-verification

Conversation

@radu-matei
Copy link
Member

This commit updates the registry login logic to not error if the credential validation fails, but log the message and attempt to continue.

This behavior unblocks the use of registries whose login flow does not accept certain auth types, but if the credentials entered are wrong, could lead to users being appearing to be logged in, but unable to access the registry without logging in again with the right credentials.

Specifically, this most likely needs a --skip-validation flag to be explicitly passed by the user when logging in, but we probably need to rethink the login (and potentially add a logout / retry) flow.

We should most likely not merge this commit in its current state, its goal is to immediately unblock a current use case, but posted for future reference.

This commit updates the registry login logic to not error if the
credential validation fails, but log the message and attempt to
continue.

This behavior unblocks the use of registries whose login flow does not
accept certain auth types, but if the credentials entered are wrong,
could lead to users being appearing to be logged in, but unable to
access the registry without logging in again with the right credentials.

Specifically, this most likely needs a --skip-validation flag to be
explicitly passed by the user when logging in, but we probably need to
rethink the login (and potentially add a logout / retry) flow.

We should most likely not merge this commit in its current state, its
goal is to immediately unblock a current use case, but posted for
future reference.

Signed-off-by: Radu Matei <radu@fermyon.com>
@vdice
Copy link
Contributor

vdice commented Feb 29, 2024

We've decided to pursue #2308 as an alternate fix.

@vdice vdice closed this Feb 29, 2024
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