Argon2 errors with NixOS config
已关闭
- 主要语言
- Python
- 星标
- 46.7k
- 派生
- 1.9k
- 平均合并
- 9 天 2 小时
- 30 天内合并 PR
- 4
描述
No matter what I type in, I get the 'nah dude' error.
```
services.copyparty.globalExtraConfig = ''
ah-alg: argon2
ah-salt "xxx"
'';
```
With the salt "xxx" I hash the password,
```
nix run github:9001/copyparty#copyparty -- --ah-alg argon2 --ah-gen 'autumni:pissoff' --ah-salt 'xxx'
```
Then load it from a file...
```
accounts = {
autumni.passwordFile = "/etc/nixos/secrets/autumnspass";
(...)
};
```
贡献指南
调研方向
该 issue 涉及 copyparty 的 NixOS 配置中的 Argon2 密码哈希。先检查 copyparty 源代码中对 `--ah-alg argon2` 和 `--ah-gen` 的命令行处理,可能在参数解析和认证模块中。检查密码文件是如何读取和比较的。运行提供的命令来复现错误,然后跟踪认证流程,查看 'nah dude' 错误是在何处生成的。验证哈希生成和比较逻辑。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- nixos, python
- 领域
- authentication, backend, cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100