The ConfigStore interface, its implementations, and how to add a new dialect.
See Config Store for the concept and Config Store (Admin) for deploying one. This page is for contributors working on Proxy Hopper’s own codebase — implementing a new ConfigStore, or touching ProxyRepository’s storage layer.
The interface
python_modules/proxy-hopper/src/proxy_hopper/config_store/base.py, sibling to backend/base.py:
entity_type is "target", "provider", or "pool" — the three kinds ProxyRepository handles. static/mutable mirror the same flags already carried on TargetConfig/ProxyProvider/IpPool; storing them as first-class ConfigEntity fields (not just inside data) lets ProxyRepository’s guard checks (if existing.static: raise ...) read them without deserializing the full stored object.
updated_at is naive UTC in every implementation, by convention — not timezone-aware. SQLite’s DATETIME column type doesn’t reliably round-trip tz-aware Python datetimes, so every implementation normalizes to naive UTC rather than having that inconsistency surface only on one dialect.
Implementations
MemoryConfigStore (config_store/memory.py, core package) — a dict-of-dicts, keyed by (entity_type, name). Test-only: SqlConfigStore with SQLite strictly dominates it for real deployments (same zero-external-dependency property, but actually durable across restarts), so this is never exposed as a CLI/chart option — it’s what configStoreUrl defaults to when unset. Deep-copies data on both set() and get()/list(), so callers can’t mutate the store’s internal state through a returned ConfigEntity, or corrupt it by later mutating a dict they’d previously passed to set() — a real store gets this isolation for free from its JSON serialization round-trip; this in-memory double has to do it explicitly to behave the same way.SqlConfigStore (proxy_hopper_sql/config_store.py, separate proxy-hopper-sql package) — SQLite or Postgres via a SQLAlchemy async engine. Dialect is disambiguated entirely by the connection URL’s scheme (sqlite+aiosqlite:// vs postgresql+asyncpg://) — no separate “store type” field, mirroring how redis_url alone already selects the Redis backend elsewhere in this codebase. The schema (proxy_hopper_sql/schema.py) is SQLAlchemy Core, not raw SQL strings and not the ORM — one config_entities table, composite primary key (entity_type, name).
proxy-hopper-sql is optional, like proxy-hopper-redis — the core proxy-hopper package must never import it at module scope. Every reference to it (in cli.py’s migrate command graft, and in wiring.py’s build_repo()) is a lazy import inside a function, guarded by try/except ImportError, exactly like the existing Redis backend wiring.
Migrations
proxy_hopper_sql/alembic/ holds the Alembic scaffold; proxy_hopper_sql/migrations.py wraps alembic.command programmatically (upgrade/downgrade/heads) — the migrate CLI command and the Helm chart’s migration Job/initContainer both call this, never the alembic binary directly.On Postgres, upgrade() wraps the actual migration in pg_advisory_lock/pg_advisory_unlock, so concurrent migrate invocations against the same database (e.g. two pods racing the same Helm migration Job) serialize instead of racing each other into a duplicate-table error on a fresh database. Not needed for SQLite — a single-writer local file already serializes.
Adding a new dialect
SQLAlchemy already supports far more dialects than SQLite/Postgres — adding one (MySQL, for instance) is mostly a matter of:
Add the async driver to proxy-hopper-sql’s dependencies.
Confirm SqlConfigStore’s engine construction (create_async_engine(url)) needs no dialect-specific branching — it shouldn’t, since the query layer is SQLAlchemy Core throughout.
Add an entry to the contract suite’s _STORE_FACTORIES (see below) and, if the CI service container needs new infrastructure, extend ci.yml’s helm-lint/test jobs accordingly.
Extend the Helm chart’s configStore.dialect enum and its migration-mechanism branch — Postgres-shaped dialects likely fit the existing Job pattern; anything requiring a local file follows the SQLite initContainer+PVC pattern instead.
Testing
Every ConfigStore implementation is exercised against the same test bodies via a shared contract suite, parametrized over a _STORE_FACTORIES dict — the same pattern the Backend contract tests use for memory/redis:
python_modules/proxy-hopper/tests/test_config_store_contract.py — the interface contract itself, memory only. Lives in the core package’s own test suite since it has no cross-package dependency.
python_modules/tests/test_config_store_contract.py — the same contract, plus sqlite and postgres (gated on a POSTGRES_URL environment variable, mirroring the existing REDIS_URL/fakeredis pattern). Lives in this cross-package project, not in proxy-hopper/tests/, specifically so that exercising SqlConfigStore doesn’t make the core package’s own test suite depend on proxy-hopper-sql.
python_modules/tests/test_repository_config_store_contract.py — ProxyRepository CRUD and the provider→pool→target cascade, proven across the same memory/sqlite/postgres set, for the same reason.
python_modules/proxy-hopper-sql/tests/ — package-specific tests: schema creation, upgrade/downgrade/upgrade round-trips, the CI multi-head guard, and (Postgres-gated) the pg_advisory_lock concurrency test.
Adding sqlite or postgres support to some new piece of test coverage almost never means writing a new test file — it means adding one factory entry to whichever _STORE_FACTORIES dict already fits, and every existing test in that file runs against the new implementation automatically.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Proxy Hopper","colors":{"primary":"#0D9488","light":"#14B8A6","dark":"#0F766E"},"logo":{"light":"https://mintcdn.com/none-7f946ec7/SWuRMFjHS-bIuE4k/logo/light.svg?fit=max\u0026auto=format\u0026n=SWuRMFjHS-bIuE4k\u0026q=85\u0026s=5abd12b864402f5718d8e6c4c050a7eb","dark":"https://mintcdn.com/none-7f946ec7/SWuRMFjHS-bIuE4k/logo/dark.svg?fit=max\u0026auto=format\u0026n=SWuRMFjHS-bIuE4k\u0026q=85\u0026s=be82908d065bdcbd1b8a4addd2e9ef0d"},"favicon":"https://mintcdn.com/none-7f946ec7/0XOkrxAr6OFU4K10/favicon.svg?fit=max\u0026auto=format\u0026n=0XOkrxAr6OFU4K10\u0026q=85\u0026s=8bf0ba7969cf1670d8f0f5d240951990","navbar":{"links":[{"href":"https://github.com/cams-data/proxy-hopper-v2","label":"GitHub"}],"primary":{"type":"button","label":"Releases","href":"https://github.com/cams-data/proxy-hopper-v2/releases"}},"footer":{"socials":{"github":"https://github.com/cams-data/proxy-hopper-v2"}},"styling":{"codeblocks":{},"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/cams-data/proxy-hopper-v2"},{"anchor":"Releases","icon":"tag","href":"https://github.com/cams-data/proxy-hopper-v2/releases"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"none-7f946ec7","hasAudioNarration":false,"actualSubdomain":"none-7f946ec7","customDomains":["proxy-hopper.io"],"gitSource":{"type":"github","owner":"cams-data","repo":"proxy-hopper-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae954c3dbcba01b9ab5088b:success","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Documentation","count":36},{"language":"default","tag":"For Administrators","count":19},{"language":"default","tag":"Concepts","count":7},{"language":"default","tag":"Authentication","count":6},{"language":"default","tag":"Deployment","count":6},{"language":"default","tag":"For Contributors","count":4},{"language":"default","tag":"For Developers","count":4},{"language":"default","tag":"Kubernetes","count":3},{"language":"default","tag":"Admin Server","count":2},{"language":"default","tag":"SSO Guides","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar>div{max-width:100%}:root[data-page-mode=\"custom\"] #search-bar-entry,:root[data-page-mode=\"custom\"] #assistant-entry{display:none}#sidebar{left:10px}#sidebar-content{padding-left:1.5rem}:root:not([data-page-mode=\"custom\"]) div:has(>#sidebar){max-width:104rem!important}.overview-page{max-width:1032px;margin:0 auto;padding:0 24px;color:var(--ot-fg)}.overview-hero{text-align:center;padding:60px 0 40px}.overview-hero-logo{height:80px;margin:0 auto 24px;display:block;cursor:default;pointer-events:none}.logo-dark{display:none}.dark .logo-dark{display:block}.dark .logo-light{display:none}.overview-hero p{font-size:1.25rem;max-width:600px;margin:0 auto 32px;opacity:0.7}.overview-hero-buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.btn-primary{background:#0D9488;color:white!important;padding:10px 24px;border-radius:8px;font-weight:600;text-decoration:none!important}.btn-secondary{border:1px solid #0D9488;color:#0D9488!important;padding:10px 24px;border-radius:8px;font-weight:600;text-decoration:none!important}.overview-tagline{display:flex;gap:24px;justify-content:center;flex-wrap:wrap;padding:20px 0 32px;font-size:0.9rem;opacity:0.7}.overview-tagline .dot{color:#0D9488;margin-right:8px;font-size:1.2em}h1,h2,h3,h4{color:#111827}.dark h1,.dark h2,.dark h3,.dark h4{color:#e5e7eb}.overview-page h2{font-size:2.2rem;font-weight:800;text-align:center;margin-bottom:12px;letter-spacing:-0.02em}.overview-page h2.mb-lg{margin-bottom:32px}.overview-page>p,.overview-page>hr+p{text-align:center;max-width:640px;margin-left:auto;margin-right:auto}.overview-page hr{border:none;border-top:1px solid rgba(148, 163, 184, 0.2);margin:64px 0}.overview-page hr.hr-top{margin:0 0 64px}.overview-page p{margin-bottom:16px}.overview-page p.mb-lg{margin-bottom:24px}.overview-page p.mb-xl{margin-bottom:40px}.overview-diagram{width:100%;border-radius:12px;margin:0 0 24px}.overview-table{width:100%;border-collapse:collapse;margin-bottom:24px;font-size:0.9rem}.overview-table thead tr{border-bottom:1px solid rgba(148, 163, 184, 0.3)}.overview-table th{text-align:left;padding:10px 12px;font-weight:600}.overview-table td{padding:10px 12px}.overview-table tbody tr{border-bottom:1px solid rgba(148, 163, 184, 0.15)}.overview-table tbody tr:last-child{border-bottom:none}.overview-page a.accent{color:#0D9488}#sidebar-group>li[data-group-tag=\"\"]>button{font-weight:600;color:#111827;margin-top:0.5rem;padding-top:0.25rem;padding-bottom:0.25rem;border-radius:0;pointer-events:none;cursor:default;background:transparent!important}#sidebar-group>li[data-group-tag=\"\"]>button>div:last-child{display:none}.dark #sidebar-group>li[data-group-tag=\"\"]>button{color:#e5e7eb}.sidebar-group-header{font-size:1rem;font-weight:700}.sidebar-group-header h5{color:#030712}.dark .sidebar-group-header h5{color:#f9fafb}"}]}
{"page":{"pagePath":"contributors/config-store","slug":"/contributors/config-store","pageMetadata":{"title":"Config Store","description":"The ConfigStore interface, its implementations, and how to add a new dialect.","href":"/contributors/config-store"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The ConfigStore interface, its implementations, and how to add a new dialect.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/concepts/config-store`,children:`Config Store`}),` for the concept and `,_jsx(_components.a,{href:`/admin/deployment/config-store`,children:`Config Store (Admin)`}),` for deploying one. This page is for contributors working on Proxy Hopper’s own codebase — implementing a new `,_jsx(_components.code,{children:`ConfigStore`}),`, or touching `,_jsx(_components.code,{children:`ProxyRepository`}),`’s storage layer.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-interface`,children:`The interface`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`python_modules/proxy-hopper/src/proxy_hopper/config_store/base.py`}),`, sibling to `,_jsx(_components.code,{children:`backend/base.py`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`@dataclass`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ConfigEntity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` name: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`dict`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` static: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`bool`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mutable: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`bool`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` updated_at: datetime `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# naive UTC — see note below`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ConfigStore`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`ABC`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`...`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` stop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`...`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entity_type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> ConfigEntity `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`...`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entity_type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`dict`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`static`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`bool`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mutable`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`bool`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`...`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` delete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entity_type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`None`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`...`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` list`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entity_type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) -> list[ConfigEntity]: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`...`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`entity_type`}),` is `,_jsx(_components.code,{children:`\"target\"`}),`, `,_jsx(_components.code,{children:`\"provider\"`}),`, or `,_jsx(_components.code,{children:`\"pool\"`}),` — the three kinds `,_jsx(_components.code,{children:`ProxyRepository`}),` handles. `,_jsx(_components.code,{children:`static`}),`/`,_jsx(_components.code,{children:`mutable`}),` mirror the same flags already carried on `,_jsx(_components.code,{children:`TargetConfig`}),`/`,_jsx(_components.code,{children:`ProxyProvider`}),`/`,_jsx(_components.code,{children:`IpPool`}),`; storing them as first-class `,_jsx(_components.code,{children:`ConfigEntity`}),` fields (not just inside `,_jsx(_components.code,{children:`data`}),`) lets `,_jsx(_components.code,{children:`ProxyRepository`}),`’s guard checks (`,_jsx(_components.code,{children:`if existing.static: raise ...`}),`) read them without deserializing the full stored object.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`updated_at`}),` is naive UTC in every implementation, by convention — not timezone-aware. SQLite’s `,_jsx(_components.code,{children:`DATETIME`}),` column type doesn’t reliably round-trip tz-aware Python datetimes, so every implementation normalizes to naive UTC rather than having that inconsistency surface only on one dialect.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`implementations`,children:`Implementations`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`MemoryConfigStore`})}),` (`,_jsx(_components.code,{children:`config_store/memory.py`}),`, core package) — a dict-of-dicts, keyed by `,_jsx(_components.code,{children:`(entity_type, name)`}),`. Test-only: `,_jsx(_components.code,{children:`SqlConfigStore`}),` with SQLite strictly dominates it for real deployments (same zero-external-dependency property, but actually durable across restarts), so this is never exposed as a CLI/chart option — it’s what `,_jsx(_components.code,{children:`configStoreUrl`}),` defaults to when unset. Deep-copies `,_jsx(_components.code,{children:`data`}),` on both `,_jsx(_components.code,{children:`set()`}),` and `,_jsx(_components.code,{children:`get()`}),`/`,_jsx(_components.code,{children:`list()`}),`, so callers can’t mutate the store’s internal state through a returned `,_jsx(_components.code,{children:`ConfigEntity`}),`, or corrupt it by later mutating a dict they’d previously passed to `,_jsx(_components.code,{children:`set()`}),` — a real store gets this isolation for free from its JSON serialization round-trip; this in-memory double has to do it explicitly to behave the same way.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`SqlConfigStore`})}),` (`,_jsx(_components.code,{children:`proxy_hopper_sql/config_store.py`}),`, separate `,_jsx(_components.code,{children:`proxy-hopper-sql`}),` package) — SQLite or Postgres via a SQLAlchemy async engine. Dialect is disambiguated entirely by the connection URL’s scheme (`,_jsx(_components.code,{children:`sqlite+aiosqlite://`}),` vs `,_jsx(_components.code,{children:`postgresql+asyncpg://`}),`) — no separate “store type” field, mirroring how `,_jsx(_components.code,{children:`redis_url`}),` alone already selects the Redis backend elsewhere in this codebase. The schema (`,_jsx(_components.code,{children:`proxy_hopper_sql/schema.py`}),`) is SQLAlchemy Core, not raw SQL strings and not the ORM — one `,_jsx(_components.code,{children:`config_entities`}),` table, composite primary key `,_jsx(_components.code,{children:`(entity_type, name)`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`proxy-hopper-sql`}),` is optional, like `,_jsx(_components.code,{children:`proxy-hopper-redis`}),` — the core `,_jsx(_components.code,{children:`proxy-hopper`}),` package must never import it at module scope. Every reference to it (in `,_jsx(_components.code,{children:`cli.py`}),`’s `,_jsx(_components.code,{children:`migrate`}),` command graft, and in `,_jsx(_components.code,{children:`wiring.py`}),`’s `,_jsx(_components.code,{children:`build_repo()`}),`) is a lazy import inside a function, guarded by `,_jsx(_components.code,{children:`try`}),`/`,_jsx(_components.code,{children:`except ImportError`}),`, exactly like the existing Redis backend wiring.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`migrations`,children:`Migrations`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`proxy_hopper_sql/alembic/`}),` holds the Alembic scaffold; `,_jsx(_components.code,{children:`proxy_hopper_sql/migrations.py`}),` wraps `,_jsx(_components.code,{children:`alembic.command`}),` programmatically (`,_jsx(_components.code,{children:`upgrade`}),`/`,_jsx(_components.code,{children:`downgrade`}),`/`,_jsx(_components.code,{children:`heads`}),`) — the `,_jsx(_components.code,{children:`migrate`}),` CLI command and the Helm chart’s migration Job/initContainer both call this, never the `,_jsx(_components.code,{children:`alembic`}),` binary directly.`]}),`\n`,_jsxs(_components.p,{children:[`On Postgres, `,_jsx(_components.code,{children:`upgrade()`}),` wraps the actual migration in `,_jsx(_components.code,{children:`pg_advisory_lock`}),`/`,_jsx(_components.code,{children:`pg_advisory_unlock`}),`, so concurrent `,_jsx(_components.code,{children:`migrate`}),` invocations against the same database (e.g. two pods racing the same Helm migration Job) serialize instead of racing each other into a duplicate-table error on a fresh database. Not needed for SQLite — a single-writer local file already serializes.`]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-a-new-dialect`,children:`Adding a new dialect`}),`\n`,_jsx(_components.p,{children:`SQLAlchemy already supports far more dialects than SQLite/Postgres — adding one (MySQL, for instance) is mostly a matter of:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Add the async driver to `,_jsx(_components.code,{children:`proxy-hopper-sql`}),`’s dependencies.`]}),`\n`,_jsxs(_components.li,{children:[`Confirm `,_jsx(_components.code,{children:`SqlConfigStore`}),`’s engine construction (`,_jsx(_components.code,{children:`create_async_engine(url)`}),`) needs no dialect-specific branching — it shouldn’t, since the query layer is SQLAlchemy Core throughout.`]}),`\n`,_jsxs(_components.li,{children:[`Add an entry to the contract suite’s `,_jsx(_components.code,{children:`_STORE_FACTORIES`}),` (see below) and, if the CI service container needs new infrastructure, extend `,_jsx(_components.code,{children:`ci.yml`}),`’s `,_jsx(_components.code,{children:`helm-lint`}),`/`,_jsx(_components.code,{children:`test`}),` jobs accordingly.`]}),`\n`,_jsxs(_components.li,{children:[`Extend the Helm chart’s `,_jsx(_components.code,{children:`configStore.dialect`}),` enum and its migration-mechanism branch — Postgres-shaped dialects likely fit the existing `,_jsx(_components.code,{children:`Job`}),` pattern; anything requiring a local file follows the SQLite initContainer+PVC pattern instead.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`testing`,children:`Testing`}),`\n`,_jsxs(_components.p,{children:[`Every `,_jsx(_components.code,{children:`ConfigStore`}),` implementation is exercised against the same test bodies via a shared contract suite, parametrized over a `,_jsx(_components.code,{children:`_STORE_FACTORIES`}),` dict — the same pattern the `,_jsx(_components.code,{children:`Backend`}),` contract tests use for `,_jsx(_components.code,{children:`memory`}),`/`,_jsx(_components.code,{children:`redis`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`python_modules/proxy-hopper/tests/test_config_store_contract.py`}),` — the interface contract itself, `,_jsx(_components.code,{children:`memory`}),` only. Lives in the core package’s own test suite since it has no cross-package dependency.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`python_modules/tests/test_config_store_contract.py`}),` — the same contract, plus `,_jsx(_components.code,{children:`sqlite`}),` and `,_jsx(_components.code,{children:`postgres`}),` (gated on a `,_jsx(_components.code,{children:`POSTGRES_URL`}),` environment variable, mirroring the existing `,_jsx(_components.code,{children:`REDIS_URL`}),`/fakeredis pattern). Lives in this cross-package project, not in `,_jsx(_components.code,{children:`proxy-hopper/tests/`}),`, specifically so that exercising `,_jsx(_components.code,{children:`SqlConfigStore`}),` doesn’t make the `,_jsx(_components.em,{children:`core`}),` package’s own test suite depend on `,_jsx(_components.code,{children:`proxy-hopper-sql`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`python_modules/tests/test_repository_config_store_contract.py`}),` — `,_jsx(_components.code,{children:`ProxyRepository`}),` CRUD and the provider→pool→target cascade, proven across the same `,_jsx(_components.code,{children:`memory`}),`/`,_jsx(_components.code,{children:`sqlite`}),`/`,_jsx(_components.code,{children:`postgres`}),` set, for the same reason.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`python_modules/proxy-hopper-sql/tests/`}),` — package-specific tests: schema creation, upgrade/downgrade/upgrade round-trips, the CI multi-head guard, and (Postgres-gated) the `,_jsx(_components.code,{children:`pg_advisory_lock`}),` concurrency test.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Adding `,_jsx(_components.code,{children:`sqlite`}),` or `,_jsx(_components.code,{children:`postgres`}),` support to some new piece of test coverage almost never means writing a new test file — it means adding one factory entry to whichever `,_jsx(_components.code,{children:`_STORE_FACTORIES`}),` dict already fits, and every existing test in that file runs against the new implementation automatically.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{},"config":{},"pageMetadata":{"title":"Config Store","description":"The ConfigStore interface, its implementations, and how to add a new dialect.","href":"/contributors/config-store"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The interface","slug":"the-interface","depth":2,"children":[]},{"title":"Implementations","slug":"implementations","depth":2,"children":[]},{"title":"Migrations","slug":"migrations","depth":2,"children":[]},{"title":"Adding a new dialect","slug":"adding-a-new-dialect","depth":2,"children":[]},{"title":"Testing","slug":"testing","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"none-7f946ec7","siteName":"Proxy Hopper","title":"Config Store - Proxy Hopper","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-06T02:07:22.387Z","originalFileLocation":"contributors/config-store.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The ConfigStore interface, its implementations, and how to add a new dialect.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Proxy Hopper\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Config Store - Proxy Hopper\">\u003cmeta data-mint-head property=\"og:description\" content=\"The ConfigStore interface, its implementations, and how to add a new dialect.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Proxy Hopper\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://proxy-hopper.io/contributors/config-store\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://none-7f946ec7.mintlify.site/_mintlify/api/og/v2?division=For+Contributors\u0026amp;title=Config+Store\u0026amp;description=The+ConfigStore+interface%2C+its+implementations%2C+and+how+to+add+a+new+dialect.\u0026amp;theme=9bdfb25bc0eb7d40700bc661\u0026amp;signature=09290106317533fe0575288d58c578b7a3dcdc3e099aa078790f08bcf0568c23\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Config Store - Proxy Hopper\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The ConfigStore interface, its implementations, and how to add a new dialect.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://none-7f946ec7.mintlify.site/_mintlify/api/og/v2?division=For+Contributors\u0026amp;title=Config+Store\u0026amp;description=The+ConfigStore+interface%2C+its+implementations%2C+and+how+to+add+a+new+dialect.\u0026amp;theme=9bdfb25bc0eb7d40700bc661\u0026amp;signature=09290106317533fe0575288d58c578b7a3dcdc3e099aa078790f08bcf0568c23\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/none-7f946ec7/K02slITzrVCOaTTa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Proxy Hopper\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9488\">\u003clink data-mint-head rel=\"canonical\" href=\"https://proxy-hopper.io/contributors/config-store\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/contributors/config-store.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://proxy-hopper.io/#organization\",\"name\":\"Proxy Hopper\",\"url\":\"https://proxy-hopper.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/none-7f946ec7/SWuRMFjHS-bIuE4k/logo/light.svg?fit=max\u0026auto=format\u0026n=SWuRMFjHS-bIuE4k\u0026q=85\u0026s=5abd12b864402f5718d8e6c4c050a7eb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://proxy-hopper.io#website\",\"name\":\"Proxy Hopper\",\"url\":\"https://proxy-hopper.io\",\"publisher\":{\"@id\":\"https://proxy-hopper.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://proxy-hopper.io/contributors/config-store#webpage\",\"url\":\"https://proxy-hopper.io/contributors/config-store\",\"name\":\"Config Store\",\"description\":\"The ConfigStore interface, its implementations, and how to add a new dialect.\",\"dateModified\":\"2026-08-06T02:07:22.387Z\",\"isPartOf\":{\"@id\":\"https://proxy-hopper.io#website\"},\"breadcrumb\":{\"@id\":\"https://proxy-hopper.io/contributors/config-store#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://proxy-hopper.io/contributors/config-store#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"For Contributors\",\"item\":\"https://proxy-hopper.io/contributors/architecture\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Config Store\",\"item\":\"https://proxy-hopper.io/contributors/config-store\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://proxy-hopper.io/contributors/config-store#article\",\"headline\":\"Config Store\",\"name\":\"Config Store\",\"description\":\"The ConfigStore interface, its implementations, and how to add a new dialect.\",\"url\":\"https://proxy-hopper.io/contributors/config-store\",\"mainEntityOfPage\":{\"@id\":\"https://proxy-hopper.io/contributors/config-store#webpage\"},\"dateModified\":\"2026-08-06T02:07:22.387Z\",\"publisher\":{\"@id\":\"https://proxy-hopper.io/#organization\"},\"isPartOf\":{\"@id\":\"https://proxy-hopper.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Proxy Hopper\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Proxy Hopper\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/contributors/config-store.md","siteName":"Proxy Hopper","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/cams-data/proxy-hopper-v2"},{"anchor":"Releases","icon":"tag","href":"https://github.com/cams-data/proxy-hopper-v2/releases"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":""}]},{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quick Start","href":"/quickstart"}]},{"group":"Concepts","pages":[{"title":"Targets","href":"/concepts/targets"},{"title":"Proxy Providers","href":"/concepts/proxy-providers"},{"title":"IP Pools","href":"/concepts/ip-pools"},{"title":"Sending Requests","href":"/concepts/sending-requests"},{"title":"Client Identities","href":"/concepts/identities"},{"title":"Managed Auth","href":"/concepts/managed-auth"},{"title":"Config Store","href":"/concepts/config-store"}]},{"group":"For Administrators","pages":[{"group":"Configuration","expanded":true,"pages":[{"title":"Config Reference","href":"/admin/configuration/reference"},{"title":"Environment Variables","href":"/admin/configuration/environment-variables"}]},{"group":"Deployment","expanded":true,"pages":[{"group":"Docker","pages":[{"title":"Simple Docker Deployment","href":"/admin/deployment/docker/simple"},{"title":"Advanced Docker Deployment","href":"/admin/deployment/docker/advanced"}]},{"group":"Kubernetes","expanded":true,"pages":[{"title":"Deploying with Helm","href":"/admin/deployment/kubernetes/helm"},{"title":"High Availability","href":"/admin/deployment/kubernetes/high-availability"},{"title":"Monitoring","href":"/admin/deployment/kubernetes/monitoring"}]},{"title":"Config Store","href":"/admin/deployment/config-store"}]},{"group":"Authentication","expanded":true,"pages":[{"title":"Authentication Overview","href":"/admin/authentication/overview"},{"title":"API Key Authentication","href":"/admin/authentication/api-keys"},{"title":"User-Based Authentication","href":"/admin/authentication/user-based"},{"title":"SSO Authentication","href":"/admin/authentication/sso"},{"group":"SSO Guides","pages":[{"title":"Authentik","href":"/admin/authentication/sso-guides/authentik"},{"title":"Azure Active Directory","href":"/admin/authentication/sso-guides/azure"}]}]},{"group":"Admin Server","expanded":true,"pages":[{"title":"Admin Server","href":"/admin/admin-server/overview"},{"title":"GraphQL API","href":"/admin/admin-server/graphql"}]},{"group":"Token Server","expanded":true,"pages":[{"title":"Token Server","href":"/admin/token-server/overview"}]},{"group":"Observability","expanded":true,"pages":[{"title":"Prometheus Metrics","href":"/admin/observability/metrics"},{"title":"Logging","href":"/admin/observability/logging"}]}]},{"group":"For Developers","pages":[{"title":"Getting Started as a Developer","href":"/developers/getting-started"},{"title":"Migrating to Proxy Hopper","href":"/developers/migrating"},{"title":"Authenticating","href":"/developers/authenticating"},{"title":"Building a Token Server","href":"/developers/token-server"}]},{"group":"For Contributors","pages":[{"title":"Architecture","description":"How Proxy Hopper is structured internally — components, data flow, and design principles.","href":"/contributors/architecture"},{"title":"Config Store","href":"/contributors/config-store"},{"title":"Running Tests","description":"How to run the proxy-hopper test suites locally.","href":"/contributors/testing"},{"title":"Contributing","href":"/contributors/contributing"}]}]}]},"basePath":"","title":"Config Store - Proxy Hopper","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}