You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provider driver contract and operation allowlist #34
Drivers are interchangeable behind one interface and can build only read operations.
Requirements
REQ-DRV-001 Every driver MUST implement the ProviderDriver interface: endpoints, verify, discover, collect, and estimate.
REQ-DRV-002 Each driver MUST declare a fixed list of provider operations, and its request builder MUST refuse any other before signing.
REQ-DRV-003 Drivers MUST return typed error classes (auth, permission, throttled, transient, malformed, config, budget) and MUST NOT pass provider text to pages.
REQ-DRV-004 Each driver MUST ship a metric catalog from which templates, data source names, and script server fields are generated.
REQ-DRV-005 A driver MUST be loaded only for accounts that use its provider.
Acceptance criteria
A test enumerates each driver's buildable operations and compares them with its allowlist.
Done in #81 and #82, but neither PR closed this issue. Each acceptance criterion is met on main:
Operations against the allowlist: tests/Unit/DigitalOceanDriverTest.php ("allows only GET under the three documented prefixes, and every catalog path") checks every operation and every catalog path against the guard, and refuses writes and undocumented paths. tests/Unit/DriverContractTest.php ("lists only read operations for every registered driver") does the same for every production driver.
Fake driver: FakeDriver in tests/Unit/DriverContractTest.php passes the core's contract tests, including the guarded-transport refusal.
Activity
fix: address review findings on the M2 foundation
fix: address the second review round on the M2 foundation
somethingwithproof commentedon Nov 15, 2026
Done in #81 and #82, but neither PR closed this issue. Each acceptance criterion is met on main:
tests/Unit/DigitalOceanDriverTest.php("allows only GET under the three documented prefixes, and every catalog path") checks every operation and every catalog path against the guard, and refuses writes and undocumented paths.tests/Unit/DriverContractTest.php("lists only read operations for every registered driver") does the same for every production driver.FakeDriverintests/Unit/DriverContractTest.phppasses the core's contract tests, including the guarded-transport refusal.