REA Loki Gateway notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Loki Gateway config trees (nginx gateway / basic-auth / X-Scope-OrgID routing) record multi-tenant Loki edge identity. In REA 6.7.x, treat selected gateway and tenant labels as Evidence beside archive/package routes — complementing Loki / rules cousins without inventing APIs. Distinct from rea-loki (gateway ≠ Loki core) and rea-loki-rules (gateway ≠ rules).

Mental model

  1. Authorize the Loki Gateway config tree (+ packaged charts you hold).
  2. Quote selected nginx / auth / tenant labels you actually see (never paste htpasswd or tokens).
  3. Cousins → loki · loki-rules · alloy-config · fluent-bit.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_loki_gateway API REA never called.

Minimal path

# authorized Loki Gateway / nginx / auth files (+ charts you hold)
# quote selected gateway / tenant labels into case notes
# cousins → peer Loki / rules / Alloy lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_loki_gateway .

Compare

ArtifactHonest posture
gateway nginx / auth / tenantGateway identity facts
Peerrea-loki
Peerrea-loki-rules
Not thisrea-alloy-config (Alloy zoom)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote selected upstream hostnames, auth strategy labels, and tenant header names — enough for most Evidence binders.
  • htpasswd material, tenant tokens, and TLS keys are secrets — record key names only.
  • Keep Gateway identity distinct from Loki core / rules trees in case notes.
  • Chart image tag pins are identity Evidence — label them separately from cousin pages.
  • Select keys are useful inventory — quote them without inventing REA helpers for live Gateway admission.

Scope we will not cover

  • No inventing inspect_loki_gateway / automatic queries against foreign tenants.
  • No credential theft from htpasswd material or tenant tokens.
  • No pirate redistribution of proprietary Gateway trees.
  • No crack framing via Gateway pins.
  • No cookbooks that weaken multi-tenant gateway auth on foreign accounts.
  • No using Loki Gateway as an unauthorized log-scraping guide against accounts you do not own.

Honest limits

RepoRead documents config literacy — how authorized Loki Gateway trees relate to Evidence — not a full Loki course. Prefer upstream Grafana Loki docs for gateway; use rea-loki for Loki core identity. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-loki / rea-loki-rules / rea-alloy-config / rea-fluent-bit?

rea-loki covers Loki. rea-loki-rules covers Loki rules. rea-alloy-config covers Alloy. rea-fluent-bit covers Fluent Bit. This page zooms on Loki Gateway / tenant auth identity — it does not overwrite those pages.

Is there inspect_loki_gateway in 6.7.0?

Not assumed. Quote gateway nginx / basic-auth / tenant labels you actually open, then use documented package/archive lanes. Do not invent inspect_loki_gateway.

Does REA call Loki Gateway APIs or steal tenant credentials?

No. Local trees only. Redact basic-auth htpasswd material, tenant tokens, and TLS keys; do not treat REA as a Loki Gateway runner. No credential theft.

How should I label Evidence vs Loki / rules configs?

Label Evidence by the file present. Keep Gateway tenant/auth labels separate from rea-loki and rea-loki-rules.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources