# Trust Header Privilege Boundary

> Verify user-identity conclusions are not amplified through operations that believe a coordinator, proxy or internal caller's claim without seeing its proof. Use when your stack has inter-service calls where one service's decision feeds another's authorization, especially with mismatched header chains

- Skill: `wsh7ash/trust-header-privilege-boundary` (Agent Skill)
- Install (CLI): `npx get-skill add wsh7ash/trust-header-privilege-boundary`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wsh7ash/trust-header-privilege-boundary/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Wsh7Ash (https://skillmd.com/u/wsh7ash)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/wsh7ash/trust-header-privilege-boundary

---


# Trusted Header Privilege Boundary

> Verify user-identity conclusions are not amplified through operations that believe a coordinator, proxy or internal caller's claim without seeing its proof

**Use when:** your stack has inter-service calls where one service's decision feeds another's authorization, especially with mismatched header chains

**Avoid when:** no inter-service path reaches the operation, so there is no second caller whose trust you must assess

## Procedure

1. Map internal endpoints reachable from your network beneficiary path, provided externally via gateways and edges.
2. For each internal route, identify which upstream caller behavior is trusted and whether the credential holds proof.
3. Compare internal service authentication styles: mTLS, signed headers, shared token and none, then rank trust strength.
4. Verify whether externally reachable internal paths re-check caller identity or merely assume it.
5. Check cross-region, cross-cluster and preview environment setups where the same route may have separate trust sets.
6. Record what would happen if a component between the edge and the operation were removed, and whether the operation would still honor its check.

## Signals

- A service computes altitude or membership from a header that an external requester can also form.
- Two environments share a route, but one re-verifies identity while the other trusts a network construct.
- Cross-service cookies, tokens or flows issues surface in the internal response surface that the public one never sells.
- Per-request pricing decisions, rate limits or quotas sit on trust you have just labeled weak.

## Patterns

**1. Trust table**

```text
svc        | auth           | proof
orders     | mTLS           | cert CN
pricing    | shared token   | none -> token holds only 1 domain
```

**2. Authz test**

```text
credential external to svc-A calling svc-B absorbed path -> refusal expected
```

**3. Result row**

```text
route=/internal/* externally-reachable=yes trusted-style=header-assumed finding=yes
```

## Pitfalls

- Benchmarking internal routes from the only network position you control, then assuming the external posture is similar.
- Trusting DNS-based separation rather than cryptographic identity when measuring the internal service boundary.
- Assuming one environment's authorization applies to its staging or preview twin, which often diverges silently.

## Done when

- Every internal route that affects operation-level authorization has a documented trust style and proof level.
- External reachability of internal paths is tested and each route re-verifies identity with cryptographic proof where it matters.

## References

- [OWASP - authentication and access control cheatsheet](https://cheatsheetseries.owasp.org/)
- [API security - internal vs external trust boundary design](https://owasp.org/)

