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

policy creation error: failed to call webhook defaulting #952

Open
prudnitskiy opened this issue Aug 18, 2023 · 2 comments
Open

policy creation error: failed to call webhook defaulting #952

prudnitskiy opened this issue Aug 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@prudnitskiy
Copy link

Description

I'm trying to create a policy on a fresh policy controller install. Any policy I try to create fails with this error:

Error from server (InternalError): error when creating "lab/test-pol.yaml": Internal error occurred: failed calling webhook "defaulting.clusterimagepolicy.sigstore.dev": failed to call webhook: Post "https://webhook.sigstore.svc:443/defaulting?timeout=10s": context deadline exceeded

Debug log for the policy-controller-webhook pod doesn't contain any errors.

Policy example:

# Source: sigstore-policies/templates/policy.yaml
apiVersion: policy.sigstore.dev/v1beta1
kind: ClusterImagePolic
metadata:
  name: corp-local
spec:
  authorities:
  - key:
      kms: gcpkms://projects/corp-dev/locations/europe-west1/keyRings/build-provenance/cryptoKeys/cosign-key-1
  images:
  - glob: europe-west1-docker.pkg.dev/corp-dev/**
  - glob: europe-west1-docker.pkg.dev/corp/**
  mode: warn

Version
policy controller: v0.8.2
helm chart: 0.6.1
kubernetes version: v1.24.14-gke.1200

Key used: GKMS

Is there anything I can try to fix it?

@prudnitskiy prudnitskiy added the bug Something isn't working label Aug 18, 2023
@Minivolk02
Copy link

Ihave the same issue

@hectorj2f
Copy link
Collaborator

@prudnitskiy could you share the logs of the controller? Is the controller running?

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

No branches or pull requests

3 participants