Add handling of cnf
claim
#1076
ci.yml
on: pull_request
ci
/
...
/
set-go-matrix
0s
ci
/
...
/
set-go-matrix
0s
ci
/
actionlint
7s
ci
/
...
/
lint
1m 33s
ci
/
...
/
govulncheck
18s
Matrix: ci / codeql / CodeQL Analyze
Matrix: ci / build / build
Matrix: ci / test / test
Annotations
11 errors
ci / test / test (stable):
token/options_test.go#L105
options_test.go:105:
Error Trace: /home/runner/work/cli/cli/token/options_test.go:105
Error: Not equal:
expected: &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"kid":"my-kid"}}, ExtraHeaders:map[string]interface {}(nil)}
actual : &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"x5rt#S256":"my-kid"}}, ExtraHeaders:map[string]interface {}(nil)}
Diff:
--- Expected
+++ Actual
@@ -12,3 +12,3 @@
(string) (len=3) "cnf": (map[string]string) (len=1) {
- (string) (len=3) "kid": (string) (len=6) "my-kid"
+ (string) (len=9) "x5rt#S256": (string) (len=6) "my-kid"
}
Test: TestOptions/WithConfirmationFingerprint_ok
---
|
ci / test / test (stable):
token/options_test.go#L105
options_test.go:105:
Error Trace: /home/runner/work/cli/cli/token/options_test.go:105
Error: Not equal:
expected: &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"kid":"ak6j6CwuZbd_mOQ-pNOUwhpmtSN0mY0xrLvaQL4J5l8"}}, ExtraHeaders:map[string]interface {}(nil)}
actual : &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"x5rt#S256":"ak6j6CwuZbd_mOQ-pNOUwhpmtSN0mY0xrLvaQL4J5l8"}}, ExtraHeaders:map[string]interface {}(nil)}
Diff:
--- Expected
+++ Actual
@@ -12,3 +12,3 @@
(string) (len=3) "cnf": (map[string]string) (len=1) {
- (string) (len=3) "kid": (string) (len=43) "ak6j6CwuZbd_mOQ-pNOUwhpmtSN0mY0xrLvaQL4J5l8"
+ (string) (len=9) "x5rt#S256": (string) (len=43) "ak6j6CwuZbd_mOQ-pNOUwhpmtSN0mY0xrLvaQL4J5l8"
}
Test: TestOptions/WithFingerprint_csr_ok
---
|
ci / test / test (stable):
token/options_test.go#L104
options_test.go:104:
Error Trace: /home/runner/work/cli/cli/token/options_test.go:104
Error: Received unexpected error:
unsupported fingerprint for ssh.ed25519PublicKey
Test: TestOptions/WithFingerprint_ssh_ok
|
ci / test / test (stable):
token/options_test.go#L105
options_test.go:105:
Error Trace: /home/runner/work/cli/cli/token/options_test.go:105
Error: Not equal:
expected: &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"kid":"hpTQOoB7fIRxTp-FhXCIm94mGBv7_dzr_5SxLn1Pnwk"}}, ExtraHeaders:map[string]interface {}(nil)}
actual : &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}(nil), ExtraHeaders:map[string]interface {}(nil)}
Diff:
--- Expected
+++ Actual
@@ -10,7 +10,3 @@
},
- ExtraClaims: (map[string]interface {}) (len=1) {
- (string) (len=3) "cnf": (map[string]string) (len=1) {
- (string) (len=3) "kid": (string) (len=43) "hpTQOoB7fIRxTp-FhXCIm94mGBv7_dzr_5SxLn1Pnwk"
- }
- },
+ ExtraClaims: (map[string]interface {}) <nil>,
ExtraHeaders: (map[string]interface {}) <nil>
Test: TestOptions/WithFingerprint_ssh_ok
---
|
ci / test / test (stable)
Process completed with exit code 1.
|
ci / test / test (oldstable)
The job was canceled because "stable" failed.
|
ci / test / test (oldstable):
token/options_test.go#L105
options_test.go:105:
Error Trace: /home/runner/work/cli/cli/token/options_test.go:105
Error: Not equal:
expected: &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"kid":"my-kid"}}, ExtraHeaders:map[string]interface {}(nil)}
actual : &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"x5rt#S256":"my-kid"}}, ExtraHeaders:map[string]interface {}(nil)}
Diff:
--- Expected
+++ Actual
@@ -12,3 +12,3 @@
(string) (len=3) "cnf": (map[string]string) (len=1) {
- (string) (len=3) "kid": (string) (len=6) "my-kid"
+ (string) (len=9) "x5rt#S256": (string) (len=6) "my-kid"
}
Test: TestOptions/WithConfirmationFingerprint_ok
---
|
ci / test / test (oldstable):
token/options_test.go#L105
options_test.go:105:
Error Trace: /home/runner/work/cli/cli/token/options_test.go:105
Error: Not equal:
expected: &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"kid":"ak6j6CwuZbd_mOQ-pNOUwhpmtSN0mY0xrLvaQL4J5l8"}}, ExtraHeaders:map[string]interface {}(nil)}
actual : &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"x5rt#S256":"ak6j6CwuZbd_mOQ-pNOUwhpmtSN0mY0xrLvaQL4J5l8"}}, ExtraHeaders:map[string]interface {}(nil)}
Diff:
--- Expected
+++ Actual
@@ -12,3 +12,3 @@
(string) (len=3) "cnf": (map[string]string) (len=1) {
- (string) (len=3) "kid": (string) (len=43) "ak6j6CwuZbd_mOQ-pNOUwhpmtSN0mY0xrLvaQL4J5l8"
+ (string) (len=9) "x5rt#S256": (string) (len=43) "ak6j6CwuZbd_mOQ-pNOUwhpmtSN0mY0xrLvaQL4J5l8"
}
Test: TestOptions/WithFingerprint_csr_ok
---
|
ci / test / test (oldstable):
token/options_test.go#L104
options_test.go:104:
Error Trace: /home/runner/work/cli/cli/token/options_test.go:104
Error: Received unexpected error:
unsupported fingerprint for ssh.ed25519PublicKey
Test: TestOptions/WithFingerprint_ssh_ok
|
ci / test / test (oldstable):
token/options_test.go#L105
options_test.go:105:
Error Trace: /home/runner/work/cli/cli/token/options_test.go:105
Error: Not equal:
expected: &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}{"cnf":map[string]string{"kid":"hpTQOoB7fIRxTp-FhXCIm94mGBv7_dzr_5SxLn1Pnwk"}}, ExtraHeaders:map[string]interface {}(nil)}
actual : &token.Claims{Claims:jwt.Claims{Issuer:"", Subject:"", Audience:jwt.Audience(nil), Expiry:(*jwt.NumericDate)(nil), NotBefore:(*jwt.NumericDate)(nil), IssuedAt:(*jwt.NumericDate)(nil), ID:""}, ExtraClaims:map[string]interface {}(nil), ExtraHeaders:map[string]interface {}(nil)}
Diff:
--- Expected
+++ Actual
@@ -10,7 +10,3 @@
},
- ExtraClaims: (map[string]interface {}) (len=1) {
- (string) (len=3) "cnf": (map[string]string) (len=1) {
- (string) (len=3) "kid": (string) (len=43) "hpTQOoB7fIRxTp-FhXCIm94mGBv7_dzr_5SxLn1Pnwk"
- }
- },
+ ExtraClaims: (map[string]interface {}) <nil>,
ExtraHeaders: (map[string]interface {}) <nil>
Test: TestOptions/WithFingerprint_ssh_ok
---
|
ci / test / test (oldstable)
Process completed with exit code 1.
|