File: policy.proto

package info (click to toggle)
golang-step-linkedca 0.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 520 kB
  • sloc: makefile: 28
file content (50 lines) | stat: -rw-r--r-- 833 bytes parent folder | download
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
syntax = "proto3";

package linkedca;

option go_package = "go.step.sm/linkedca";

message Policy {
	X509Policy x509 = 1;
	SSHPolicy ssh = 2;
}

message X509Policy {
	X509Names allow = 1;
	X509Names deny = 2;
	bool allow_wildcard_names = 3;
}

message SSHPolicy {
	SSHHostPolicy host = 1;
	SSHUserPolicy user = 2;
}

message SSHHostPolicy {
	SSHHostNames allow = 1;
	SSHHostNames deny = 2;
}

message SSHUserPolicy {
	SSHUserNames allow = 1;
	SSHUserNames deny = 2;
}

message X509Names {
	repeated string dns = 1;
	repeated string ips = 2;
	repeated string emails = 3;
	repeated string uris = 4;
	repeated string common_names = 5;
}

message SSHHostNames {
	repeated string dns = 1;
	repeated string ips = 2;
	repeated string principals = 3;
}

message SSHUserNames {
	repeated string emails = 1;
	repeated string principals = 2;
}