Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

pulp-cli 0.41 break username password auth in older configs (cert and key present but empty)

未关闭 适合新手
#1,487 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

首先阅读 CLI 对 cert 和 key 的配置处理,然后比较版本 0.39 和 0.41 对所示 TOML 配置中的空值的处理方式。使用包含 cert = "" 和 key = "" 的配置运行 pulp user list 进行复现;当该命令仍能使用这个旧配置成功通过身份验证时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug Triage-Needed

Summary

Starting in v0.41 of pulp-cli, empty cert and key break username password authentication

Steps to reproduce

  1. 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 = ""
  1. install pulp-cli 0.39

  2. verify pulp user list still works

  3. 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pulp/pulp-cli 的其他 Issue

查看 pulp/pulp-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。