Skip to content
Skills Library
Programming · Planning

explicit-key-dimension-policy

/explicit-key-dimension-policy

Write down which request dimensions belong in the cache key and which must be excluded, so key composition becomes a reviewed decision rather than an inherited default. Use when key composition was discovered by probing and no reviewed document says what the key should contain

Repository
edgescout ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Write down which request dimensions belong in the cache key and which must be excluded, so key composition becomes a reviewed decision rather than an inherited default. Use when key composition was discovered by probing and no reviewed document says what the key should contain

Original author description

Write down which request dimensions belong in the cache key and which must be excluded, so key composition becomes a reviewed decision rather than an inherited default. Use when key composition was discovered by probing and no reviewed document says what the key should contain

How it works

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Original SKILL.md headings · 65 lines, 414 words
SKILL.md preview
---
name: explicit-key-dimension-policy
description: "Write down which request dimensions belong in the cache key and which must be excluded, so key composition becomes a reviewed decision rather than an inherited default. Use when key composition was discovered by probing and no reviewed document says what the key should contain"
pack: edgescout
version: 1.0.0
category: web-app
tags: [harden, cache-key, policy]
---

# Explicit Key Dimension Policy

> Write down which request dimensions belong in the cache key and which must be excluded, so key composition becomes a reviewed decision rather than an inherited default

**Use when:** key composition was discovered by probing and no reviewed document says what the key should contain

**Avoid when:** the owner already maintains a reviewed key policy that matches observed behaviour

## Procedure

1. List every dimension observed during fingerprinting and audit, marking each proven keyed, unkeyed or unknown.
2. For each dimension decide whether it must be in the key because it changes content, or excluded because it never does.
3. Write the resulting policy as a short table with one row per dimension and the reason for its placement.
4. Require that identity-bearing dimensions be present in the key wherever storage is permitted on that path.
5. Route unknown dimensions to a conservative default, either excluded from key and not stored, or keyed and documented.
6. Have the owner review and store the table beside the configuration, so a later change can be checked against it.

## Signals

- Key composition is known only to whoever last edited the vendor console
- Dimensions proven non-contributing are still splitting entries
- An unknown dimension sits in the key with no recorded reason
- Identity dimensions are absent from the key on a path that stores responses

## Patterns

**1. Policy table**

```text
dimension | placement | reason
path | in key | changes content
authorization | in key | selects identity
utm params | excluded | never changes output
x-forwarded-host | excluded and rejected | untrusted input
```

**2. Unknown default**

```text
unknown dimension -> treat as content-changing and key it, unless the owner explicitly accepts the storage cost of the alternative
```

**3. Review line**

```text
policy reviewed by <role> on <date>; every later configuration diff must explain a row it changes
```

## Pitfalls

- Writing a policy that describes current behaviour rather than what the behaviour should be
- Allowing an unknown dimension to stay in the key silently, which hides its capacity cost
- Leaving identity dimensions out of the key on a path whose responses are personalized

## Done when

- A policy table covers every dimension observed with placement and reason per row
- The owner has reviewed the table and it sits beside the configuration source

## References

- [IETF RFC 9111 - Vary and cache keys](https://www.rfc-editor.org/rfc/rfc9111)
- [OWASP - Configuration management](https://owasp.org/www-project-application-security-verification-standard/)

Versions

The database has no other skills named explicit-key-dimension-policy.

Database snapshot: 13.11.2026 · package version 86efe19759b2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100query-parameter-key-composition-audit
    Determine which query parameters separate stored copies and which are ignored, including the tracking and decoration parameters that frequently sit outside the key. Use when a path accepts query parameters and the key statement has not yet classified them as keyed or unkeyed

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.