woodpecker icon indicating copy to clipboard operation
woodpecker copied to clipboard

WIP: implement server side filters for agents

Open 6543 opened this issue 3 months ago • 3 comments

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

6543 avatar Mar 23 '24 21:03 6543

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.

anbraten avatar Mar 23 '24 21:03 anbraten

: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 avatar Mar 24 '24 09:03 6543

@6543 I've added a commit with the enforced labels and checks I had in mind. What do you think about that approach?

anbraten avatar Apr 17 '24 11:04 anbraten