lilypad
lilypad copied to clipboard
feat: module allowlist
Review Type Requested (choose one):
- [ ] Logic - thorough check (from everybody doing review)
Summary
Limit the containers that can be executed on the jobcreator. Updates consist of a module allowlist fetch and allowlist check before deal agreement.
Task/Issue reference
Closes: #63
Details
Location of Module Allowlist: https://github.com/Lilypad-Tech/module-allowlist/blob/main/allowlist.txt
Implemented into the jobcreator/controller.go due to controller managing job offers and doing the interaction with the solver on deal agreements. This includes the allowlist fetch using a simple http fetch to the lilypad-tech Github as well as the allowlist check function before a deal is agreed on.
How to test this code? (optional)
I am still having issues with my lilypad on-chain jobs in my local dev environment- please test as well!
Anything else? (optional)
I did a alias to the http package as to not step on the "github.com/lilypad-tech/lilypad/pkg/http" package