coolify/app/Http/Controllers/Api
Andras Bacsai 78031b991a fix: allow all environment variable fields in API endpoints
Fixes #6847

The API endpoints for environment variables were rejecting valid fields
like is_buildtime, is_runtime, is_multiline, and is_shown_once with
422 errors, even though the code was using these fields internally.

Changes:
- Added missing fields to $allowedFields in create_env()
- Added missing fields to $allowedFields in update_env_by_uuid()
- Updated allowed fields in create_bulk_envs()
- Added validation rules for is_runtime and is_buildtime

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 10:44:06 +02:00
..
ApplicationsController.php fix: allow all environment variable fields in API endpoints 2025-10-13 10:44:06 +02:00
DatabasesController.php fix(api): correct OpenAPI schema annotations for array items 2025-09-30 11:19:39 +02:00
DeployController.php refactor(deployment): add validation for pull request existence in deployment process to enhance error handling 2025-09-10 14:31:29 +02:00
GithubController.php fix(api): correct OpenAPI schema annotations for array items 2025-09-30 11:19:39 +02:00
OpenApi.php refactor(api): remove token variable from OpenAPI specifications for clarity 2025-04-22 11:12:30 +02:00
OtherController.php fix: version should come from constants + fix stripe webhook error reporting 2024-11-25 11:28:08 +01:00
ProjectController.php feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
ResourcesController.php feat(auth): implement comprehensive authorization checks across API controllers 2025-08-23 18:51:10 +02:00
SecurityController.php fix(api): used ssh keys can be deleted 2025-04-03 14:07:11 +02:00
ServersController.php work work on hetzner integration 2025-10-09 16:54:13 +02:00
ServicesController.php refactor(environment): remove 'is_build_time' attribute from environment variable handling across the application to simplify configuration 2025-09-11 16:51:56 +02:00
TeamController.php fix: hide sensitive email change fields in team member responses 2025-09-18 00:40:09 +08:00