the log and metrics stores ask every request for a credential the gateway supplies
Each store runs with -httpAuth.* and a credential from the secret store, published to the namespace as a Secret by the host. The gateway's locations send it after auth_request has passed, and the collector's scrape and push take the same one, so a process on the node that bypasses the gateway is refused.
This commit is contained in:
parent
ba0df0ec82
commit
f54aae7927
1 changed files with 808 additions and 72 deletions
|
|
@ -105,8 +105,9 @@ whether or not that host runs the collector.
|
|||
|
||||
Neither is reachable except through the gateway: Grafana listens on a unix
|
||||
socket only the gateway's nginx can open, and VictoriaMetrics behind a Service
|
||||
that admits only the host's own traffic. VictoriaMetrics authenticates nothing
|
||||
itself; the `metrics.<swarm-domain>` vhost does it:
|
||||
that admits only the host's own traffic. VictoriaMetrics asks every request for
|
||||
a credential of its own, which the gateway's nginx supplies once the
|
||||
`metrics.<swarm-domain>` vhost has checked the caller:
|
||||
|
||||
- **The read API** (the Prometheus query, series, label and metadata
|
||||
routes): Grafana's datasource, an agent, or an operator. Grafana sends a
|
||||
|
|
@ -186,11 +187,12 @@ swarm.
|
|||
| `swarm.victorialogs.domain` | Only to rename it. |
|
||||
|
||||
It runs as a pod in the host's cluster ([the log store](../k8s/runtime.md#the-log-store))
|
||||
and binds no host port. Its Service takes no credential of its own, so a
|
||||
NetworkPolicy lets only the host's own traffic reach it. The gateway vhost, which
|
||||
dials the Service by name, is the only way in for a hive, an agent or a
|
||||
browser, and the collector is the only intended writer. A process on this host
|
||||
can also reach the Service; see [Agent security](../../2-handbook/agents/security.md).
|
||||
and binds no host port. A NetworkPolicy lets only the host's own traffic reach its
|
||||
Service, and the store asks every request for a credential of its own
|
||||
([the stores' listener credential](../k8s/runtime.md#the-stores-listener-credential)).
|
||||
The gateway vhost, which dials the Service by name and supplies that credential
|
||||
after its own checks, is the way in for a hive, an agent or a browser, and the
|
||||
collector is the only intended writer.
|
||||
|
||||
**Who may query.** `/select/logsql/` takes one of three credentials. An
|
||||
agent presents its `swarm-agent.<agent>.<secret>` bearer, checked by
|
||||
|
|
|
|||
Loading…
Reference in a new issue