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

cosigned: fail to parse configMap content with the policies #1717

Closed
hectorj2f opened this issue Apr 7, 2022 · 0 comments · Fixed by #1719
Closed

cosigned: fail to parse configMap content with the policies #1717

hectorj2f opened this issue Apr 7, 2022 · 0 comments · Fixed by #1719
Labels
bug Something isn't working

Comments

@hectorj2f
Copy link
Contributor

Description

Cosigned is failing to parse the content of the ConfigMap with all the public keys with the following error:

{"severity":"ERROR","timestamp":"2022-04-07T12:58:50.4516867Z","logger":"cosigned.config-store","caller":"configmap/store.go:148","message":"Error updating image-policies config \"config-image-policies\": \"failed to parse the entry \\\"image-hectorj2f-policy\\\" : \\\"{\\\\\\\"images\\\\\\\":[{\\\\\\\"glob\\\\\\\":\\\\\\\"hectorj2f*\\\\\\\"}],\\\\\\\"authorities\\\\\\\":[{\\\\\\\"key\\\\\\\":{\\\\\\\"publicKeys\\\\\\\":[{\\\\\\\"Curve\\\\\\\":{\\\\\\\"P\\\\\\\":115792089210356248762697446949407573530086143415290314195533631308867097853951,\\\\\\\"N\\\\\\\":115792089210356248762697446949407573529996955224135760342422259061068512044369,\\\\\\\"B\\\\\\\":41058363725152142129326129780047268409114441015993725554835256314039467401291,\\\\\\\"Gx\\\\\\\":48439561293906451759052585252797914202762949526041747995844080717082404635286,\\\\\\\"Gy\\\\\\\":36134250956749795798585127919587881956611106672985015071877198253568414405109,\\\\\\\"BitSize\\\\\\\":256,\\\\\\\"Name\\\\\\\":\\\\\\\"P-256\\\\\\\"},\\\\\\\"X\\\\\\\":2641569009223385890996066244902706075296096407410080416788371769414177721268,\\\\\\\"Y\\\\\\\":6222160979908174753461221456572892964915176217001831151254595010115697641803}]}}]}\\\" : math/big: cannot unmarshal \\\"2.641569009223386e+75\\\" into a *big.Int\"","commit":"9008111","stacktrace":"knative.dev/pkg/configmap.(*UntypedStore).OnConfigChanged\n\tknative.dev/[email protected]/configmap/store.go:148\nknative.dev/pkg/configmap.(*ManualWatcher).OnChange\n\tknative.dev/[email protected]/configmap/manual_watcher.go:72\nknative.dev/pkg/configmap/informer.(*InformedWatcher).updateConfigMapEvent\n\tknative.dev/[email protected]/configmap/informer/informed_watcher.go:230\nk8s.io/client-go/tools/cache.ResourceEventHandlerFuncs.OnUpdate\n\tk8s.io/[email protected]/tools/cache/controller.go:238\nk8s.io/client-go/tools/cache.(*processorListener).run.func1\n\tk8s.io/[email protected]/tools/cache/shared_informer.go:785\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:90\nk8s.io/client-go/tools/cache.(*processorListener).run\n\tk8s.io/[email protected]/tools/cache/shared_informer.go:781\nk8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1\n\tk8s.io/[email protected]/pkg/util/wait/wait.go:73"}
@hectorj2f hectorj2f added the bug Something isn't working label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant