⚙️ JSONNET RUNE DIFFICULTY: Adept Structural

The Proxy of Jsonnet

Controlling access or transforming data before output.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Abjuration // Guardian Ward
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// JSONNET PATTERN //
local RealConfig = {
  secret_key: "super-secret",
  public_key: "public-key"
};

local SafeProxy(config) = {
  public_key: config.public_key,
  secret_key: "REDACTED"
};

{
  exported_config: SafeProxy(RealConfig)
}

The Proxy pattern intercedes before configuration manifestation, perhaps masking secrets or verifying types, serving as a protective ward over the true data.

Runic Tags: #structural #proxy #jsonnet