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.

feat(dev): include firewall capabilities in flux defaults

Andras Bacsaiec3e5dc9eb3d
diff --git a/app/Console/Commands/FluxDev.php b/app/Console/Commands/FluxDev.php
index ed8c015c44..2451fac779 100644
--- a/app/Console/Commands/FluxDev.php
+++ b/app/Console/Commands/FluxDev.php
@@ -39,6 +39,10 @@ class FluxDev extends Command
'containers.healthcheck.run',
'ingress.apply',
'ingress.stop',
+ 'firewall.allow',
+ 'firewall.revoke',
+ 'firewall.list',
+ 'firewall.reconcile',
];
}
diff --git a/tests/Feature/FluxDevCommandTest.php b/tests/Feature/FluxDevCommandTest.php
index f3bdc98fd8..1bc905fd6d 100644
--- a/tests/Feature/FluxDevCommandTest.php
+++ b/tests/Feature/FluxDevCommandTest.php
@@ -44,6 +44,10 @@ it('mints a host jwt with primitive capabilities by default', function () {
expect($claims->caps)->toContain('containers.list')
->and($claims->caps)->toContain('ingress.apply')
+ ->and($claims->caps)->toContain('firewall.allow')
+ ->and($claims->caps)->toContain('firewall.revoke')
+ ->and($claims->caps)->toContain('firewall.list')
+ ->and($claims->caps)->toContain('firewall.reconcile')
->and($claims->caps)->not->toContain('coold');
});