Command Palette

Search for a command to run...

Назад к скиллам
скилл № 26230

shared-datastore-provisioning

Use whenever a Fuze service needs a production database, S3/MinIO/object-store allocation, missing runtime credentials, or a sealed credential handoff…

БесплатноБез исполняемых скриптов
FuzeOneот FuzeOne★ 18 звёзд на GitHub

Установить shared-datastore-provisioning в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Shared datastore provisioning

FuzeInfra owns the shared database engines, object storage, and provisioning. A consumer owns its schema, migrations, connection configuration, bucket/prefix usage, and deployment. When hosting exposes a missing role, database, bucket/prefix, or credential, include provisioning in the implementation and drive it through FuzeInfra's existing workflows. Do not finish with an infra handoff document when the authorized workflows can complete that handoff.

1. Discover the current contract before declaring a blocker

Consult fuzeinfra-expert and read the current default branch of izzywdev/FuzeInfra:

  • docs/consuming-repos/POSTGRES_PROVISIONING.md, docs/consuming-repos/MONGODB_PROVISIONING.md, and the current object-storage consumer guide/allocation registry for connection and tenancy details.
  • helm/fuzeinfra/templates/service-db-provisioning.yaml and service-mongo-provisioning.yaml, plus values-contabo.yaml, for the actual provisioning contract. Postgres uses serviceDatabases; MongoDB uses serviceMongoDatabases. Both have idempotent PostSync Jobs.
  • governance/datastore-allocations.md, object-storage allocation registry, governance/credential-handoff.json, and docs/CREDENTIAL_HANDOFF.md for existing allocations and authorized source-to-consumer mappings.
  • .github/workflows/, docs/SECRETS_MANAGEMENT.md, docs/SECURE_AGENT_SECRET_HANDOVER.md, and the capability registry for provisioning, sealing, handoff, and verification operations.

Read each selected workflow's inputs, permissions, guards, and output contract before dispatch. Discover product-specific or newly added workflows too; these examples are not a complete catalog. Where older prose describes imperative psql or Mongo init scripts, follow the current declarative templates and reviewed workflow. A local credential failure does not establish that FuzeInfra's runner lacks the capability.

2. Choose the backing service from the data requirements

Use the backing service already required by the service's frozen contract and migrations. For a new model, use Postgres for relational entities, constraints, transactions, approval state, and revision metadata; JSONB can hold flexible frame/flow documents without a second engine. Choose MongoDB when access patterns require document aggregates and the implementation already uses MongoDB. Use the shared S3/MinIO service for immutable artifacts, UX bundles, uploads, and rendered evidence; isolate tenants with a service/tenant-scoped bucket or prefix, least-privilege policy, and a runtime allocation rather than an app-managed bucket credential. Record the choice in the service plan. Provision multiple backing services only for distinct justified workloads. Never add a private database or object-store server to a consumer chart because its shared allocation is missing.

3. Preserve the two-namespace credential invariant

Generate one credential inside the owning workflow and seal that same credential for both consumers:

  1. The provisioning Job's input in namespace fuzeinfra, normally <service>-db-credentials with key password.
  2. The app's runtime Secret in its own namespace, with exactly the keys its chart references (DATABASE_URL and/or DB_* for Postgres; configured MongoDB URI/password keys and the correct authSource for MongoDB).

Strict-scope SealedSecret ciphertext is bound to namespace and Secret name; copying ciphertext to another namespace does not re-seal it. Seal twice from one source, or use the authorized publisher to derive the consumer URI from that source. Independently generated passwords will not authenticate.

The FuzeInfra password SealedSecret and the allocation's enabled: true change must land in the same FuzeInfra PR. Postgres mounts every enabled password non-optionally: one absent Secret can block every service's provisioning. Apply the same prerequisite to MongoDB entries with managePassword: true (the default); managePassword: false is for an existing user and cannot create a new one. Preserve existing entries when editing Helm lists: an overlay replaces a list instead of merging it.

Put app ciphertext in a source Argo actually renders (e.g. a chart template when the Application renders only that chart), and match the consumer's actual default branch. A sealed file outside the Application's sources never reaches the cluster. Establish the reviewed app manifest before using a publisher that requires it to exist. Add allocations and handoff mappings under FuzeInfra review; source-to-target mappings are grants, not arbitrary caller inputs.

4. Execute the workflow, PR, and GitOps path

Delegate FuzeInfra-owned changes to its authorized agent or @fuze handler with app, engine, namespace, manifest path, required key names, and acceptance checks. Existing authorization to provision/deploy remains valid; do not ask again

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл shared-datastore-provisioning?

Use whenever a Fuze service needs a production database, S3/MinIO/object-store allocation, missing runtime credentials, or a sealed credential handoff. Discovers FuzeInfra's Postgres/Mongo/object-storage provisioning and sealing workflows, selects the backing service from the contract, preserves the two-namespace password invariant where applicable, drives the reviewed GitOps change and credential handoff, and verifies the running service. Missing local kubeconfig or secret-admin access is a delegation step, not a reason to ask the user to provision it manually.

Как установить скилл shared-datastore-provisioning?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл shared-datastore-provisioning запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить shared-datastore-provisioning с