Replies: 1 comment 5 replies
|
Alright, some brainstorming... Module namespacing / organizationI think it would be a good idea to separate modules into
The separation between
|
|
Alright, some brainstorming... Module namespacing / organizationI think it would be a good idea to separate modules into
The separation between
|
Uh oh!
There was an error while loading. Please reload this page.
I think we might want to start working towards a module registry for people to start submitting their own modules for others to use so that the maintenance burden doesn't fall on our small team. That way anyone could share their creations.
The idea is something similar to how OpenTofu handles their registry. We have a repo that basically has directories of json files that contain information about modules that are submitted to the repo. These json files contain information like what modules a repo has, the schema, the public key. We then statically host those json files and it's then read by the CLI when it encounters a "namespaced" module.
Say like I have a repo at github.com/gmpinder/some-module, the user could set the type to gmpinder/some-module and the CLI would look for its entry in the registry, find the image reference, validate the module based on the schema, verify the image based on the registered public key, then mount it like how our official modules are mounted on RUN statements.
Ideally we would have a bot that is used to get this information and all the user has to do is supply their repo and the name of the module. The bot creates a PR that contains all of the information the registry needs to operate based on what's in the repo. We, as maintainers, would then review the registry entry and take a look at the module code just to make sure it's not doing anything malicious, approve, and then anyone can make use of the new module.
This will shift the burden of maintenance to the original author of the module and any new updates will be picked up by a scheduled job in the registry repo. We can then create a rather simple registry site that lists all the registered modules that people have submitted.
This would require some work on our part to get the system setup, but it would open up the ecosystem for others to contribute to.
Tasks
modulesubcommandAll reactions