The Wire · Showcase
Cloud CLI leaks API tokens, fix lands in hours
By RepoJournal · Filed · About Laravel
Laravel's Cloud CLI was printing live API tokens into CI logs, and the patch is already out.
A credential leak in laravel/cloud-cli's `auth:token --list` command printed full API tokens, not just in the table but in JSON output, which is the documented `-n` mode that ends up in CI logs and agent transcripts [1]. Tokens now show as `*****` plus the last four characters, and the fix is in. The team also streamlined prompts by swapping a handrolled spinner for the official Prompts task component [2], replacing `selectWithContext` with the built-in `select` now that it renders the `info` parameter upstream [3], and dropping a custom notification in favor of Prompts' new `notify` helper [4][5]. Meanwhile, Nightwatch bumped EndBug/add-and-commit to 11.0.0, an automated tooling update with no breaking changes [6]. Joe Tannenbaum noted the reasoning behind the prompts migration: 'Replaced the custom prompts component with the official one now that the `info` parameter renders upstream' [3].
One email a day. Unsubscribe in one click.
Keep up with Laravel in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Update laravel/cloud-cli to the latest release to get the token masking fix laravel/cloud-cli [immediate]
- → Audit recent CI logs and agent transcripts for any leaked API tokens from 'auth:token --list -n' laravel/cloud-cli [immediate]
- → Review any custom prompt or notification code in your Cloud CLI fork or wrapper for removal laravel/cloud-cli [plan]
References
- [1] Mask API tokens in auth:token --list ↗ laravel/cloud-cli
- [2] Swap handrolled dynamic spinner component for Prompts task component ↗ laravel/cloud-cli
- [3] Replace `selectWithContext` with `select` ↗ laravel/cloud-cli
- [4] dropped our notification for prompts (#202) laravel/cloud-cli
- [5] Dropped handrolled notification for Prompts ↗ laravel/cloud-cli
- [6] Bump EndBug/add-and-commit from 10.0.0 to 11.0.0 in the github-actions group ↗ laravel/nightwatch