Skip to content

Commit

Permalink
Add exception to KICS for http in non-security scenario (#353)
Browse files Browse the repository at this point in the history
We need to use `http` without `s` for certain scenarios. This commit
will introduce an exception so KICS will not complain about it.
  • Loading branch information
widhalmt authored Nov 6, 2024
1 parent 8002a4f commit 8ed5180
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions molecule/elasticsearch_no-security/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
tasks:

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

- name: Node check
ansible.builtin.uri:
# kics-scan ignore-line
url: http://localhost:{{ elasticstack_elasticsearch_http_port }}/_cat/nodes
method: GET
return_content: yes
Expand Down

0 comments on commit 8ed5180

Please sign in to comment.