Skip to content

Commit 9f9575e

Browse files
run lint
1 parent 81f7667 commit 9f9575e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

content/docs/get-started/fundamentals/core/build-policies.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,13 @@ PPL allows administrators to express authorization policy in a high-level, decla
6464

6565
You can think of it as coded instructions to tell Pomerium how authorization decisions are made for capturing all niche and edge-case scenarios. It's as flexible as you want it to be!
6666

67-
68-
6967
### How does PPL work?
7068

7169
PPL is made up of **Rules**, **Actions**, **Logical Operators**, **Criteria**, and **Matchers**.
7270

7371
Below is a simple policy example in PPL format that allows access for the email [email protected]. The following sections will break down each of these components in more detail.
7472

73+
<!-- prettier-ignore-start -->
7574
```yaml
7675
# PPL Example
7776
policy:
@@ -81,6 +80,7 @@ policy:
8180
- email: # Criterion
8281
is: [email protected] # Matcher
8382
```
83+
<!-- prettier-ignore-end -->
8484
8585
#### Rules
8686
@@ -90,6 +90,7 @@ A rule is the basic building block of a PPL policy. Each rule says what action t
9090
- The conditions are expressed using logical operators, criteria, and matchers.
9191
9292
A PPL document can contain:
93+
9394
- A single rule, or
9495
- An array of rules (evaluated together).
9596
@@ -99,7 +100,6 @@ Actions are one of the two values : `allow` or `deny`. `deny` always takes prece
99100

100101
Users will have access to a route if **at least one** `allow` rule matches and **no** `deny` rules match.
101102

102-
103103
#### Logical Operators
104104

105105
A logical operator combines multiple criteria together for the evaluation of a rule.
@@ -114,7 +114,8 @@ There are four logical operators:
114114
#### Criteria
115115

116116
In PPL, a criterion defines a specific condition to evaluate, such as a user’s email or device type.
117-
- Each criterion is an object where the key is the criterion name (optionally with a sub-path), and the value specifies what to match or compare.
117+
118+
- Each criterion is an object where the key is the criterion name (optionally with a sub-path), and the value specifies what to match or compare.
118119
- The exact format of the value depends on the type of criterion being used.
119120

120121
#### Matchers

content/docs/get-started/fundamentals/core/build-routes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ routes:
5959
- email:
6060
6161
pass_identity_headers: true
62-
# Add Grafana route here:
62+
# Add Grafana route here:
6363
- from: https://grafana.localhost.pomerium.io
6464
to: http://grafana:3000
6565
allow_any_authenticated_user: true

0 commit comments

Comments
 (0)