Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow HTTP registries for local development / integration tests #1654

Closed
bojidar-bg opened this issue Oct 9, 2024 · 1 comment
Closed

Allow HTTP registries for local development / integration tests #1654

bojidar-bg opened this issue Oct 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bojidar-bg
Copy link

bojidar-bg commented Oct 9, 2024

Description

As mentioned in #477 (comment), there is currently no way to configure Policy Controller in a way that lets it use an insecure HTTP registry. However, HTTP registries are really common with local development environments, e.g. kind/ctlptl - and the tooling around those usually lacks an established way for setting up a TLS-secured registry and managing the certificates for it.

That's why I would like to request some kind of flag which would allow webhook to use HTTP registries. Would be willing to implement myself, if pointed in the right direction. (I'm guessing it's around Authority,UnmarshalJSON, looking at 1, 2, 3, 4, 5, 6)

In my usecase, I am working a project which uses sigstore, and I wanted to make a self-contained end-to-end test which builds and deploys all things locally (without requiring ttl.sh or such). While usually one can just deploy a local development environment without sigstore for that, in this case the project itself is a platform that custom containers can be deployed to, and the fact that it's generating working sigstore policies is part of what we ultimately want to test.

@bojidar-bg bojidar-bg added the enhancement New feature or request label Oct 9, 2024
@bojidar-bg bojidar-bg changed the title Allow insecure registries for local development / integration tests Allow HTTP registries for local development / integration tests Oct 9, 2024
@bojidar-bg
Copy link
Author

Actually... this might very well be my error, as I had the images misconfigured - so the errors I was getting were actually from Kubernetes.
Couldn't confirm that sigstore itself is working correctly, but going to close this for now, and reopen it once I have solid proof that sigstore does not already support HTTP registry. 😅

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant