sigstore / root-signing

TUF repository for Sigstore trust root
Apache License 2.0
80 stars 77 forks source link

Init from config #98

Open asraa opened 2 years ago

asraa commented 2 years ago

Description

I was making enhancements to the root and realized it would be really nice to configure a config that could be used to initialize next roots based on params:

What are some alternatives to dropping a custom YAML?

asraa commented 2 years ago

cc @haydentherapper @bobcallaway @dlorenc @joshuagl do any of you have good ideas?

joshuagl commented 2 years ago

Would (mustache) templating be a good solution?

https://mustache.github.io/mustache.5.html

dlorenc commented 2 years ago

Do you have a sketch of what this might look like? I'm not sure I understand the idea enough to comment.

asraa commented 2 years ago

Do you have a sketch of what this might look like? I'm not sure I understand the idea enough to comment.

I'll spec it out!

asraa commented 2 years ago

https://docs.google.com/document/d/1rhJEPs2LiCs7CZvZeNf8BIM2NLBjXAot8v-GnfulyQg/edit?resourcekey=0-PqzLxKb99V2ZM0iljWsWEA#

Here it is! I have started working out the implementation just to make sure it works, but my main goal is not to keep adding flags and commands to the scripts.

asraa commented 2 years ago

@dlorenc @joshuagl @bobcallaway do you have any feedback on this? I'd like to get this done in the next week so I can test run v3

asraa commented 2 years ago

Adding here with more feedback: we could and should have config validators.

asraa commented 2 years ago

cc @kommendorkapten