Garment.id
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
Home
Core APITenant APISupport CenterChangelog
Home
Core APITenant APISupport CenterChangelog
Github
Instagram
|
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Home
  • Introduction
  • 01 - Project Structure
  • 02 - Context Boundaries
  • 03 - Central Auth Runtime
  • 04 - Central Billing
  • 05 - Tenant Runtime
  • 06 - FE Integration Contracts
  • 07 - Security, Middleware, and RLS
  • 08 - Events, Jobs, Listeners, Notifications, Observers
  • 09 - Testing and Quality Gates
  • 10 - Operations Runbook
  • 11 - Architecture Decisions (ADR Ringkas)
  • 12 - API Endpoint Catalog (v1)
  • 13 - Class Catalog by Context
  • 14 - Feature Development Playbook
  • 15 - Migration and Model Conventions
  • 16 - Service, Support, and Trait Contracts
  • 17 - Auth Business Scenarios and Decision Tree
  • 18 - Config Reference and Impact
  • 19 - Migration and Model Cookbook
  • 20 - Billing and Provisioning Business Flows
  • 21 - FE Error Handling Matrix
  • 22 - Incident Playbooks
  • 23 - Data Ownership Matrix
  • 24 - Documentation Governance and Changelog
  • 25 - Tenant Authorization Backend Guide
Home
Core APITenant APISupport CenterChangelog
Home
Core APITenant APISupport CenterChangelog
Github
Instagram
|
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Home

18 - Config Reference and Impact

Dokumen ini memetakan file config inti, fungsi, dan dampaknya ke runtime.

Core Config Matrix#

ConfigAreaImpact UtamaRisiko Jika Salah
config/tenancy.phptenancyresolusi tenant/cluster behaviortenant context gagal, isolasi context rusak
config/hybrid.phphybrid data accesspolicy akses data central+tenantquery salah context, data inconsistency
config/permission.phpRBACnama tabel/kolom Spatie permissionauthz resolver tidak menemukan role/permission
config/sanctum.phptoken authtoken guard/stateful configlogin runtime gagal, token tidak valid
config/fortify.phpauth flowpassword reset/2FA behaviorflow auth tidak sesuai ekspektasi
config/billing.phpbilling domainfeature/usage/webhook/billing runtimebilling gate salah, webhook fail
config/subscription.phpsubscription policytrial, dunning, lifecycle policytrial/dunning transition salah
config/api.phpAPI envelope/loggingresponse envelope + API loggingobservability buruk, tracing sulit
config/audit.phpauditingaudit write/read behavioraudit trail hilang/tidak lengkap
config/database.phpDB connectioncentral/cluster connection mapquery ke DB salah, outage runtime
config/services.phpthird-party integrationOAuth/payment provider credentialscallback/webhook/provider auth gagal

config/tenancy.php (Detail)#

Key penting:
cluster_alerting.*
runtime alerting kapasitas cluster.
provisioning.provisioners
daftar class provisioner tenant yang dijalankan oleh TenantProvisioningOrchestrator.
default saat ini: TaxonomyProvisioner.
Contoh:
Dampak perubahan:
menambah class baru di list = menambah unit provisioning yang dieksekusi orchestrator.
urutan list menentukan urutan eksekusi.
class invalid / code duplikat akan melempar error saat orchestrator resolve.

Change Procedure#

1.
Ubah config di branch fitur.
2.
Dokumentasikan dampak di PR description.
3.
Jalankan test suite relevan.
4.
Update dokumen domain terkait.
5.
Untuk perubahan sensitif auth/billing, lakukan smoke test endpoint.

Config Smoke Test Commands#

Diubah pada 2026-03-03 22:25:30
Sebelumnya
17 - Auth Business Scenarios and Decision Tree
Berikutnya
19 - Migration and Model Cookbook
Built with