-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathPermission.proto
More file actions
70 lines (55 loc) · 1.45 KB
/
Permission.proto
File metadata and controls
70 lines (55 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
syntax = "proto3";
package feast.core;
option go_package = "github.com/feast-dev/feast/go/protos/feast/core";
option java_outer_classname = "PermissionProto";
option java_package = "feast.proto.core";
import "feast/core/Policy.proto";
import "google/protobuf/timestamp.proto";
message Permission {
// User-specified specifications of this permission.
PermissionSpec spec = 1;
// System-populated metadata for this permission.
PermissionMeta meta = 2;
}
message PermissionSpec {
enum AuthzedAction {
CREATE = 0;
DESCRIBE = 1;
UPDATE = 2;
DELETE = 3;
READ_ONLINE = 4;
READ_OFFLINE = 5;
WRITE_ONLINE = 6;
WRITE_OFFLINE = 7;
}
// Name of the permission. Must be unique. Not updated.
string name = 1;
// Name of Feast project.
string project = 2;
enum Type {
FEATURE_VIEW = 0;
ON_DEMAND_FEATURE_VIEW = 1;
BATCH_FEATURE_VIEW = 2;
STREAM_FEATURE_VIEW= 3;
ENTITY = 4;
FEATURE_SERVICE = 5;
DATA_SOURCE = 6;
VALIDATION_REFERENCE = 7;
SAVED_DATASET = 8;
PERMISSION = 9;
PROJECT = 10;
}
repeated Type types = 3;
repeated string name_patterns = 4;
map<string, string> required_tags = 5;
// List of actions.
repeated AuthzedAction actions = 6;
// the policy.
Policy policy = 7;
// User defined metadata
map<string,string> tags = 8;
}
message PermissionMeta {
google.protobuf.Timestamp created_timestamp = 1;
google.protobuf.Timestamp last_updated_timestamp = 2;
}