pulp-cli 0.41 break username password auth in older configs (cert and key present but empty)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
- 领域
- authentication, cli
调研方向
首先阅读 CLI 对 cert 和 key 的配置处理,然后比较版本 0.39 和 0.41 对所示 TOML 配置中的空值的处理方式。使用包含 cert = "" 和 key = "" 的配置运行 pulp user list 进行复现;当该命令仍能使用这个旧配置成功通过身份验证时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Summary
Starting in v0.41 of pulp-cli, empty cert and key break username password authentication
Steps to reproduce
- ensure in
~/.config/pulp/cli.toml, for instance by generating with pulp-cli version 0.37.2
[cli]
(...)
username = "admin"
password = "xxx"
verify_ssl = true
cert = ""
key = ""
-
install pulp-cli 0.39
-
verify
pulp user liststill works -
update pulp-cli from 0.39 to 0.41
Expected behavior
pulp user list still works
Stacktrace/Error log
Www-Authenticate: Basic realm="api"
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
b'{"detail":"Authentication credentials were not provided."}'
Error: Authentication failed for users_list.
Pulp and pulp-cli version info
Pulp3 Command Line Interface, Version 0.41.0
Plugin Versions:
common: 0.41.0
Additional context
A config created by pulp-cli 0.37.2 has the empty string values for cert and key
- 主要语言
- Python
- 星标
- 43
- 派生
- 52
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 10
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pulp/pulp-cli 的其他 Issue
-
bug Triage-Needed
难度 2/5 1-3 小时 新手友好度 58/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
维护者通常 1 天内回复
-
feature request
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 1 天内回复
-
container repository sync mirror option missing可能重新可做 关联的 PR 已关闭且未合并。 未关闭easy fix feature request
难度 3/5 1-2 天 新手友好度 25/100
维护者通常 1 天内回复
-
bug Triage-Needed
难度 4/5 3-5 天 新手友好度 42/100
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
Deltares/imod-python#1940 ·
维护者通常 1 天内回复
-
effort: low prio: low ready
难度 1/5 1 小时以内 新手友好度 82/100
digitalfabrik/integreat-cms#4621 ·
维护者通常 5 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
ioos/compliance-checker#1375 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
netbox status: backlog topic: testing type: housekeeping
难度 2/5 1-3 小时 新手友好度 70/100
netbox-community/netbox#23395 ·
维护者通常 1 天内回复