Skip to content

Commit

Permalink
Extension Resources Group Auth (#123)
Browse files Browse the repository at this point in the history
* fix lint errors

Signed-off-by: Bailin He <bahe@equinix.com>

* add db models

* validate if non-gov-admin can manage sys ext resources

* add tests

---------

Signed-off-by: Bailin He <bahe@equinix.com>
  • Loading branch information
bailinhe authored Aug 28, 2024
1 parent 40aa96a commit 95c1257
Show file tree
Hide file tree
Showing 9 changed files with 1,236 additions and 84 deletions.
9 changes: 9 additions & 0 deletions db/migrations/00038_extensions_resources_admin_groups.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE extension_resource_definitions ADD COLUMN IF NOT EXISTS admin_group UUID NULL REFERENCES groups(id);
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
ALTER TABLE extension_resource_definitions DROP COLUMN IF EXISTS admin_group;
-- +goose StatementEnd
263 changes: 248 additions & 15 deletions internal/models/extension_resource_definitions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 95c1257

Please sign in to comment.