[GH-ISSUE #475] Feature Request: *-sk keys supporting PIV-like policies #121

Open
opened 2026-05-07 00:19:11 +02:00 by BreizhHardware · 1 comment

Originally created by @codyro on GitHub (Apr 23, 2024).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/475

Now that The Bastion supports *-sk keys, it would be nice to have PIV-like policies available to limit keys to an account to PIV/SK/FIDO2, grace periods, etc. It could potentially utilize PubkeyAuthOptions in some capacity.

Please close this if it seems like a stinker of an idea :).

Originally created by @codyro on GitHub (Apr 23, 2024). Original GitHub issue: https://github.com/ovh/the-bastion/issues/475 Now that The Bastion supports `*-sk` keys, it would be nice to have PIV-like policies available to limit keys to an account to PIV/SK/FIDO2, grace periods, etc. It could potentially utilize [`PubkeyAuthOptions`](https://man.openbsd.org/sshd_config#PubkeyAuthOptions) in some capacity. Please close this if it seems like a stinker of an idea :).
Author
Owner

@speed47 commented on GitHub (May 22, 2024):

Well, that would completely make sense indeed!

Contrary to e.g. "RSA GPG keys used as SSH keys through gpg-agent's ssh-agent compatibility layer", where, on server side, we have no way to differentiate between such a (hardware) key and an RSA key stored in a file, the *-sk series does guarantee that, as PIV does.

I'll check the feasibility, but I like the idea!

<!-- gh-comment-id:2124935281 --> @speed47 commented on GitHub (May 22, 2024): Well, that would completely make sense indeed! Contrary to e.g. "RSA GPG keys used as SSH keys through `gpg-agent`'s `ssh-agent` compatibility layer", where, on server side, we have no way to differentiate between such a (hardware) key and an RSA key stored in a file, the `*-sk` series does guarantee that, as PIV does. I'll check the feasibility, but I like the idea!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#121
No description provided.