Mariano Cano
aafac179a5
Add test for oidc with preferred usernames.
3 years ago
Cristian Le
f730c0bec4
Sanitize usernames
3 years ago
Cristian Le
48666792c7
Draft: adding usernames to GetIdentityFunc
3 years ago
Cristian Le
79eec83f3e
Rename and reformat to PreferredUsername
3 years ago
Cristian Le
09a21fef26
Implement #550
...
- Read `preferred_username` from token
- Add `preferred_username` to the default Usernames
- Check the `admin` array for admin groups that the user might belong to
3 years ago
max furman
8c709fe3c2
Init config on load | Add wrapper for cli
3 years ago
Mariano Cano
2cbaee9c1d
Allow to use an alternative interface to store renewed certs.
...
This can be useful to know if a certificate has been renewed and
link one certificate with the 'parent'.
3 years ago
Mariano Cano
e6833ecee3
Add extension of db.AuthDB to store the fullchain.
...
Add a temporary solution to allow an extension of an db.AuthDB
interface that logs the fullchain of certificates instead of just
the leaf.
3 years ago
Max
b724af30ad
Merge pull request #496 from smallstep/max/acme
...
Convert to ACME DB interface
4 years ago
Mariano Cano
aea2a7c9f3
Update sshd_config.tpl to a Match all block.
...
Fixes #479
4 years ago
max furman
2ae43ef2dc
[acme db interface] wip errors
4 years ago
Mariano Cano
0b8528ce6b
Allow mTLS revocation without provisioner.
4 years ago
Mariano Cano
bcf70206ac
Add support for revocation using an extra provisioner in the RA.
4 years ago
Mariano Cano
a6115e29c2
Add initial implementation of StepCAS.
...
StepCAS allows to configure step-ca as an RA using another step-ca
as the main CA.
4 years ago
Mariano Cano
fbd2208044
Close key manager for safe reloads when a cgo module is used.
4 years ago
max furman
16665c97f0
Allow empty SAN in CSR for validation ...
...
- The default template will always use the SANs from the token.
- If there are any SANs they must be validated against the token.
4 years ago
Miclain Keffeler
cf063d1f4a
Revert "Begins to fix issue 87"
...
This reverts commit e2ba4159c3
.
4 years ago
Miclain Keffeler
21dc406382
Begins to fix issue 87
4 years ago
Miclain Keffeler
7545b4a625
leverage intermediate_ca.crt for appending certs.
4 years ago
Mariano Cano
5017b7d21f
Recalculate token id instead of validating it.
4 years ago
Mariano Cano
86c947babc
Upgrade crypto and fix test.
4 years ago
Mariano Cano
0cf594a003
Validate payload ID.
...
Related to #435
4 years ago
Anton Lundin
3e6137110b
Add support for using ssh-agent as a KMS
...
This adds a new KMS, SSHAgentKMS, which is a KMS to provide signing keys
for issuing ssh certificates signed by a key managed by a ssh-agent. It
uses the golang.org/x/crypto package to get a native Go implementation
to talk to a ssh-agent.
This was primarly written to be able to use gpg-agent to provide the
keys stored in a YubiKeys openpgp interface, but can be used for other
setups like proxying a ssh-agent over network.
That way the signing key for ssh certificates can be kept in a
"sign-only" hsm.
This code was written for my employer Intinor AB, but for simplicity
sake gifted to me to contribute upstream.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
4 years ago
Mariano Cano
39b23c057d
Add all AWS certificates used to verify base64 signatures.
4 years ago
Mariano Cano
ef92a3a6d7
Move cas options under authority.
4 years ago
Mariano Cano
7d1686dc53
Add option to specify the AWS IID certificates to use.
...
This changes adds a new option `iidRoots` that allows a user to
define one or more certificates that will be used for AWS IID
signature validation.
Fixes #393
4 years ago
Mariano Cano
647b9b4541
Merge pull request #367 from smallstep/cas
...
Support for CAS Interface and CloudCAS
4 years ago
Mariano Cano
3e0ab8fba7
Fix typo.
4 years ago
Mariano Cano
d64427487d
Add comment about the missing error check.
4 years ago
Mariano Cano
072adc906e
Print root fingerprint for CloudCAS.
4 years ago
Mariano Cano
38fa780775
Add interface to get root certificate from CAS.
...
This change makes easier the configuration of cloudCAS as it does
not require to configure the root or intermediate certificate
in the ca.json. CloudCAS will get the root certificate using
the configured certificateAuthority.
4 years ago
Mariano Cano
4c8bf87dc1
Use new admin template for K8ssa and admin-OIDC provisioners.
...
This change replaces the .Insecure.CR template to one that sets
all the SANs, but uses key usages and extended key usages for
regular TLS certificates.
4 years ago
Mariano Cano
d79b4e709e
Create a hash of a token if a token id is empty.
4 years ago
Mariano Cano
60515d92c5
Remove unnecessary properties.
4 years ago
Mariano Cano
1550a21f68
Fix unit tests.
4 years ago
Mariano Cano
e17ce39e3a
Add support for Revoke using CAS.
4 years ago
Mariano Cano
bd8dd9da41
Do not read issuer and signer twice.
4 years ago
Mariano Cano
aad8f9e582
Pass issuer and signer to softCAS options.
...
Remove commented code and initialize CAS properly.
Minor fixes in CloudCAS.
4 years ago
Mariano Cano
1b1f73dec6
Early attempt to develop a CAS interface.
4 years ago
Mariano Cano
276e307a1d
Add extra tests for CustomSSHTemplateOptions
4 years ago
max furman
da9f0b09af
Ignore `null` string for x509 and ssh templateData.
4 years ago
Mariano Cano
81c6e01269
Fix unit test.
4 years ago
max furman
ce9af5c20f
Standardize k8ssa check on issuer name
4 years ago
Mariano Cano
8ee246edda
Upgrade go.step.sm to v0.4.0
4 years ago
Mariano Cano
ce5e1b4934
Fix merge issue.
4 years ago
Mariano Cano
35bd3ec383
Merge pull request #329 from smallstep/ssh-cert-templates
...
SSH cert templates
4 years ago
Mariano Cano
cef0475e71
Make clear what's a template/unsigned certificate.
4 years ago
Mariano Cano
4d375a06f5
Make clearer what's an unsigned cert.
4 years ago
Mariano Cano
b7269b6579
Fix comment.
4 years ago
Mariano Cano
c94a1c51be
Merge branch 'master' into ssh-cert-templates
4 years ago