Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-proto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-proto
Commits
0aa6278d
Verified
Commit
0aa6278d
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: permission stuff
parent
db8b8ea3
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!8
Release 0.2
,
!7
F acm
Pipeline
#15981
passed with warnings
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/caosdb/acm/v1alpha1/main.proto
+43
-10
43 additions, 10 deletions
proto/caosdb/acm/v1alpha1/main.proto
with
43 additions
and
10 deletions
proto/caosdb/acm/v1alpha1/main.proto
+
43
−
10
View file @
0aa6278d
...
...
@@ -48,6 +48,21 @@ message PagingResponse {
int32
current_index
=
2
;
}
///////////////////////////////////////////
// PERMISSSION STUFF
///////////////////////////////////////////
// PermissionRule
message
PermissionRule
{
// The permission which is being granted oder denied.
string
permission
=
1
;
// Priority permission rules overrule non-priority permission rules.
bool
priority
=
2
;
// True means that the permission is being granted by this rule, false means the
// permission is being DENIED!
bool
grant
=
3
;
}
///////////////////////////////////////////
// ROLE STUFF
///////////////////////////////////////////
...
...
@@ -59,8 +74,8 @@ message Role {
// Description of the purpose of this role or which group of users this role
// represents.
string
description
=
2
;
// List of
string
permission
s of
this role.
repeated
string
string_
permissions
=
3
;
// List of permission
rules for
this role.
repeated
PermissionRule
permission
_rule
s
=
3
;
}
// Request message for the ListRoles RPC
...
...
@@ -86,10 +101,18 @@ message CreateSingleRoleRequest {
// Response message for the CreateSingleRole RPC
message
CreateSingleRoleResponse
{}
// Request message for the <+TODO+> RPC
message
RetrieveSingleRoleRequest
{}
// Response message for the <+TODO+> RPC
message
RetrieveSingleRoleResponse
{}
// Request message for the RetrieveSingleRole RPC
message
RetrieveSingleRoleRequest
{
// the name of the role.
string
name
=
1
;
}
// Response message for the RetrieveSingleRole RPC
message
RetrieveSingleRoleResponse
{
// The role.
Role
role
=
1
;
}
// Request message for the <+TODO+> RPC
message
UpdateSingleRoleRequest
{}
// Response message for the <+TODO+> RPC
...
...
@@ -158,10 +181,20 @@ message CreateSingleUserRequest {
// Response message for the CreateSingeUser RPC
message
CreateSingleUserResponse
{}
// Request message for the <+TODO+> RPC
message
RetrieveSingleUserRequest
{}
// Response message for the <+TODO+> RPC
message
RetrieveSingleUserResponse
{}
// Request message for the RetrieveSingleUser RPC
message
RetrieveSingleUserRequest
{
// The user's realm
string
realm
=
1
;
// The user's name
string
name
=
2
;
}
// Response message for the RetrieveSingleUser RPC
message
RetrieveSingleUserResponse
{
// The user
User
user
=
1
;
}
// Request message for the <+TODO+> RPC
message
UpdateSingleUserRequest
{}
// Response message for the <+TODO+> RPC
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment