Skip to content

Move DigestAuth hash algorithms to use usedforsecurity=False#7310

Open
nateprewitt wants to merge 1 commit intomainfrom
not_usedforsecurity
Open

Move DigestAuth hash algorithms to use usedforsecurity=False#7310
nateprewitt wants to merge 1 commit intomainfrom
not_usedforsecurity

Conversation

@nateprewitt
Copy link
Copy Markdown
Member

This PR moves the DigestAuth hash algorithms to use usedforsecurity=False. This is to both avoid unnecessarily breaking DigestAuth on FIPS enabled systems and to make it clearer to security reporters these are not a security control.

RFC 7616 makes it clear algorithm choice is decided by the server being called and the choice for hashing algorithm does not meaningfully change the risk profile for Digest auth usage.

HTTP Digest Authentication, when used with human-memorable passwords,
is vulnerable to dictionary attacks. Such attacks are much easier
than cryptographic attacks on any widely used algorithm, including
those that are no longer considered secure. In other words,
algorithm agility does not make this usage any more secure.

- RFC 7616 § 5.1

@nateprewitt nateprewitt linked an issue Mar 30, 2026 that may be closed by this pull request
zlplzp123wyt pushed a commit to zlplzp123wyt/claude-builders-bounty that referenced this pull request Mar 31, 2026
Closes claude-builders-bounty#4

## What this adds

-  — CLI tool that reviews GitHub PRs
-  — GitHub Action for automated reviews
-  — Full documentation with install & usage
-  — Sample outputs from 2 real PRs

## Features

- Accepts PR URL as input, fetches diff via GitHub API
- Static analysis: security patterns, size, test coverage, dependencies
- Structured Markdown output: summary, risks, suggestions, confidence score
- Zero dependencies (pure Python stdlib)
- GitHub Action workflow included

## Sample Reviews

1. **psf/requests#7310** — DigestAuth FIPS fix (High confidence, 1 file)
2. **fastapi/fastapi#15263** — pygments bump (High confidence, 1 file)
@nateprewitt nateprewitt added this to the 2.34.0 milestone Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change auth.py to be used in a FIPS system

2 participants