headscale/hscontrol/types
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
..
change all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
testcapture all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
testdata Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
api_key.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
common.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
common_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
config.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
config_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
const.go improve testing of route failover logic 2024-04-15 12:31:53 +02:00
debug_routes.go types: move DebugRoutes from routes to types 2026-04-29 18:08:39 +01:00
main_test.go all: fix test flakiness and improve test infrastructure 2026-03-14 02:52:28 -07:00
node.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
node_benchmark_test.go types: avoid NodeView clone in CanAccess 2026-02-26 19:15:07 -08:00
node_tags_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
node_test.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
policy.go feat: implements apis for managing headscale policy (#1792) 2024-07-18 07:38:25 +02:00
preauth_key.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
preauth_key_test.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
registration.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
routes.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
slices.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
testlog.go all: apply godoc [Name] link conventions across comments 2026-05-19 09:55:22 +02:00
types_clone.go oidc groups: fix post-merge compile and migration issues 2026-05-21 21:14:08 -06:00
types_view.go oidc groups: fix post-merge compile and migration issues 2026-05-21 21:14:08 -06:00
users.go oidc groups: expose Groups through the gRPC API 2026-05-21 21:29:54 -06:00
users_test.go oidc groups: fix post-merge compile and migration issues 2026-05-21 21:14:08 -06:00
version.go all: apply formatter changes 2026-04-13 17:23:47 +01:00