refactors user-groups setup and auth logic

This commit is contained in:
msramalho
2024-10-31 14:52:14 +00:00
parent c8e1d441a4
commit 10306eba8a
10 changed files with 216 additions and 62 deletions

View File

@@ -7,13 +7,47 @@ users:
- spaceship
jerry@example.com:
- the-jerrys-club
birdman@example.com:
summer@herself.com:
badyemail.com:
domains:
example.com:
- animated-characters
birdy.com:
- animated-characters
- this-does-not-exist
orchestrators:
spaceship: tests/orchestration.test.yaml
interdimensional: tests/orchestration.test.yaml
default: tests/orchestration.test.yaml
groups:
spaceship:
description: "The spaceship crew"
orchestrator: tests/orchestration.test.yaml
orchestrator_sheet: tests/orchestration.test.yaml
permissions:
read: ["all"]
active_sheets: -1
monthly_urls: all
monthly_mbs: all
interdimensional:
description: "Interdimensional travelers"
orchestrator: tests/orchestration.test.yaml
orchestrator_sheet: tests/orchestration.test.yaml
permissions:
read: ["interdimensional", "animated-characters"]
active_sheets: 5
monthly_urls: 1000
monthly_mbs: 1000
animated-characters:
description: "Animated characters"
orchestrator: tests/orchestration.test.yaml
orchestrator_sheet: tests/orchestration.test.yaml
permissions:
read: ["animated-characters"]
active_sheets: -1
monthly_urls: all
monthly_mbs: all