Skip to content

Commit 004770f

Browse files
committed
typos
1 parent e77f3d2 commit 004770f

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

application/configuration/environment.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,17 @@ Environment variables for configuring the service provider.
137137

138138
Environment variables for configuring multi-tenancy.
139139

140-
| Variable | Example |
141-
| ---------------------------- | ----------------------------- |
142-
| CHEVERETO_TENANTS_PUBLIC_KEY | your_tenants_public_key |
143-
| CHEVERETO_TENANT_ENFORCED | {"CHEVERETO_MAX_USERS":"100"} |
144-
| CHEVERETO_TENANT | tenant1 |
145-
146-
Variable `CHEVERETO_TENANT_ENFORCED` is a JSON object that defines which variables will be enforced (overridden) for the multi-tenant context. Variable `CHEVERETO_TENANT` is intended to be used to pass the current tenant context for CLI.
140+
| Variable | Example |
141+
| -------------------------------- | ----------------------------- |
142+
| CHEVERETO_TENANTS_PUBLIC_KEY | your_tenants_public_key |
143+
| CHEVERETO_TENANTS_API_ALLOW_LIST | 200.200.200.200,10.0.0.0/24 |
144+
| CHEVERETO_TENANT_ENFORCED | {"CHEVERETO_MAX_USERS":"100"} |
145+
| CHEVERETO_TENANT | tenant1 |
146+
147+
* `CHEVERETO_TENANTS_PUBLIC_KEY` is used to sign requests to the [Tenants API](../../api/4/tenants.md).
148+
* `CHEVERETO_TENANTS_API_ALLOW_LIST` is used to restrict access to the [Tenants API](../../api/4/tenants.md) by IP address or network.
149+
* `CHEVERETO_TENANT_ENFORCED` is a JSON object that defines which variables will be enforced (overridden) for the multi-tenant context.
150+
* `CHEVERETO_TENANT` is intended to be used to pass the current tenant context for CLI.
147151

148152
## Toggles
149153

application/configuration/multitenancy.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ app/bin/tenants -C api:key:delete --id 1
146146
app/bin/tenants -C api:key:delete --name "My Key"
147147
```
148148

149+
## Restricting access to the Tenants API
150+
151+
In addition to API keys, access to the [Tenants API](../../api/4/tenants.md) can be restricted to specific IP addresses or networks. Use the `CHEVERETO_TENANTS_API_ALLOW_LIST` environment variable to define the allowed sources.
152+
153+
```plain
154+
CHEVERETO_TENANTS_API_ALLOW_LIST="200.200.200.200,10.0.0.0/24,203.0.113.0/28"
155+
```
156+
149157
## Managing tenant plans
150158

151159
Tenant plans define default limits and environment variables, similar to a template. When a tenant is assigned to a plan, it inherits the plan’s limits and environment, which the tenant can still override.

0 commit comments

Comments
 (0)