Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Merge remote-tracking branch 'origin/next' into api-sensitive-data-scrubber

Andras Bacsaib29bdce73ae6
diff --cc app/Models/EnvironmentVariable.php
index 7dd9992a6f,bfb02a470e..14a456433d
--- a/app/Models/EnvironmentVariable.php
+++ b/app/Models/EnvironmentVariable.php
@@@ -74,18 -78,8 +78,18 @@@ class EnvironmentVariable extends BaseM
'resourceable_id' => 'integer',
];
- protected $appends = ['real_value', 'is_shared', 'is_really_required', 'is_nixpacks', 'is_coolify'];
+ protected $appends = ['real_value', 'is_shared', 'is_really_required', 'is_buildpack_control', 'is_coolify'];
+ /**
+ * Sensitive fields hidden by default in serialized output (toArray/toJson).
+ * API controllers should call makeVisible([...]) for callers with the
+ * `read:sensitive` or `root` token ability.
+ */
+ protected $hidden = [
+ 'value',
+ 'real_value',
+ ];
+
protected static function booted()
{
static::created(function (ModelsEnvironmentVariable $environment_variable) {