-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
镜像仓库凭证包含$导致解析问题 #147
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
Type: feature request
提供关闭凭证使用
os.ExpandEnv
的方式Describe what feature you want
我们使用过程中遇到一个问题,当镜像仓库的帐号包含
$
时,如aaa$bbb,最终经过解析之后变为了aaa,翻查了一下代码发现是使用了os.ExpandEnv导致的,不把凭证直接写入到文件确实是最佳实践,但是如果将凭证存储到环境变量时,一般是使用纯环境变量,而不是拼接的方式,我有以下建议:
os.ExpandEnv
api处理用户/密码的方式$
开头的值进行渲染Additional context
这里提供代码路径和截图:
image-syncer/pkg/client
The text was updated successfully, but these errors were encountered: