Skip to content

Commit 8ed5180

Browse files
authored
Add exception to KICS for http in non-security scenario (#353)
We need to use `http` without `s` for certain scenarios. This commit will introduce an exception so KICS will not complain about it.
1 parent 8002a4f commit 8ed5180

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

molecule/elasticsearch_no-security/verify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
tasks:
1010

1111
# Remember, this is the no-security scenario. So no https
12+
# The comment below will create an exception for KICS security scan
1213
- name: Health check
1314
ansible.builtin.uri:
15+
# kics-scan ignore-line
1416
url: http://localhost:{{ elasticstack_elasticsearch_http_port }}/_cluster/health
1517
method: GET
1618
return_content: yes
@@ -24,6 +26,7 @@
2426

2527
- name: Node check
2628
ansible.builtin.uri:
29+
# kics-scan ignore-line
2730
url: http://localhost:{{ elasticstack_elasticsearch_http_port }}/_cat/nodes
2831
method: GET
2932
return_content: yes

0 commit comments

Comments
 (0)