Per-endpoint security
A route's rule covers the whole route. When one API route exposes forty operations and three of them must be closed, the rule to write is per operation.
Infra > Endpoint security. Pick a route that exposes an OpenAPI spec: Meerkat fetches and parses the spec on the server, lists its operations - method, path, summary, tags - and lets you pose a rule on any of them. Swagger 2.0 and OpenAPI 3.x are both understood, in JSON or in YAML.
The spec is either published by your service, in which case it is a live reference re-read whenever the screen is opened, or a file deposited here, in which case it is a snapshot that changes only when you deposit another. The screen says which.
The two situations it exists for
You cannot change the application. A bought product, a service another team owns, a binary whose sources you do not have. Its authorisation is whatever its author decided, and you have no way to add a rule inside it. The rule goes in front of it instead: Meerkat refuses the call before the service is ever reached, so the application does not need to know it is protected.
You found a hole in production. An operation that should never have been open - a reindex, a purge, an export - answers anyone who knows its path, because the backend never checked. You do not deploy. You open this screen, pose the rule, and it holds on the next request.

The list comes straight from the route's OpenAPI description: method, path, summary and tags, exactly as the service declares them. The badge on the left is the rule in force, and the icons next to it say whether roles, named users or rate limits are attached.
| Badge | Rule in force |
|---|---|
AUTH |
Signed in |
TENANT |
In a tenant |
TENANT and a number |
In one of these tenants, the number counting the tenants named |
CAP |
With capabilities (on the route's own rule only) |
DENY |
Nobody |
| a dash | Anyone: delegated, the service decides |
Here, two operations carry a rule of their own. DELETE /orders/{id} is restricted to a role the backend knows nothing about - that is roles being prototyped in front of a service rather than wired into it. And POST /admin/reindex is closed to everybody, with one exception.

That is the production hole, shut: Nobody may call it, refused before the service is called, except the one operator who still has to run it. No deployment, no ticket to the team that owns the backend, no change in the application at all.
Close one operation
The production hole above, shut in five steps. You need the infra admin capability, and a route whose Target declares an OpenAPI spec.
- Open Infra > Endpoint security and pick the route in Route exposing an OpenAPI spec, at the top.
- Click the operation's row, here
POST /admin/reindex. Its drawer opens on Security, Who may call this operation. - Turn on Override the route's rule.
- Choose the level Nobody, then type the operator who still runs it under Users always allowed.
- Check: the footer reads All changes saved, and the row's badge reads
DENY. A call from anybody else is refused before the service is reached.
$ curl -i -X POST -H "Authorization: Bearer mk_..." https://apps.acme.example/api/orders/admin/reindex
HTTP/2 403
content-type: text/plain; charset=utf-8
forbidden: this endpoint is closed
There is no Save button: each change is written as you make it.
What a rule is
The same rule as a route's - level, tenants, roles, named users - plus a method and a path:
| Part | Values |
|---|---|
| Method | GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE, or * for any |
| Path | the path as the spec writes it: exact segments, {id} for one segment, ** as a last segment for everything below |
| The rule | see A route's access rule |
A rule may also carry rate limits of its own, and those are evaluated before the access rule - a flood is refused without a session being looked up.
/orders/{id} in the document is what you write, whatever the public path is./Admin/users and /admin/users alike (IIS, a case-insensitive file system, a framework set that way) is reached by a spelling no rule names, and that request falls back to the route's rule. For such a backend, close the route by default (Nobody) and open the operations one by one: a spelling nobody wrote then stays shut.Precedence: order, not specificity
The first rule in the list that matches wins. There is no most-specific-wins ranking. A rule for * on /** placed first would swallow everything under it, so put the general rules last.
An operation matched by no rule falls back to the route's own rule. To close by default - only what the list opens is reachable, and an endpoint the service ships next week stays shut - set the route's rule to Nobody and open the operations one by one.
Rules can open as well as close
An endpoint rule replaces the route's rule for that operation, in both directions. An override with nothing set is delegated, so it reopens an operation on a route that requires a session - which is how a public health check lives on an otherwise closed API.
Because of that, a route carrying endpoint rules does not apply its own rule while routes are being chosen: it would refuse a caller an override was about to let in. The route's rule is not lost - it is the fallback inside, for every operation no rule matched.
The spec itself is not hidden
When the spec is a file you deposited, the gateway serves it on the route, and it is served outside the endpoint rules: it carries the route's own rule instead. Per-operation rules decorate a contract, they do not conceal it - and a curl, Postman or a client generator all read it from the same URL.
What the application already requires
Many services say in their own spec which roles an operation needs: the roles are the scopes of the operation's security requirement, as libraries such as nestjs-granted or springdoc write them from the code's own checks:
"security": [{ "bearer": ["ROLE_ADMIN"] }]
The screen shows it in an Application requires column: the roles, Signed in for a requirement without a role, or Public for an operation the spec opens explicitly. In the first picture of this page it is the column in the middle, between Path and Tags, its chips drawn with a dashed outline. This is read-only knowledge. The application enforces it, not Meerkat: nothing here changes what the gateway lets through.
The developer's API docs (/meerkat/apidocs/) say it too, at the head of each operation's description, because swagger-ui shows a padlock for a bearer requirement but never its roles.
The roles the application declares
Declared roles, in the screen's header, lists every role the spec names and ties each one to the catalogue:
- New role: created in the catalogue under a prefix (the route's name and a hyphen by default,
orders-ROLE_ADMIN) and a tag (the route's name by default); - an existing role: whoever holds it holds the application's role;
- Not mapped: never forwarded.

Creating catalogue roles takes the right to write the catalogue (root or app admin); mapping onto existing roles takes only the route's.
Once a route maps its roles, its Auth forward sends, by default, the declared roles the caller holds, under the application's names: someone holding orders-ROLE_ADMIN reaches the service as ROLE_ADMIN, and the catalogue's other roles stay home. The roles expression behind it is {{.Roles | .Declared | join ","}}; .Declared composes with the other verbs, so {{.Roles | .Declared | json}} sends the same roles as a JSON array.