Skip to content

Commit

Permalink
Extend README with matching OpenSSH example config
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaso committed Apr 1, 2024
1 parent 7f1abd7 commit fb79faf
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,30 @@ resource "vault_jwt_auth_backend_role" "example" {
}
```

```terraform
output "ssh_ca" {
value = vault_ssh_secret_backend_ca.ssh_ca.public_key
}
```

### OpenSSH

```ssh-config
# /etc/ssh/sshd_config
# ...
TrustedUserCAKeys /etc/ssh/sshd_user_ca.pub
AuthorizedPrincipalsFile /etc/ssh/user_principals/%u
```

```text
# /etc/ssh/sshd_user_ca.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI...
```

```text
# /etc/ssh/user_principals/deployer
[email protected]
```


[1]: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect

0 comments on commit fb79faf

Please sign in to comment.