oficina / home Public

Clone
git clone https://amadan.net/oficina/home

Plain git — no account needed to clone.

Download

Download this file

1package operator
2
3import "amadan.net/oficina/home/internal/home/directorydata"
4
5// routeScope separates existing-instance adoption from ordinary provisioning.
6// existingTeam comes only from Home's confirmed plan, never operation input.
7func routeScope(existingTeam, label, team, app, consumer, origin string) bool {
8 if existingTeam == "" {
9 return label != "oficina" && origin != directorydata.CanonicalOrigin(app)
10 }
11 return validTeamSQID(existingTeam) && team == existingTeam && directorydata.CanonicalBinding(label, app, consumer, origin)
12}
13
14const existingActivationPolicy = "oficina/existing-app-activation/v1"
15