Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Add BYO keys #29

Open
loosebazooka opened this issue Jun 17, 2021 · 6 comments
Open

Add BYO keys #29

loosebazooka opened this issue Jun 17, 2021 · 6 comments

Comments

@loosebazooka
Copy link
Member

Allow users to specify their own keys and skip fulcio.

@hboutemy
Copy link
Collaborator

@loosebazooka is it still a valid use case?

@bmarwell
Copy link

Yes! ;)

@bmarwell
Copy link

@hboutemy here's the use case

Local / company repository.

  1. You want to sign the jar/pom just for the sake of signing it and then throw away the private (and even public) key
  2. You want to sign the jar/pom and then upload the key to a company-private keyserver
  3. roll your own fulcio instance and upload everything there

In any case, neither the key material nor the artifact metadata should leave the private network.

Instead of "BYO key", maybe "generate a throw-away-key locally" might be a valid description

@loosebazooka
Copy link
Member Author

I think technically the Java client can support this? It's not clear if that's something that all the clients want to support right now. @bobcallaway @haydentherapper

As for the private use case. That can be handled by injecting references to the private infra into the current signer. Again, not something that is exactly straightforward right now, but we can support it. I think #158 is trying to solve that

@bobcallaway
Copy link
Member

cosign supports BYOK and/or integration with KMS providers, so I think its reasonable for the other SDKs to do the same.

@haydentherapper
Copy link

Bring your own key is reasonable for those who already have experience managing PKIs or keys. I would require publishing the signing event to rekor still so you get the benefit of transparency (again something cosign supports which can be turned off with an insecure flag)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants