headscale/hscontrol
Ryan Malloy 9ca200b6bc oidc groups: expose Groups through the gRPC API
The Groups column is already persisted on users.User (migration
202505141323) and populated from claims.Groups in FromClaim. This
makes the value visible through the gRPC/REST surface so external
tools (notably Headplane, which is the motivation for storing the
claim in the first place) can read group membership without
poking at the database.

- proto/headscale/v1/user.proto: add `repeated string groups = 9;`
  with a doc comment describing where the value comes from.
- gen/go/headscale/v1/user.pb.go,
  gen/openapiv2/headscale/v1/headscale.swagger.json: regenerated
  via `buf generate --template ../buf.gen.yaml -o .. ../proto`.
- hscontrol/types/users.go: populate v1.User.Groups in Proto() by
  decoding the JSON-encoded users.groups column via GetGroups().
- integration/oidc_groups_test.go: drop the sqlite3-via-Execute hack
  and verify groups through headscale.ListUsers() like every other
  user-state integration test.
2026-05-21 21:29:54 -06:00
..
assets assets: fix logo alignment and error icon centering 2026-04-13 17:23:47 +01:00
capver all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
db oidc groups: fix post-merge compile and migration issues 2026-05-21 21:14:08 -06:00
derp all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
dns all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
mapper all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
policy all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
servertest all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
state all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
templates all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
types oidc groups: expose Groups through the gRPC API 2026-05-21 21:29:54 -06:00
util all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
app.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +02:00
app_test.go app: add security headers middleware 2026-04-17 16:31:49 +01:00
auth.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
auth_tags_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
auth_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
debug.go all: mechanical lint fixes 2026-05-19 09:55:22 +02:00
grpcv1.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
grpcv1_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
handlers.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
handlers_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
metrics.go metrics, policy/v2: drop unused scaffolding + nil-error returns 2026-05-19 09:55:22 +02:00
noise.go noise: pin outer RemoteAddr onto tunnel requests 2026-05-20 11:30:41 +02:00
noise_test.go noise: pin outer RemoteAddr onto tunnel requests 2026-05-20 11:30:41 +02:00
oidc.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +02:00
oidc_confirm_test.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +02:00
oidc_template_test.go oidc: render HTML error pages for browser-facing failures 2026-04-13 17:23:47 +01:00
oidc_test.go oidc: make email verification configurable 2025-12-18 11:42:32 +00:00
platform_config.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
poll.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
poll_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
realip.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
realip_test.go hscontrol: gate proxy header trust on trusted_proxies 2026-05-18 17:17:55 +02:00
tailsql.go all: annotate gosec false positives with rationale 2026-05-19 09:55:22 +02:00
templates_consistency_test.go Update links to Tailscale documentation 2026-04-18 09:33:41 +02:00