Kubernetes gateway security
Open a cluster and go to Security to decide what its managed gateway lets through to your websites and APIs. Every setting runs at the gateway, before a request reaches your pods, so your apps need no change.
Each setting applies to every hostname of the cluster, or only to the hostnames you pick: the cluster's own hostname, its extra names and your own domains. The security profile, its limits and its blocked paths apply to every hostname too, and any hostname can have its own: see Settings per hostname. The section is there once the managed gateway is on; Services of type LoadBalancer are not covered by it.
How changes apply
- Nothing changes until you save. Add, edit, reorder, switch off and remove as much as you like; the section counts your unsaved changes. Review and save lists exactly what changes, and nothing reaches the gateway until you confirm.
- About a minute later it is live. Each rule shows Applying until the cluster reports it, then Applied, or Failed with the reason.
- Two people editing at once. If someone saved after you opened the page, your save is refused, the latest version is loaded and your edit stays on screen, so you can review it again.
- Who can change it. Workspace owners, admins and developers; turning managed rules on needs an owner or admin. Viewers, and support staff helping you, see the settings read-only.
What each plan includes
Core protection comes with every plan: the security profile, firewall rules, rate limits, sign-in and CORS. The workspace owner's plan sets the rest, for every cluster in the workspace:
| Free | Starter | Pro | Scale | Pay as you go | |
|---|---|---|---|---|---|
| Core protection | Yes | Yes | Yes | Yes | Yes |
| Firewall rules per cluster | 10 | 50 | 200 | 200 | 200 |
| Refused-request counts and charts | 24 hours | 7 days | 30 days | 90 days | 1, 7, 30 or 90 days, as you choose, at no charge |
| Security events log | Last hour | 7 days | 30 days | 90 days | The last hour at no charge, or 7, 30 or 90 days at $0.10 per GB ingested and $0.02 per GB a month stored |
| Spike alerts | No | Yes | Yes | Yes | Yes |
| Managed rules | No | No | Included | Included | $5 per cluster a month, metered by the hour while they are on |
Your plan, on Security, shows the cluster's plan, how many of its firewall rules it uses, such as 7 of 10 rules, and what a higher plan adds. Only the workspace owner can change the plan, from Account, Billing; see Plans.
After a downgrade, nothing is deleted.
- Allow rules past the new plan's number stay saved, in order, and stop applying: Security marks each one Inactive, Over plan, and the workspace's owners and admins get an email. Deny and Allow only rules keep applying wherever they are in the list, so a smaller plan never opens what they close. You cannot add rules while the list is over; remove rules, or upgrade, to apply the rest.
- Managed rules stop on a plan without them, and the cluster shows a notice. Their settings are kept, and apply again with a plan that includes them.
- Counts and events older than the new retention stay until it has passed, then go.
Always on, on every hostname
As soon as any setting on this page is on, the gateway applies these to every hostname of the cluster, whatever each hostname's own settings:
- Paths are cleaned up. Repeated slashes are merged, and a path with an encoded slash or backslash (
%2F,%5C) gets400, so a path cannot be spelled two ways to slip past a rule. - Dot segments with parameters count as steps. A
.or..segment followed by;parameters, such as/static/..;/admin, is a step up the path to some servers, so the gateway reads it as one and every rule sees/admin. Written with an encoded;(%3B), it gets403. - The profile's timeouts and header rules apply to every hostname, including ones you gave no settings of their own.
- Your own gateway policies are refused. While anything here is on, the cluster refuses new gateway policies in your own namespaces; see Your own policies.
Review and save lists these when a save turns security on for the first time.
A hostname with settings of its own gets a listener of its own on the gateway. A route of yours pinned to the gateway's main listener, with sectionName: http in its parentRefs, then stops answering on that hostname: Review and save names each such route, and saving waits until you confirm. Remove the route's sectionName to let it answer everywhere.
Overview and security profile
Overview says whether the latest change is applied. Under it, Refused requests charts what the gateway refused, by action: blocked, rate limited, refused at sign-in, and flagged by managed rules. Pick the last hour, 24 hours, or 7, 30 or 90 days, as far back as your plan keeps counts, and see the rules and the hostnames that refused the most.
The security profile is the base every hostname of the cluster gets:
| Off | Standard | Strict | |
|---|---|---|---|
| Blocked paths | None | 25: secret files and admin consoles, such as /.git, /.env, /.ssh, /wp-admin and /phpmyadmin, and double-encoded dots and slashes | 31: Standard's, plus debug endpoints such as /actuator and /debug/pprof |
| Largest request body | No limit | 100 MB | 10 MB |
| Time a client has to send its headers | No limit | 30 s | 10 s |
| Idle connections closed after | No limit | 300 s | 60 s |
| Requests per second, per address | No limit | No limit | 20 |
| Header names with an underscore | Refused | Refused | Refused |
| A request or answer that sends nothing is cut after | 5 min | 5 min | 5 min |
Turn the underscore limit off and such a header is dropped: the request reaches your app without it. A blocked path covers everything that starts with it: /.env also blocks /.env.local, and /.git blocks /.git/config. A request for one gets 403. A request whose body is larger than the limit gets 413, whether it states its size up front or sends the body without one, except a body sent without its size on a GET, HEAD or OPTIONS request, which is not counted: it cannot be told apart from no body at all. These refusals do not show in Events or Refused requests yet. Standard suits most sites; pick Strict for an API or an admin tool that never needs large uploads or slow clients. To serve one of the blocked paths on purpose, add a firewall rule that allows it: an allowed request skips the profile's list.
To fine-tune the profile, edit its Blocked paths: add your own, remove one of the profile's, or go back to the profile's list, with each path marked From the profile or Custom. Under Limits, keep the profile's value, set your own, or turn a limit off: request bodies from 1 to 10,240 MB, time to send headers from 1 to 300 s, idle connections from 5 to 3,600 s, requests per address from 1 to 100,000 a second, and a request or answer that sends nothing from 1 to 3,600 s, the gateway's 5 minutes when left to the default. Edits go through the same review before saving, and your own list and limits are kept when you change the profile. Both apply to every hostname without settings of its own: to change them on one hostname, see Settings per hostname.
Settings per hostname
Every hostname gets the cluster's security profile, limits and blocked paths until you give it its own. Open Security, then Hostnames, to see each hostname of the cluster with what applies to it:
| Column | Shows |
|---|---|
| Hostname | The cluster's own hostname, its extra names and your own domains |
| Profile | Off, Standard or Strict, marked From the cluster or Custom |
| Limits | The largest request body, requests per second per address, and how long a request may send nothing, each marked From the cluster or Custom |
| Blocked paths | How many paths it blocks, from the cluster's list or its own |
| Covered by | The firewall rules, rate limits, sign-in, CORS and managed rules that apply to it |
Choose Edit on a hostname to give it settings of its own:
-
Profile: keep the cluster's, or pick Off, Standard or Strict for this hostname only.
-
Limits: the largest request body, requests per second per address, and how long a request or its answer may send nothing before it is cut, from 1 to 3,600 s, or the gateway's 5 minutes by default. A limit longer than 5 minutes only loosens: it never reaches the cluster's own hostname, and on its own it does not turn security on. Keep the value the hostname would get, set your own, or turn a limit off, in the same ranges as the cluster's. The time to send headers, idle connections and header names with an underscore belong to the connection, before the gateway knows which hostname a request is for, so they follow the cluster's profile on every hostname.
-
Blocked paths: keep the list it would get, or edit its own: add paths, remove some, or go back to the profile's list.
-
Also on the cluster's own hostname: on by default. Your other hostnames point to the cluster's own hostname, so a route without hostnames serves the same pages there; with this on, what the hostname makes stricter, its blocked paths and lower limits, holds there too. What it loosens, such as a bigger body limit, never does.
Review and save lists each change and its effect, such as how many paths the hostname then blocks, which limits change for it, and what the cluster's own hostname then gets. Use the cluster's settings removes the hostname's own and it follows the cluster again. A hostname with settings of its own gets a listener of its own on the gateway, so Review and save also names a route pinned to the main listener that would stop answering on it, and a route that would serve its pages on a hostname without the same protection.
A hostname's own profile replaces the cluster's for it, and only for it. Firewall rules, rate limits, sign-in, CORS and managed rules still apply to it as they are set. The rules that always apply, such as path cleanup, stay on for every hostname, and Off on one hostname does not switch them off.
Example: Strict on api.example.com
Keep the cluster on Standard, and make the API stricter:
| Field | Value |
|---|---|
| Hostname | api.example.com |
| Profile | Strict |
| Limits | The profile's: bodies up to 10 MB, and 20 requests per second per address |
| Blocked paths | The Strict list, with debug endpoints such as /actuator |
Every other hostname stays on Standard. With Also on the cluster's own hostname on, the cluster's own hostname also blocks the Strict paths and takes the lower limits, so the API's pages cannot be reached around them there.
Example: a bigger body limit on uploads.example.com
Keep Standard's protection on the upload site, and let large files through:
| Field | Value |
|---|---|
| Hostname | uploads.example.com |
| Profile | From the cluster: Standard |
| Largest request body | Custom: 2,048 MB |
Only uploads.example.com accepts bodies up to 2 GB; the rest of the cluster, its own hostname included, keeps Standard's 100 MB.
New and existing clusters
- New clusters start with the Standard profile on, from their first request. The create form says so. To change it, open the cluster's Security: pick another profile, switch it Off, or give a hostname settings of its own.
- Clusters created before keep the profile they have, Off included: nothing changes on them by itself. While a cluster's profile is Off, Security recommends Standard and says what it blocks and changes. Review and turn on shows the same review as any other change, and nothing is saved until you confirm. Dismiss hides it for everyone in the workspace, and the email below is not sent if it has not gone yet. Viewers and support staff see the recommendation but cannot act on it.
- The workspace's owners get one email per existing cluster about the new default, in their language, with a link to its Security.
Firewall rules
Firewall rules run top to bottom for every request, and the first rule that matches decides. A request no rule matches goes on to the profile. A cluster has as many rules as its plan includes, and the section shows how many it uses.
| Action | Does |
|---|---|
| Allow | Lets the request through. Later rules and the profile's blocked paths are skipped; rate limits still count it |
| Deny | Answers 403 |
| Allow only | Inside the rule's hostnames, paths and methods, lets through only requests from the listed addresses, or with the listed headers. Every other request there gets 403 |
A request matches a rule when it matches every field you filled in, and within a field any one entry is enough. A field left empty matches anything.
- Client addresses: IPv4 or IPv6 addresses or ranges, such as
203.0.113.10or198.51.100.0/24. This is the visitor's own address, as it reached the platform's edge. - Paths: Is exactly compares the whole path; Starts with compares its beginning as text; Matches pattern takes a regular expression that must match the whole path, such as
/api/v[0-9]+/internal/.*. A pattern reads the path only, never the query string after?: on an Allow rule,.*\.css$lets/site.css?v=2through but not/.env?x=.css. Patterns stay simple so they stay fast: no look-ahead, look-behind or back-references, at most two counted repeats such as{2,5}, none above 30, and 200 characters at most. - Methods:
GET,POSTand the others. None selected matches every method. A Deny or Allow only rule, and a rate limit, that names methods also takesHEADwithGET, andOPTIONS, since servers answer those from the same handlers. - Headers: each header listed must be on the request with one of its values. Headers the platform sets, such as
Host,X-Forwarded-For,AuthorizationandCookie, cannot be matched.
Use the arrows to change the order, and the switch to turn a rule off without removing it.
Example: block /.git and /.env
The Standard profile already blocks these. With the profile Off, or to make sure, add a rule:
| Field | Value |
|---|---|
| Name | Block secret files |
| Action | Deny |
| Paths | Starts with /.git, Starts with /.env |
| Applies to | Every hostname of this cluster |
The empty Firewall rules section offers this rule as an example to start from.
Example: allow /admin only from your office
| Field | Value |
|---|---|
| Name | Admin from the office only |
| Action | Allow only |
| Paths | Starts with /admin |
| Client addresses | Your office's address, such as 203.0.113.10 |
| Applies to | Only the hostname that serves the admin pages |
Everyone else gets 403 on /admin and below, and the rest of the site is untouched. If your office has several addresses, list each on its own line, or the range.
A Deny or Allow only rule scoped to hostnames also applies on the cluster's own hostname, unless you turn off Also apply it on the cluster's own hostname: your other hostnames point to it, so a route without hostnames serves the same pages there, and a request for that hostname would step around the rule. An Allow rule applies only on the hostnames it names. Review and save warns when a route would still serve the rule's pages on a hostname the rule does not cover.
Rate limiting
A rate limit caps how many requests one client address may send: counted per hostname, or per hostname and path when you give a path. Over the limit the gateway answers 429.
- Limit: a number of requests per second, per minute or per hour.
- Burst: a client may spend a whole period's allowance at once, then waits for it to refill. A limit of 600 per minute lets 600 requests through in a burst, then about 10 a second.
- Applies to: every hostname or the ones you pick, one path at most, and optionally only some methods.
- Also on the cluster's own hostname: on by default for a limit scoped to hostnames, so a client cannot step around it through the hostname the others point to; it counts there separately. Review and save warns when a route would serve the limited pages on a hostname the limit does not cover.
- Counted per proxy. The gateway runs several proxies and each counts what reaches it, so the platform divides each limit between them: a client's total stays close to the limit. A limit lower than the number of proxies lets one request through per proxy.
Example: rate-limit /api
| Field | Value |
|---|---|
| Name | API |
| Limit | 10 per second |
| Paths | Starts with /api |
Each client address may then make 10 requests a second to /api on each hostname; a client over it gets 429 until its allowance refills. Allowed requests and requests that pass a firewall rule still count.
Authentication
Authentication asks for a username and password before any page of a hostname, in the browser's own sign-in prompt. Use it for staging sites and internal tools that should not be public.
- Users: up to 50 per hostname, each with a password of 12 to 128 characters.
- Passwords are entered once and never shown again, in the console or through the API: the platform keeps only a hash. When you edit a user, leave the password empty to keep it. Keep the passwords in your own password manager.
- Also require an address: optional. With addresses listed, a visitor needs an allowed address and a valid password.
- Requests without a valid password get
401. - Also on the cluster's own hostname: on by default. Your other hostnames point to the cluster's own hostname, so a route without hostnames serves the same pages there too; with this on, that hostname asks for the same sign-in. When several hostnames' sign-ins cover it, only a user they all share, with the same password, from an address they all allow, gets in, and if they share none, the cluster's own hostname lets nobody in. Turn it off only when the cluster's own hostname serves sites anyone may open, and give the protected routes hostnames of their own.
- Never open by mistake: if a stored password cannot be read, the hostname lets nobody in, and Security marks the sign-in Failed, until you set the passwords again.
Sign-in with tokens (JWT) and single sign-on (OIDC) are coming soon.
Example: basic auth for a staging hostname
- In Authentication, choose Protect a hostname, and pick the staging hostname, such as
staging.example.com. - Add a user, such as
team, with a long password. - Review and save. A minute later, the hostname, and the cluster's own hostname, ask for the username and password. Your other hostnames ask for it only if a route serves them the same pages: Review and save warns before saving when a route without hostnames, or with several, would still serve the protected pages on a hostname without sign-in. Give such a route its own hostnames, or protect those hostnames too.
CORS
CORS lets web pages on other origins call a hostname from the browser, such as a single-page app on https://app.example.com calling an API on api.example.com. The gateway answers the browser's preflight requests and adds the CORS headers, so your API does not have to.
| Setting | Means |
|---|---|
| Allowed origins | https://app.example.com, one per line, or * for any origin |
| Methods | The methods those pages may use |
| Allowed request headers | Headers the page may send beyond the simple ones, such as content-type |
| Response headers the page may read | Headers beyond the simple ones the page's code may read |
| Cache preflight answers for | 0 to 86,400 seconds; 600 by default |
| Allow credentials | Lets the browser send cookies; needs named origins, not * or a pattern such as https://*.example.com |
Each hostname has one CORS setting. If your app already sends CORS headers itself, leave this off for its hostname.
Managed rules
Managed rules inspect each request for common attacks, such as SQL injection, cross-site scripting and path traversal, with a rule set the platform keeps up to date.
| Mode | Does |
|---|---|
| Off | Requests are not inspected |
| Detect only | Requests are inspected and counted, never blocked |
| Block | Requests the rules flag get 403 |
Strictness goes from level 1, with few false alarms, to level 4, the strictest. A higher level catches more attacks and flags more ordinary requests by mistake. Start in Detect only at level 1, watch the count on Overview for a few days, then switch to Block, and raise the level one step at a time.
- Memory. Managed rules add about 600 MB of memory to each gateway proxy, on your worker nodes, and the platform reserves it for them. If no worker node has room, Security says what the nodes lack and the proxy waits: add a worker, use larger workers, or turn managed rules off.
- Applies to. Every hostname, or the ones you pick and, unless you turn it off, the cluster's own hostname too, so requests cannot step around the rules through the hostname the others point to. Review and save warns when a route would serve the same pages on a hostname the rules do not cover.
- Your app's own errors. In Block at level 2 or higher, a
5xxerror from your app can reach visitors as a blocked403. - Who can turn them on. A workspace owner or admin. Once they are on, anyone who may change the cluster can change the mode and strictness, or turn them off.
- Plans. Managed rules come with Pro and Scale. On pay as you go they cost $5 per cluster a month, metered by the hour while they are on. On Free and Starter the section says which plans include them.
Managed rules are being rolled out. Until a cluster can run them, the section shows Coming soon.
Security events
Open Security, then Events, to see each request the gateway refused or flagged, newest first:
| Column | Shows |
|---|---|
| Time | When the gateway refused it |
| Client IP | The visitor's address, as it reached the platform's edge |
| Hostname | The hostname requested, or Not served here for one the cluster does not serve |
| Path | The path, without its query string |
| Method | GET, POST and the others |
| Rule | The firewall rule or rate limit by its name, or the section that refused it: the security profile, sign-in, CORS or managed rules |
| Action | Blocked, Rate limited, Sign-in refused or Flagged |
| Status | The status the gateway answered with, such as 403, 401 or 429 |
- Search and filter by one client IP, by the start of the path (case kept), by text in the path, hostname, address or method (case ignored), by hostname and by rule, over the last hour, 24 hours, or 7, 30 or 90 days, as far back as your plan keeps events. Load more goes on, 100 at a time.
- What is kept. Only these columns. Request bodies, query strings and header values are never kept.
- At most 10 a second. In a flood, the gateway logs up to 10 refused requests a second and counts the rest: the page says how many were counted but not logged. The counts and charts include them all.
- How long. As long as your plan keeps events. They are stored encrypted, and deleted once that retention passes, or with the cluster.
Keep events longer on pay as you go
On pay as you go, Keep events offers the last hour only, at no charge, or 7, 30 or 90 days, at $0.10 per GB ingested and $0.02 per GB a month stored. It estimates a month's cost from the average day of refused requests over the last 7 days; what you pay is what is metered, on your usage page. Choose how long counts and charts are kept, 1, 7, 30 or 90 days at no charge, under Your plan. Shortening either keeps what is already stored until the new retention has passed.
Spike alerts
From Starter up, and on pay as you go, you get an email, and the cluster shows a notice, when one hostname's refused requests over 10 minutes reach 5 times their usual level over the 24 hours before, and at least 100. Each hostname gets at most one alert every 60 minutes, and it links to the events. Turn them off, or back on, under Spike alerts on Security.
Gateway proxies
The managed gateway runs its traffic through proxies on your workers, whether or not any setting here is on.
- How many. One on a single-worker cluster. Once the cluster has two workers, two, one per worker, and as load grows up to one per worker, six at most. A worker whose taints keep other pods off, such as a GPU pool, does not count. No two proxies share a worker while each can have its own, so losing a worker leaves the others serving; while a worker is drained or down, two may share one rather than wait.
- What they reserve. Each proxy reserves 0.2 CPU and 256 MB of memory on a worker, 1 GB with managed rules on, and may use up to 2 CPU.
- Updates and drains. A new proxy starts before the old one stops, and a worker is drained only while another proxy keeps serving, so traffic does not stop.
- More of them. Under Gateway proxies, raise At least and At most, up to 10 each. Never more than one per worker runs: add workers to run more. The cluster grows past the lower bound only while it serves pod metrics.
Your own policies
These settings belong to the managed gateway. While anything here is on, the cluster refuses new gateway policies in your own namespaces, so none can replace these settings. One that was already there when you turned security on still replaces these settings for its routes: Security, and Review and save before you turn it on, list each one by namespace and name. Remove yours to let the cluster's settings apply.
With PromptOps
In a workspace with PromptOps on, ask in the chat. Every change shows one line saying exactly what it does, such as Block 1.2.3.4 on shop.example.com, and waits for Approve, as the Gateway security row of the permission matrix sets. Under it, the card shows what the change does, worked out from the saved settings: each hostname whose protection moves, with all it then gets, each rule added, changed or removed, and any route the change cuts off or leaves open. Approve applies it only while the settings are still the ones the card showed; if someone changed them since, nothing is applied and PromptOps asks again with a new card. Asking for what is already in place adds nothing. Your plan's limits apply, such as its number of firewall rules, and passwords for sign-in are set in the console only.
- "Block 1.2.3.4 on shop.example.com."
- "Rate-limit /api to 60/min."
- "Use the Strict profile on api.example.com."
- "Let uploads.example.com accept bodies up to 2 GB."
- "What IPs were blocked most today?"
- "Suggest rules from yesterday's events."
A suggestion is a rule it proposes from the events it read, with the reason, such as one address refused 4,000 times on /wp-login.php. Approve it to add the rule, or decline it.
Limits
| Limit | |
|---|---|
| Firewall rules | 10, 50 or 200 per cluster, by plan; 200 at most |
| Addresses across firewall rules and sign-in | 1,000 per cluster |
| Paths per firewall rule | 16 |
| Headers per firewall rule | 8, with 16 values each |
| Rate limits | 7 per cluster, one path each |
| Hostnames with sign-in | 50, with 50 users and 100 address ranges each |
| Hostnames with CORS | 50, with 32 origins each |
| Hostnames with settings of their own, across all sections | 50 |
| Hostnames with a profile of their own | 40 |
| Gateway policies the settings add up to | 95 per cluster: saving settings that need more is refused, never applied in part |
API
| Request | Does |
|---|---|
GET /v1/kubernetes/clusters/{id}/gateway/security | The settings, each rule's status (applied, pending, failed, disabled or inactive) with its reason, the revision, plan: what the plan includes and keeps, and hostSecurity: what each hostname gets, its own or the cluster's |
PUT /v1/kubernetes/clusters/{id}/gateway/security | Replaces each section present in the body: profile, firewall, rateLimits, auth, cors, waf or hostProfiles, the hostnames with settings of their own. Sections left out stay as they are |
POST /v1/kubernetes/clusters/{id}/gateway/security/changes | One change to what is stored now, such as blockSource, addRateLimit, or setProfile and setLimit with a hostname for one hostname only, with the same checks and plan limits as a PUT. With revision, a write made since answers 409 |
GET /v1/kubernetes/clusters/{id}/gateway/security/insights?window=24h | What the gateway refused over 1h to 90d, for every hostname or one hostname: the trend, spikes, the addresses and paths refused most, and findings, each with the change that addresses it |
GET /v1/kubernetes/clusters/{id}/gateway/security/stats?window=24h | Requests refused over 1h, 24h, 7d, 30d or 90d, cut to what your plan keeps: in total, per rule and hostname, and as a series for a chart. windowMinutes, 5 to 1,440, still works |
GET /v1/kubernetes/clusters/{id}/gateway/security/events | The events log, newest first. Filter with from, to, hostname, kind, ruleId and clientIp, up to 500 a page with limit; pass the response's next as cursor for the next page |
POST /v1/kubernetes/clusters/{id}/gateway/security/recommendation/dismiss | Hides the Standard recommendation, recommendStandard, for everyone in the workspace |
PUT /v1/kubernetes/clusters/{id}/gateway/security/options | statsRetentionDays and eventsRetentionDays on pay as you go, and spikeAlerts on a plan with them |
Every PUT carries the revision you read: one without it gets 400, and the write is refused with 409 CONFLICT when someone else saved in between. A user's password is sent only to set or change it, and is never in a response. Use an API token with kubernetes:update to write.
{
"revision": 4,
"firewall": [
{
"name": "Block secret files",
"action": "deny",
"paths": [
{ "type": "prefix", "value": "/.git" },
{ "type": "prefix", "value": "/.env" }
]
}
]
}
Give api.example.com the Strict profile and uploads.example.com a bigger body limit. In hostProfiles, a hostname left out follows the cluster again; name left out keeps the cluster's profile, and only maxBodyMb, perClientRequestsPerSecond and requestIdleTimeoutSec may be set in limits:
{
"revision": 5,
"hostProfiles": [
{ "hostname": "api.example.com", "name": "strict" },
{ "hostname": "uploads.example.com", "limits": { "maxBodyMb": 2048 } }
]
}
Block one address on one hostname with a change, POST …/gateway/security/changes:
{
"change": {
"op": "blockSource",
"sources": ["198.51.100.7"],
"hostnames": ["shop.example.com"]
}
}