Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Convert SigstoreKeys to protobuf-specs type #26

Merged
merged 27 commits into from
Apr 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
eec7c6f
update setup-ko action reference (#1328)
codysoyland Mar 25, 2024
2e27de5
chore(deps): Bump mikefarah/yq from 4.42.1 to 4.43.1 (#1329)
dependabot[bot] Mar 25, 2024
fc2800a
chore(deps): Bump anchore/sbom-action from 0.15.9 to 0.15.10 (#1331)
dependabot[bot] Mar 27, 2024
a46f2d2
chore(deps): Bump codecov/codecov-action from 4.1.0 to 4.1.1 (#1332)
dependabot[bot] Mar 29, 2024
509e098
chore(deps): Bump github.com/aws/aws-sdk-go from 1.51.6 to 1.51.10 (#…
dependabot[bot] Mar 30, 2024
a25922d
chore(deps): Bump github.com/sigstore/sigstore/pkg/signature/kms/aws …
dependabot[bot] Apr 1, 2024
99365e1
chore(deps): Bump github.com/sigstore/sigstore/pkg/signature/kms/gcp …
dependabot[bot] Apr 1, 2024
bfd9afc
chore(deps): Bump github.com/sigstore/sigstore from 1.8.2 to 1.8.3 (#…
dependabot[bot] Apr 1, 2024
5b35593
chore(deps): Bump github.com/aws/aws-sdk-go from 1.51.10 to 1.51.11 (…
dependabot[bot] Apr 1, 2024
f4fd92c
chore(deps): Bump github.com/sigstore/sigstore/pkg/signature/kms/azur…
dependabot[bot] Apr 1, 2024
4ee0834
chore(deps): Bump github.com/aws/aws-sdk-go from 1.51.11 to 1.51.12 (…
dependabot[bot] Apr 2, 2024
1dabf18
chore(deps): Bump sigs.k8s.io/release-utils from 0.7.7 to 0.8.0 (#1342)
dependabot[bot] Apr 2, 2024
6126ea8
WIP: Convert SigstoreKeys to protobuf-specs type
codysoyland Mar 7, 2024
e479c99
Use dash in CR hash algorithm name, as documented
codysoyland Mar 13, 2024
aec6ca5
Fix broken reconciler tests
codysoyland Mar 14, 2024
052122d
Add func to canonicalize SigstoreKeys
codysoyland Mar 15, 2024
d736dd3
Add support for trusted_root.json
codysoyland Mar 18, 2024
bfdb6c0
Add time ranges, log ids, and urls to converted SigstoreKeys
codysoyland Mar 19, 2024
77fe652
Refactor DeserializePublicKey to also return crypto.PublicKey
codysoyland Mar 20, 2024
2fe1a90
add missing license headers
bdehamer Mar 20, 2024
5da24e9
lintfix
bdehamer Mar 20, 2024
b925797
fix e2e_test_trustroot_crd.sh
bdehamer Mar 20, 2024
705ddae
Couple of fixes
codysoyland Mar 22, 2024
ff865ed
Remove unneccesary conversion
codysoyland Mar 22, 2024
18eea2b
Add test for fetching trusted_root.json from TUF repo
codysoyland Mar 22, 2024
6e683d9
Fix erroneous date
codysoyland Apr 3, 2024
ee576e2
Improve error handling
codysoyland Apr 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix broken reconciler tests
Signed-off-by: Cody Soyland <codysoyland@github.com>
codysoyland committed Apr 2, 2024
commit aec6ca5facd01f49976e7b856c36b72405a48fe9
4 changes: 2 additions & 2 deletions pkg/reconciler/trustroot/resources/configmap.go
Original file line number Diff line number Diff line change
@@ -15,10 +15,10 @@
package resources

import (
"encoding/json"
"fmt"

"github.com/sigstore/policy-controller/pkg/apis/config"
"google.golang.org/protobuf/encoding/protojson"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/pkg/apis/duck"
@@ -83,7 +83,7 @@ func CreateRemovePatch(ns, name string, cm *corev1.ConfigMap, tkName string) ([]
}

func Marshal(spec *config.SigstoreKeys) (string, error) {
bytes, err := json.Marshal(spec)
bytes, err := protojson.Marshal(spec)
if err != nil {
return "", err
}