fix(auth): limit application commands and configuration to admins and read:sensitive tokens

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-10-27 21:19:20 +01:00
co-authored by Claude Opus 5.5
parent efbd64346c
commit eb030c6a22
6 changed files with 258 additions and 23 deletions
@@ -126,6 +126,7 @@ class ApplicationsController extends Controller
]);
if (request()->attributes->get('can_read_sensitive', false) === true) {
$application->makeVisible([
...Application::COMMAND_AND_CONFIGURATION_ATTRIBUTES,
'custom_labels',
'dockerfile',
'docker_compose',