You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When hardcoded_ip_address_in_k8s_configuration fails, no description/additional information about exact reason of failure is given:
🎬 Testing: [hardcoded_ip_addresses_in_k8s_runtime_configuration]
✖️ 🏆FAILED: [hardcoded_ip_addresses_in_k8s_runtime_configuration] Hard-coded IP addresses found in the runtime K8s configuration
Describe the solution you'd like
Print out more information (similarly as other tests), for example like in non_root_containers:
🎬 Testing: [non_root_containers]
Failed resource: StatefulSet grafana in test-cnf namespace
Failed resource: Deployment prometheus-thanos in test-cnf namespace
Failed resource: StatefulSet prometheus in test-cnf namespace
Remediation: If your application does not need root privileges, make sure to define runAsNonRoot as true or explicitly set the runAsUser using ID 1000 or higher under the PodSecurityContext or container securityContext. In addition, set an explicit value for runAsGroup using ID 1000 or higher.
✖️ 🏆FAILED: [non_root_containers] Found containers running with root user or user with root group membership 🔓🔑
For hardcoded_ip_addresses_in_k8s_runtime_configuration, print out:
impacted file
location in the file, a line with explicit IP, maybe some lines before and after.
The text was updated successfully, but these errors were encountered:
Add information about file location, line numbers and lines themselves
if the hardcoded_ip_addresses_in_k8s_runtime_configuration fails
Refs: cnti-testcatalog#2093
Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
Add information about file location, line numbers and lines themselves
if the hardcoded_ip_addresses_in_k8s_runtime_configuration fails
Refs: cnti-testcatalog#2093
Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
kosstennbl
pushed a commit
to kosstennbl/cnf-testsuite
that referenced
this issue
Jul 2, 2024
Add information about file location, line numbers and lines themselves
if the hardcoded_ip_addresses_in_k8s_runtime_configuration fails
Refs: cnti-testcatalog#2093
Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
kosstennbl
pushed a commit
to kosstennbl/cnf-testsuite
that referenced
this issue
Jul 3, 2024
Add information about file location, line numbers and lines themselves
if the hardcoded_ip_addresses_in_k8s_runtime_configuration fails
Refs: cnti-testcatalog#2093
Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
Add information about file location, line numbers and lines themselves
if the hardcoded_ip_addresses_in_k8s_runtime_configuration fails
Refs: #2093
Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
Is your feature request related to a problem? Please describe.
When hardcoded_ip_address_in_k8s_configuration fails, no description/additional information about exact reason of failure is given:
Describe the solution you'd like
Print out more information (similarly as other tests), for example like in non_root_containers:
For hardcoded_ip_addresses_in_k8s_runtime_configuration, print out:
The text was updated successfully, but these errors were encountered: