Lower needed exposed ports warning to info (#116)

This commit is contained in:
tituspijean 2024-04-22 18:55:12 +02:00 committed by GitHub
parent 02265400d9
commit 305a99c890
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2862,7 +2862,7 @@ class Script(TestSuite):
if self.contains("yunohost firewall allow") and not self.contains( if self.contains("yunohost firewall allow") and not self.contains(
"--needs_exposed_ports" "--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 !" "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 !"
) )