mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[PR #589] feat: allow validation of PIV certificate against a CA #597
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ovh/the-bastion/pull/589
Author: @jon4hz
Created: 9/19/2025
Status: 🔄 Open
Base:
master← Head:feat-piv-ca-validation📝 Commits (2)
b1e4b25feat: allow validation of PIV certificate against a CAd4b3ddcchore: run tidy and perlcritic📊 Changes
4 files changed (+218 additions, -73 deletions)
View changed files
📝
bin/plugin/open/selfAddIngressKey(+172 -71)📝
etc/bastion/bastion.conf.dist(+5 -0)📝
lib/perl/OVH/Bastion/configuration.inc(+17 -0)📝
lib/perl/OVH/Bastion/ssh.inc(+24 -2)📄 Description
Hi again,
This PR introduces an option to ensure users can only add ingress keys which have been signed by a predefined, trusted CA.
If an admin configures the new
pivValidationCAto point to a CA certificate, the user will be prompted to upload his certificate, instead of the ssh public key. The Bastion then validates the certificated against the configured CA.The
yubico-piv-checkerwill generate the ssh pubkey based on the provided certificate and returns it in the JSON output. There's also a new prompt to ask for "from" IPs, since that information can't be passed with the certificate that easily.A PR with the required changes for the
yubico-piv-checkeris here: https://github.com/ovh/yubico-piv-checker/pull/9Currently everything is implemented in a none breaking way. Please let me know if you want any changes or have any suggestions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.