[audit] Security, API safety, missing tests, error handling #1

Open
opened 2026-03-22 16:41:30 +00:00 by Virgil · 2 comments
Member

Full audit:

  1. Security: API key exposure, OAuth token handling, webhook validation, input sanitisation
  2. Rate limiting: proper backoff, quota tracking, retry logic
  3. Missing tests: provider actions without Pest coverage
  4. Error handling: swallowed API errors, missing HTTP status checks, timeout handling
  5. UK English: American spellings in code/comments
  6. Coding standards: strict_types, type hints, Action pattern, SPDX headers

Report all findings with severity and file:line. Do NOT fix.

Full audit: 1. Security: API key exposure, OAuth token handling, webhook validation, input sanitisation 2. Rate limiting: proper backoff, quota tracking, retry logic 3. Missing tests: provider actions without Pest coverage 4. Error handling: swallowed API errors, missing HTTP status checks, timeout handling 5. UK English: American spellings in code/comments 6. Coding standards: strict_types, type hints, Action pattern, SPDX headers Report all findings with severity and file:line. Do NOT fix.
Author
Member

Codex Audit Findings

CRITICAL (2)

  1. Clean installs fail — Bunny\Storage\Client not in composer deps but drivers dereference it during construction (Upload.php:31, Download.php:31, Delete.php:31, Browse.php:32, VBucket.php:40)
  2. Bunny drivers read wrong config namespace — keys don't match lthn/php storage config, so standard config leaves them 'not configured' (Upload.php:39, Download.php:39, Delete.php)
## Codex Audit Findings ### CRITICAL (2) 1. Clean installs fail — Bunny\Storage\Client not in composer deps but drivers dereference it during construction (Upload.php:31, Download.php:31, Delete.php:31, Browse.php:32, VBucket.php:40) 2. Bunny drivers read wrong config namespace — keys don't match lthn/php storage config, so standard config leaves them 'not configured' (Upload.php:39, Download.php:39, Delete.php)
Author
Member

Fix Applied

Commit b87b565: fix(storage): align bunny dependency and config

  • Added Bunny\Storage\Client to composer.json require
  • Fixed config key namespace to match lthn/php storage config
## Fix Applied Commit `b87b565`: fix(storage): align bunny dependency and config - Added Bunny\Storage\Client to composer.json require - Fixed config key namespace to match lthn/php storage config
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

-

Dependencies

No dependencies set.

Reference: core/php-plug-storage#1
No description provided.