Create default roles in scopes to allow authentication and listing scopes/auth methods (#502)
This commit is contained in:
1 parent
67c7b82fbe
commit
a38f40606e
31 files changed
+616
-188
No files matched your search
@@ -582,15 +582,14 @@ end;
|
||||
$$ language plpgsql;
|
||||
|
||||
insert into iam_role (public_id, name, description, scope_id)
|
||||
values('r_default', 'default', 'Default role created on first instantiation of Boundary. It is meant to provide enough permissions for users to successfully authenticate via various client types.', 'global');
|
||||
values('r_default', 'Default Grants', 'Default role created on first instantiation of Boundary. It is meant to provide enough permissions for users to successfully authenticate via various client types.', 'global');
|
||||
insert into iam_role_grant (role_id, canonical_grant, raw_grant)
|
||||
values
|
||||
('r_default', 'type=scope;actions=list', 'type=scope;actions=list'),
|
||||
('r_default', 'type=auth-method;actions=authenticate,list', 'type=auth-method;actions=authenticate,list');
|
||||
insert into iam_user_role (role_id, principal_id)
|
||||
values
|
||||
('r_default', 'u_anon'),
|
||||
('r_default', 'u_auth');
|
||||
('r_default', 'u_anon');
|
||||
|
||||
-- iam_principle_role provides a consolidated view all principal roles assigned
|
||||
-- (user and group roles).
|
||||
|
||||
Reference in new issue
Block a user