Commit Graph

201 Commits (f221232a80c8616f565b8a9c6e5920c1cecc0375)

Author SHA1 Message Date
Herman Slatman 7680da7c57
Add realistic OIDC payload to Wire integration test 9 months ago
Herman Slatman 37106a438a
Fix Wire integration test by acting on realistic access/dpop token 9 months ago
Herman Slatman c46434f6e0
Make the example Wire handle consistent 9 months ago
Herman Slatman bca179d611
Make the Wire API integration test a bit more like the real flow 9 months ago
Herman Slatman 0ad381b092
Add OIDC token template transformation 9 months ago
Herman Slatman 79739e5073
Change signature algorithm property name 9 months ago
Herman Slatman 1bf807add3
Use base64 encoded signing key format 9 months ago
Herman Slatman 1f5f756fce
Make Wire options more robust 9 months ago
Herman Slatman 6ef64b6ed6
Refactor the `Wire` option configuration 9 months ago
Herman Slatman acad227b25
Put Wire options in lower level `wire` struct 9 months ago
Herman Slatman 897688a831
Merge branch 'wire-acme-extensions' into herman/remove-rusty-cli 9 months ago
Herman Slatman ca8855767d
Fix and add more tests to Wire order identifier validation 9 months ago
Herman Slatman 70a2f431fa
Address review remarks 9 months ago
Herman Slatman de25740567
Change name of test for Wire Order 9 months ago
Herman Slatman c7892e9cd3
Remove the `rusty-jwt-cli` configuration 9 months ago
Herman Slatman ffd887f8cc
Fix tests for ACME Wire provisioner 9 months ago
Herman Slatman 7a464cdb17
Use `require` to check for errors in Wire integration test 9 months ago
Herman Slatman 776a839a42
Fix linter issues and improve error handling 9 months ago
Herman Slatman f5a2f436df
Fix missing `DPoP` and `OIDC` tokens for Wire integration test 9 months ago
Herman Slatman 40668ae09e
Refactor `WireID` target processing a bit 9 months ago
Herman Slatman 85309bb8ec
Fix the integration test 9 months ago
Herman Slatman fdea5e7db3
Fix tests for new ACME orders with Wire IDs 9 months ago
beltram 84e9682476
feat: change the separator between user-id & device-id in a client-id. Use '!' instead of ':' 9 months ago
beltram 90b5347887
feat: try using the new ClientId & Handle format (i.e. plain URIs) 9 months ago
Stefan Berthold 5ceed08ae0
Reorganize parsing target 9 months ago
Stefan Berthold 83ba0bdc51
Replace field access by accessor functions 9 months ago
beltram 2b1223a080
simpler 9 months ago
beltram 036a144e09
add oidc target 9 months ago
beltram 97002040a5
fix: challenge target field was not mapped to db entity 9 months ago
beltram d32a3e23f0
wip 9 months ago
beltram 3f474f77d4
feat: change from impp prefix to just im 9 months ago
beltram 01ef526d08
change uri prefix to impp:wireapp= 9 months ago
Stefan Berthold 8e0e35532c
Add Wire authz and challenges (OIDC+DPOP) 9 months ago
Mariano Cano b20af51f32
Upgrade go.step.sm/crypto to use go-jose/v3 10 months ago
Herman Slatman 405aae798c
Simplify the `copy` logic used when patching JWS signature 10 months ago
Herman Slatman 26a3bb3c11
Make the Apple JWS fix more robust and catch more cases. 10 months ago
Herman Slatman 113491e7af
Remove TODO for patching other algorithms for Apple ACME client 10 months ago
Herman Slatman 06f4cbbcda
Add (temporary) fix for missing null bytes in Apple JWS signatures
Apparently the Apple macOS (and iOS?) ACME client seems to omit
leading null bytes from JWS signatures. The base64-url encoded
bytes decode to a shorter byte slice than what the JOSE library
expects (e.g. 63 bytes instead of 64 bytes for ES256), and then
results in a `jose.ErrCryptoFailure`.

This commit retries verification of the JWS in case the first
verification fails with `jose.ErrCryptoFailure`. The signatures are
checked to be of the correct length, and if not, null bytes are
prepended to the signature. Then verification is retried, which
might fail again, but for other reasons. On success, the payload
is returned.

Apple should fix this in their ACME client, but in the meantime
this commit prevents some "bad request" error cases from happening.
10 months ago
Dominic Evans 231b5d8406 chore(deps): upgrade github.com/go-chi/chi to v5
Upgrade chi to the v5 module path to avoid deprecation warning about v4
and earlier on the old module path.

See https://github.com/go-chi/chi/blob/v4.1.3/go.mod#L1-L4

Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
1 year ago
Max 116ff8ed65
bump go.mod to go1.20 and associated linter fixes (#1518) 1 year ago
Max 7731edd816
Store and verify Acme account location (#1386)
* Store and verify account location on acme requests

Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
Co-authored-by: Mariano Cano <mariano@smallstep.com>
1 year ago
max furman 8b256f0351
address linter warning for go 1.19 1 year ago
Herman Slatman 0f1c509e4b
Remove debug utility 2 years ago
Herman Slatman 60a9e41c1c
Remove `Identifier` from top level ACME `Errors` 2 years ago
Herman Slatman edee01c80c
Refactor debug utility 2 years ago
Herman Slatman 1c38113e44
Add ACME `Subproblem` for more detailed ACME client-side errors
When validating an ACME challenge (`device-attest-01` in this case,
but it's also true for others), and validation fails, the CA didn't
return a lot of information about why the challenge had failed. By
introducing the ACME `Subproblem` type, an ACME `Error` can include
some additional information about what went wrong when validating
the challenge.

This is a WIP commit. The `Subproblem` isn't created in many code
paths yet, just for the `step` format at the moment. Will probably
follow up with some more improvements to how the ACME error is
handled. Also need to cleanup some debug things (q.Q)
2 years ago
Herman Slatman 817edcbba5
Remove `charset=utf-8` from ACME certificate requests 2 years ago
Herman Slatman 3eae04928f
Add tests for ACME Meta object 2 years ago
Herman Slatman b9f238ad4d
Add additional ACME `meta` properties to provisioner configuration 2 years ago
Herman Slatman c9793561ff
Make `meta` object optional in ACME directory response
Harware appliances from Kemp seem to validate the contents of the
`meta` object, even if none of the properties in the `meta` object
is set. According to the RFC, the `meta` object, as well as its
properties are optional, so technically this should be fixed by
the manufacturer.

This commit is to see if we validation of the `meta` object is
skipped if it's not available in the response.
2 years ago