Skip to content

Commit 831592b

Browse files
committed
upd authorization protobuf
1 parent ae4dbfd commit 831592b

File tree

15 files changed

+1587
-248
lines changed

15 files changed

+1587
-248
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
- { project: dotnet-authorizer }
5252
- { project: ruby-authorizer }
5353
- { project: python-authorizer }
54-
- { project: openapi-authorizer }
5554
- { project: java-authorizer }
5655

5756
name: Generate on ${{ matrix.cfg.project }}

buf.gen.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,12 @@ plugins:
1212
- remote: buf.build/community/pseudomuto-doc:v1.5.1
1313
out: ./html
1414
opt:
15-
- html,index.html
15+
- html,index.html
16+
17+
- remote: buf.build/grpc-ecosystem/openapiv2:v2.27.4
18+
out: ./tmp
19+
opt:
20+
- json_names_for_fields=false # use proto names.
21+
- allow_delete_body=true # DELETE requests may have a body.
22+
- simple_operation_ids=true # Remove service prefix from operation IDs.
23+
- enable_rpc_deprecation=true # process grpc method's deprecated options.

docs/api.md

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
- [aserto/authorizer/v2/api/policy_context.proto](#aserto_authorizer_v2_api_policy_context-proto)
1212
- [PolicyContext](#aserto-authorizer-v2-api-PolicyContext)
1313

14-
- [aserto/authorizer/v2/api/policy_instance.proto](#aserto_authorizer_v2_api_policy_instance-proto)
15-
- [PolicyInstance](#aserto-authorizer-v2-api-PolicyInstance)
16-
1714
- [aserto/authorizer/v2/api/decision_logs.proto](#aserto_authorizer_v2_api_decision_logs-proto)
1815
- [Decision](#aserto-authorizer-v2-api-Decision)
1916
- [Decision.AnnotationsEntry](#aserto-authorizer-v2-api-Decision-AnnotationsEntry)
@@ -131,38 +128,6 @@ Identity types, describes the payload type of the identity field inside the Iden
131128

132129

133130

134-
<a name="aserto_authorizer_v2_api_policy_instance-proto"></a>
135-
<p align="right"><a href="#top">Top</a></p>
136-
137-
## aserto/authorizer/v2/api/policy_instance.proto
138-
139-
140-
141-
<a name="aserto-authorizer-v2-api-PolicyInstance"></a>
142-
143-
### PolicyInstance
144-
145-
146-
147-
| Field | Type | Label | Description |
148-
| ----- | ---- | ----- | ----------- |
149-
| name | [string](#string) | | policy name |
150-
| instance_label | [string](#string) | | **Deprecated.** label identifying the instance of the policy |
151-
152-
153-
154-
155-
156-
157-
158-
159-
160-
161-
162-
163-
164-
165-
166131
<a name="aserto_authorizer_v2_api_decision_logs-proto"></a>
167132
<p align="right"><a href="#top">Top</a></p>
168133

@@ -186,7 +151,6 @@ represents a decision that an authorizer performed in the past
186151
| outcomes | [Decision.OutcomesEntry](#aserto-authorizer-v2-api-Decision-OutcomesEntry) | repeated | outcome of the decisions specified in the policy context |
187152
| resource | [google.protobuf.Struct](#google-protobuf-Struct) | | the resource context used in a decision |
188153
| annotations | [Decision.AnnotationsEntry](#aserto-authorizer-v2-api-Decision-AnnotationsEntry) | repeated | annotations that may be added to a decision |
189-
| tenant_id | [string](#string) | optional | id of the tenant that generated the decision |
190154

191155

192156

@@ -238,7 +202,6 @@ information about a policy used in a decision
238202
| registry_image | [string](#string) | | image of the policy in the registry, including org (e.g. acmecorp/peoplefinder-abac) |
239203
| registry_tag | [string](#string) | | tag of the policy image (e.g. 0.8.2 or latest) |
240204
| registry_digest | [string](#string) | | digest of the policy image |
241-
| policy_instance | [PolicyInstance](#aserto-authorizer-v2-api-PolicyInstance) | | policy instance used in decision |
242205

243206

244207

@@ -255,7 +218,7 @@ information about a user on behalf of whom a decision was made
255218
| ----- | ---- | ----- | ----------- |
256219
| context | [IdentityContext](#aserto-authorizer-v2-api-IdentityContext) | | identity context used in the decision |
257220
| id | [string](#string) | | id of the user the identity resolved to |
258-
| email | [string](#string) | | convinience human-readable identifier |
221+
| email | [string](#string) | | convenience human-readable identifier |
259222

260223

261224

@@ -329,7 +292,6 @@ information about a user on behalf of whom a decision was made
329292
| policy_context | [api.PolicyContext](#aserto-authorizer-v2-api-PolicyContext) | optional | |
330293
| identity_context | [api.IdentityContext](#aserto-authorizer-v2-api-IdentityContext) | optional | |
331294
| resource_context | [google.protobuf.Struct](#google-protobuf-Struct) | optional | |
332-
| policy_instance | [api.PolicyInstance](#aserto-authorizer-v2-api-PolicyInstance) | optional | |
333295

334296

335297

@@ -397,7 +359,6 @@ information about a user on behalf of whom a decision was made
397359
| identity_context | [api.IdentityContext](#aserto-authorizer-v2-api-IdentityContext) | | |
398360
| options | [DecisionTreeOptions](#aserto-authorizer-v2-DecisionTreeOptions) | | |
399361
| resource_context | [google.protobuf.Struct](#google-protobuf-Struct) | | |
400-
| policy_instance | [api.PolicyInstance](#aserto-authorizer-v2-api-PolicyInstance) | optional | |
401362

402363

403364

@@ -430,7 +391,6 @@ information about a user on behalf of whom a decision was made
430391
| ----- | ---- | ----- | ----------- |
431392
| id | [string](#string) | | |
432393
| field_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |
433-
| policy_instance | [api.PolicyInstance](#aserto-authorizer-v2-api-PolicyInstance) | optional | |
434394

435395

436396

@@ -492,7 +452,6 @@ information about a user on behalf of whom a decision was made
492452
| policy_context | [api.PolicyContext](#aserto-authorizer-v2-api-PolicyContext) | | |
493453
| identity_context | [api.IdentityContext](#aserto-authorizer-v2-api-IdentityContext) | | |
494454
| resource_context | [google.protobuf.Struct](#google-protobuf-Struct) | | |
495-
| policy_instance | [api.PolicyInstance](#aserto-authorizer-v2-api-PolicyInstance) | optional | |
496455

497456

498457

@@ -523,7 +482,6 @@ information about a user on behalf of whom a decision was made
523482
| Field | Type | Label | Description |
524483
| ----- | ---- | ----- | ----------- |
525484
| field_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |
526-
| policy_instance | [api.PolicyInstance](#aserto-authorizer-v2-api-PolicyInstance) | optional | |
527485

528486

529487

@@ -577,7 +535,6 @@ information about a user on behalf of whom a decision was made
577535
| policy_context | [api.PolicyContext](#aserto-authorizer-v2-api-PolicyContext) | optional | |
578536
| identity_context | [api.IdentityContext](#aserto-authorizer-v2-api-IdentityContext) | optional | |
579537
| resource_context | [google.protobuf.Struct](#google-protobuf-Struct) | optional | |
580-
| policy_instance | [api.PolicyInstance](#aserto-authorizer-v2-api-PolicyInstance) | optional | |
581538

582539

583540

html/index.html

Lines changed: 1 addition & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -204,21 +204,6 @@ <h2>Table of Contents</h2>
204204

205205

206206

207-
</ul>
208-
</li>
209-
210-
211-
<li>
212-
<a href="#aserto%2fauthorizer%2fv2%2fapi%2fpolicy_instance.proto">aserto/authorizer/v2/api/policy_instance.proto</a>
213-
<ul>
214-
215-
<li>
216-
<a href="#aserto.authorizer.v2.api.PolicyInstance"><span class="badge">M</span>PolicyInstance</a>
217-
</li>
218-
219-
220-
221-
222207
</ul>
223208
</li>
224209

@@ -496,72 +481,6 @@ <h3 id="aserto.authorizer.v2.api.PolicyContext">PolicyContext</h3>
496481

497482

498483

499-
<div class="file-heading">
500-
<h2 id="aserto/authorizer/v2/api/policy_instance.proto">aserto/authorizer/v2/api/policy_instance.proto</h2><a href="#title">Top</a>
501-
</div>
502-
<p></p>
503-
504-
505-
<h3 id="aserto.authorizer.v2.api.PolicyInstance">PolicyInstance</h3>
506-
<p></p>
507-
508-
509-
<table class="field-table">
510-
<thead>
511-
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
512-
</thead>
513-
<tbody>
514-
515-
<tr>
516-
<td>name</td>
517-
<td><a href="#string">string</a></td>
518-
<td></td>
519-
<td><p>policy name </p></td>
520-
</tr>
521-
522-
<tr>
523-
<td>instance_label</td>
524-
<td><a href="#string">string</a></td>
525-
<td></td>
526-
<td><p><strong>Deprecated.</strong> label identifying the instance of the policy </p></td>
527-
</tr>
528-
529-
</tbody>
530-
</table>
531-
532-
533-
534-
535-
<h4>Fields with deprecated option</h4>
536-
<table>
537-
<thead>
538-
<tr>
539-
<td>Name</td>
540-
<td>Option</td>
541-
</tr>
542-
</thead>
543-
<tbody>
544-
545-
<tr>
546-
<td>instance_label</td>
547-
<td><p>true</p></td>
548-
</tr>
549-
550-
</tbody>
551-
</table>
552-
553-
554-
555-
556-
557-
558-
559-
560-
561-
562-
563-
564-
565484
<div class="file-heading">
566485
<h2 id="aserto/authorizer/v2/api/decision_logs.proto">aserto/authorizer/v2/api/decision_logs.proto</h2><a href="#title">Top</a>
567486
</div>
@@ -634,13 +553,6 @@ <h3 id="aserto.authorizer.v2.api.Decision">Decision</h3>
634553
<td><p>annotations that may be added to a decision </p></td>
635554
</tr>
636555

637-
<tr>
638-
<td>tenant_id</td>
639-
<td><a href="#string">string</a></td>
640-
<td>optional</td>
641-
<td><p>id of the tenant that generated the decision </p></td>
642-
</tr>
643-
644556
</tbody>
645557
</table>
646558

@@ -755,13 +667,6 @@ <h3 id="aserto.authorizer.v2.api.DecisionPolicy">DecisionPolicy</h3>
755667
<td><p>digest of the policy image </p></td>
756668
</tr>
757669

758-
<tr>
759-
<td>policy_instance</td>
760-
<td><a href="#aserto.authorizer.v2.api.PolicyInstance">PolicyInstance</a></td>
761-
<td></td>
762-
<td><p>policy instance used in decision </p></td>
763-
</tr>
764-
765670
</tbody>
766671
</table>
767672

@@ -797,7 +702,7 @@ <h3 id="aserto.authorizer.v2.api.DecisionUser">DecisionUser</h3>
797702
<td>email</td>
798703
<td><a href="#string">string</a></td>
799704
<td></td>
800-
<td><p>convinience human-readable identifier </p></td>
705+
<td><p>convenience human-readable identifier </p></td>
801706
</tr>
802707

803708
</tbody>
@@ -953,13 +858,6 @@ <h3 id="aserto.authorizer.v2.CompileRequest">CompileRequest</h3>
953858
<td><p> </p></td>
954859
</tr>
955860

956-
<tr>
957-
<td>policy_instance</td>
958-
<td><a href="#aserto.authorizer.v2.api.PolicyInstance">api.PolicyInstance</a></td>
959-
<td>optional</td>
960-
<td><p> </p></td>
961-
</tr>
962-
963861
</tbody>
964862
</table>
965863

@@ -1105,13 +1003,6 @@ <h3 id="aserto.authorizer.v2.DecisionTreeRequest">DecisionTreeRequest</h3>
11051003
<td><p> </p></td>
11061004
</tr>
11071005

1108-
<tr>
1109-
<td>policy_instance</td>
1110-
<td><a href="#aserto.authorizer.v2.api.PolicyInstance">api.PolicyInstance</a></td>
1111-
<td>optional</td>
1112-
<td><p> </p></td>
1113-
</tr>
1114-
11151006
</tbody>
11161007
</table>
11171008

@@ -1174,13 +1065,6 @@ <h3 id="aserto.authorizer.v2.GetPolicyRequest">GetPolicyRequest</h3>
11741065
<td><p> </p></td>
11751066
</tr>
11761067

1177-
<tr>
1178-
<td>policy_instance</td>
1179-
<td><a href="#aserto.authorizer.v2.api.PolicyInstance">api.PolicyInstance</a></td>
1180-
<td>optional</td>
1181-
<td><p> </p></td>
1182-
</tr>
1183-
11841068
</tbody>
11851069
</table>
11861070

@@ -1302,13 +1186,6 @@ <h3 id="aserto.authorizer.v2.IsRequest">IsRequest</h3>
13021186
<td><p> </p></td>
13031187
</tr>
13041188

1305-
<tr>
1306-
<td>policy_instance</td>
1307-
<td><a href="#aserto.authorizer.v2.api.PolicyInstance">api.PolicyInstance</a></td>
1308-
<td>optional</td>
1309-
<td><p> </p></td>
1310-
</tr>
1311-
13121189
</tbody>
13131190
</table>
13141191

@@ -1357,13 +1234,6 @@ <h3 id="aserto.authorizer.v2.ListPoliciesRequest">ListPoliciesRequest</h3>
13571234
<td><p> </p></td>
13581235
</tr>
13591236

1360-
<tr>
1361-
<td>policy_instance</td>
1362-
<td><a href="#aserto.authorizer.v2.api.PolicyInstance">api.PolicyInstance</a></td>
1363-
<td>optional</td>
1364-
<td><p> </p></td>
1365-
</tr>
1366-
13671237
</tbody>
13681238
</table>
13691239

@@ -1492,13 +1362,6 @@ <h3 id="aserto.authorizer.v2.QueryRequest">QueryRequest</h3>
14921362
<td><p> </p></td>
14931363
</tr>
14941364

1495-
<tr>
1496-
<td>policy_instance</td>
1497-
<td><a href="#aserto.authorizer.v2.api.PolicyInstance">api.PolicyInstance</a></td>
1498-
<td>optional</td>
1499-
<td><p> </p></td>
1500-
</tr>
1501-
15021365
</tbody>
15031366
</table>
15041367

0 commit comments

Comments
 (0)