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

Consolidate the source-of-truth. #263

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Dec 3, 2021

Today we have three copies of Certificate synthesis across:

  • x509
  • google v1
  • google v1beta1

This has burned us several times in recent memory (off the top of my head):

  • When I added Github support and missed the x509 path
  • When Scott added google v1 and dropped the K8s stuff.

By having a largely common code path for these, we should be able to avoid some of these breaks.

This change creates a method in x509ca to make an x509.Certificate and then reorients the bulk of the redundant certificate construction into translation logic from the shared construction.

Signed-off-by: Matt Moore [email protected]

Release Note

NONE

Today we have three copies of Certificate synthesis across:
 - x509
 - google v1
 - google v1beta1

This has burned us several times in recent memory (off the top of my head):
 - When I added Github support and missed the x509 path
 - When Scott added google v1 and dropped the K8s stuff.

By having a largely common code path for these, we should be able to avoid some of these breaks.

This change creates a method in x509ca to make an `x509.Certificate` and then reorients the bulk of the redundant certificate construction into translation logic from the shared construction.

Signed-off-by: Matt Moore <[email protected]>
@dlorenc dlorenc merged commit 198d1f9 into sigstore:main Dec 3, 2021
@mattmoor mattmoor deleted the consolidate-source-of-truth branch December 3, 2021 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants