Mariano Cano
b6ebd118fc
Update temporal solution for sending message to users
3 years ago
Mariano Cano
668d3ea6c7
Modify errs.Wrap() with bad request to send messages to users.
3 years ago
Mariano Cano
8c8db0d4b7
Modify errs.BadRequestErr() to always return an error to the client.
3 years ago
Mariano Cano
8ce807a6cb
Modify errs.BadRequest() calls to always send an error to the client.
3 years ago
Mariano Cano
440616cffa
Merge pull request #750 from smallstep/duration-errors
...
Report duration errors directly to the cli.
3 years ago
Mariano Cano
acd0bac025
Remove extra and in comment.
3 years ago
Mariano Cano
1aadd63cef
Use always badRequest on duration errors.
3 years ago
Mariano Cano
41fec1577d
Report duration errors directly to the cli.
3 years ago
Herman Slatman
e7a988b2cd
Pin golangci-lint to v1.43.0 and fix issues
3 years ago
max furman
933b40a02a
Introduce gocritic linter and address warnings
3 years ago
Mariano Cano
a50654b468
Check for admins in both emails and groups.
3 years ago
Mariano Cano
141c519171
Simplify check of principals in a case insensitive way
...
Fixes #679
3 years ago
Fearghal O Floinn
7a94b0c157
Converts group and subgroup to lowercase for comparison.
...
Fixes #679
3 years ago
Mariano Cano
f919535475
Add an extra way to distinguish Azure and Azure OIDC tokens.
...
We used to distinguish these tokens using the azp claim, but this
claim does not appear on new azure oidc tokens, at least on some
configurations.
This change will try to load by audience (client id) if the token
contains an email, required for OIDC.
3 years ago
Mariano Cano
40e77f6e9a
Initialize required variables on GetIdentityToken
...
Fixes smallstep/cli#465
3 years ago
Mariano Cano
42fde8ba28
Merge branch 'master' into linkedca
3 years ago
Mariano Cano
d4ae267add
Fix ErrAllowTokenReuse comment.
3 years ago
Mariano Cano
9e5762fe06
Allow the reuse of azure token if DisableTrustOnFirstUse is true
...
Azure caches tokens for 24h and we cannot issue a new certificate
for the same instance in that period of time.
The meaning of this parameter is to allow the signing of multiple
certificate in one instance. This is possible in GCP, because we
get a new token, and is possible in AWS because we can generate
a new one. On Azure there was no other way to do it unless you
wait for 24h.
Fixes #656
3 years ago
Mariano Cano
f7542a5bd9
Move check of ssh revocation from provisioner to the authority.
3 years ago
max furman
77fdfc9fa3
Merge branch 'master' into max/cert-mgr-crud
3 years ago
max furman
9fdef64709
Admin level API for provisioner mgmt v1
3 years ago
Herman Slatman
a64974c179
Fix small typo in divisible
3 years ago
Herman Slatman
d46a4eaca4
Change fmt to errors package for formatting errors
3 years ago
Herman Slatman
2beea1aa89
Add configuration option for specifying the minimum public key length
...
Instead of using the defaultPublicKeyValidator a new validator called
publicKeyMinimumLengthValidator has been implemented that uses a
configurable minimum length for public keys in CSRs.
It's also an option to alter the defaultPublicKeyValidator to also
take a parameter, but that would touch quite some lines of code. This
might be a viable option after merging SCEP support.
3 years ago
Herman Slatman
4168449935
Fix typo
3 years ago
Herman Slatman
fa100a5138
Mask challenge password after it has been read
3 years ago
Herman Slatman
97b88c4d58
Address (most) PR comments
3 years ago
Herman Slatman
4fe7179b95
Add support for configuring capabilities (cacaps)
3 years ago
Herman Slatman
3b86550dbf
Add support for challenge password
3 years ago
Herman Slatman
da65f46d0f
Add AuthorizeSign method to SCEP authority
3 years ago
Herman Slatman
2a249d20de
Refactor initialization of SCEP authority
3 years ago
Herman Slatman
339039768c
Refactor SCEP authority initialization and clean some code
3 years ago
Herman Slatman
48c86716a0
Add rudimentary (and incomplete) support for SCEP
3 years ago
max furman
638766c615
wip
3 years ago
max furman
4f3e5ef64d
wip
3 years ago
max furman
5d09d04d14
wip
3 years ago
max furman
7b5d6968a5
first commit
3 years ago
Herman Slatman
a3ec890e71
Fix small typo in divisible
3 years ago
Herman Slatman
d0a9cbc797
Change fmt to errors package for formatting errors
3 years ago
Herman Slatman
ff1b46c95d
Add configuration option for specifying the minimum public key length
...
Instead of using the defaultPublicKeyValidator a new validator called
publicKeyMinimumLengthValidator has been implemented that uses a
configurable minimum length for public keys in CSRs.
It's also an option to alter the defaultPublicKeyValidator to also
take a parameter, but that would touch quite some lines of code. This
might be a viable option after merging SCEP support.
3 years ago
Herman Slatman
c04f556dc2
Merge branch 'master' into hs/scep
3 years ago
Cristian Le
d7eec869c2
Fix the previous tests
3 years ago
Cristian Le
c2d30f7260
gofmt everything
3 years ago
Cristian Le
f38a72a62b
Leftover from previous commit
3 years ago
Cristian Le
1d2445e1d8
Removed the variadic username
...
Could be useful later on, but for the current PR changes should be minimized
3 years ago
Cristian Le
9e00b82bdf
Revert `oidc_test.go`
...
Moving the `preferred_username` to a separate PR
3 years ago
Cristian Le
decf0fc8ce
Revert using preferred_username
...
It might present a security issue if the users can change this value for themselves. Needs further investigation
3 years ago
Cristian Le
21732f213b
Fix shadow issue in CI
3 years ago
Mariano Cano
08e5ec6ad1
Fix IsAdminGroup comment.
3 years ago
Mariano Cano
46c1dc80fb
Use map[string]struct{} instead of map[string]bool
3 years ago