@punica/editor 1.44.0 → 1.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -38,6 +38,16 @@ declare module 'punica' {
|
|
|
38
38
|
* remote` reaches exactly the requests that carry this.
|
|
39
39
|
*/
|
|
40
40
|
egress?: 'remote';
|
|
41
|
+
/**
|
|
42
|
+
* `'declared'` when the capability classifies itself or this call's
|
|
43
|
+
* input as sensitive (`dataClassification: 'sensitive'`, or a value
|
|
44
|
+
* at a schema path annotated `sensitive: true`), `'taint'` when a
|
|
45
|
+
* call earlier in the same trace read something declared sensitive
|
|
46
|
+
* and completed — as `egressGuard` resolved it. A rule with
|
|
47
|
+
* `sensitive: true` reaches exactly the requests that carry this
|
|
48
|
+
* (`docs/sensitive-data-egress.md` T2, T3).
|
|
49
|
+
*/
|
|
50
|
+
sensitive?: 'declared' | 'taint';
|
|
41
51
|
risk: PolicyRisk;
|
|
42
52
|
approval: PolicyApproval;
|
|
43
53
|
/**
|
|
@@ -563,6 +573,14 @@ declare module 'punica' {
|
|
|
563
573
|
* (`docs/sensitive-data-egress.md`). The only value is `remote`.
|
|
564
574
|
*/
|
|
565
575
|
egress?: 'remote';
|
|
576
|
+
/**
|
|
577
|
+
* Selects the calls that carry sensitive material — by the
|
|
578
|
+
* capability's declaration or by the run's taint, as the gate
|
|
579
|
+
* resolved it. The only value is `true`; written beside `egress:
|
|
580
|
+
* remote`, `deny` is the sentence "sensitive data does not leave this
|
|
581
|
+
* machine" while other remote calls still may.
|
|
582
|
+
*/
|
|
583
|
+
sensitive?: true;
|
|
566
584
|
effect: PolicyRuleEffect;
|
|
567
585
|
/** ANDed. Absent or empty matches every argument tuple. */
|
|
568
586
|
when?: PolicyCondition[];
|
|
@@ -616,6 +634,8 @@ declare module 'punica' {
|
|
|
616
634
|
org?: string;
|
|
617
635
|
/** The rule's `signatures`, when more than one. */
|
|
618
636
|
signatures?: number;
|
|
637
|
+
/** The rule's `sensitive: true`, when it wrote it. */
|
|
638
|
+
sensitive?: true;
|
|
619
639
|
/** Digest of the template's rules — which policy text was in force. */
|
|
620
640
|
digest?: string;
|
|
621
641
|
/**
|
|
@@ -623,7 +643,7 @@ declare module 'punica' {
|
|
|
623
643
|
* declares. A reader of the audit record can otherwise not tell
|
|
624
644
|
* why a rule naming no id applied to this call.
|
|
625
645
|
*/
|
|
626
|
-
matchedBy?: 'id' | 'action' | 'egress';
|
|
646
|
+
matchedBy?: 'id' | 'action' | 'egress' | 'sensitive';
|
|
627
647
|
}
|
|
628
648
|
|
|
629
649
|
/** A rule that matched, plus the rule itself for the caller to read. */
|