Repository navigation
fix(ci): accept ECDSA and security-key types in allowed-signers test - #689
Merged
c-vigo merged 1 commit intoJun 24, 2026
Merged
Conversation
c-vigo
force-pushed
the
bugfix/688-allowed-signers-ecdsa
branch
from
June 24, 2026 14:35
5aa75a4 to
8a1f0d7
Compare
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/test_integration.py::TestHostGitSignatureSetup::test_allowed_signers_file_existshard-coded only two SSH key-type prefixes, so a valid ECDSA (or FIDO
security-key
sk-*) signing key in the allowed-signers file spuriously failedthe assertion. This broadens the check to accept the full set of OpenSSH
signing key-type tokens.
Change
Before:
After:
ecdsa-sha2-nistpas a prefix covers the three nistp curves(
nistp256/nistp384/nistp521). This mirrors the canonical key-type setalready used by
test_git_signing_key_configuredin the same file (lines~106-110:
ssh-rsa,ssh-ed25519,ecdsa-sha2-nistp256/384/521), andadditionally accepts the
sk-*@openssh.comsecurity-key variants per the issue.Why no separate failing-test commit
This change repairs a too-narrow allowlist inside a test assertion — the
assertion itself is the unit under repair, not production code under test. A
strict RED→GREEN cycle with a standalone failing-test commit doesn't cleanly
apply here, so this is a single
fixcommit. The change is verified bypytest --collect-only(no collection/syntax breakage) and by the authoritativedispatched integration CI run.
Scope
Touches only the assertion in
tests/test_integration.pyplus theCHANGELOG.mdentry (auto-mirrored into
assets/workspace/.devcontainer/CHANGELOG.md).Closes #688