woodpecker
woodpecker copied to clipboard
WIP: implement server side filters for agents
will allow https://github.com/woodpecker-ci/woodpecker/issues/267, https://github.com/woodpecker-ci/woodpecker/issues/1816 etc ...
TODOs:
- [ ] API to set server-side-agent-filters
- [ ] api to register agent for org
- [ ] WebUI
- [ ] secure all rpc endpoints
- [ ] secure set of labels for non-admins
Nice.
One step would be to add orgId: <orgId>
, repoId: <repoId>
labels, so we can later on filter by that context, so an agent could be registered for a repo, org or the whole instance.
:point_up: that's the idea ... I just wrote down my starting point while chating @ c-base in berling ... and my ideas after brainstorming :D
this will take shape next week(s^tm)
@6543 I've added a commit with the enforced labels and checks I had in mind. What do you think about that approach?