From 305a99c890c538c4b6acbadc27395a479a0ad3fa Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 22 Apr 2024 18:55:12 +0200 Subject: [PATCH] Lower needed exposed ports warning to info (#116) --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index eaf1b6d..4f3cb7c 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2862,7 +2862,7 @@ class Script(TestSuite): if self.contains("yunohost firewall allow") and not self.contains( "--needs_exposed_ports" ): - yield Warning( + yield Info( "You used 'yunohost firewall allow' to expose a port on the outside but did not use 'yunohost service add' with '--needs_exposed_ports' ... If you are ABSOLUTELY SURE that the service needs to be exposed on THE OUTSIDE, then add '--needs_exposed_ports' to 'yunohost service add' with the relevant port number. Otherwise, opening the port leads to a significant security risk and you should keep the damn port closed !" )