mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
[PR #385] [MERGED] Fix: The {account} login fails when the name contains '$' sign #729
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/385
Author: @huzky-v
Created: 3/28/2025
Status: ✅ Merged
Merged: 3/29/2025
Merged by: @mbecker20
Base:
1.17.1← Head:fix-docker-login-account-$📝 Commits (1)
b6138a9Fix for the {account} login fails when the account name contains '$'📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
bin/periphery/src/docker.rs(+1 -1)📄 Description
Just found a bug about the docker login process.
I tried Harbor as my image storage, their username always generate in the format of:
robot$something+username.I found that I could not set robot$something+username in the Registry Accounts Setting.
It will lead to
Error response from daemon: Get "https://XXX/v2/": unauthorizedAfter some research, docker login for this kind of username needs to be
docker login XXX --username 'robot$something+username'instead ofdocker login XXX --username robot$something+usernamestated in the code (username needs to be single quoted, found that the code are not quoted)Not sure if normal username will be affected also
Tested in command line, single quoting a normal username on ghcr.io logins fine
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.