Skip to content

Commit

Permalink
Exceptions for KICS false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
widhalmt committed Oct 23, 2024
1 parent 9638e4b commit 118b512
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions molecule/elasticsearch_no-security/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
tasks:

# Remember, this is the no-security scenario. So no https
# kics-scan ignore-block
- name: Health check
ansible.builtin.uri:
url: http://localhost:{{ elasticstack_elasticsearch_http_port }}/_cluster/health

Check warning on line 15 in molecule/elasticsearch_no-security/verify.yml

View workflow job for this annotation

GitHub Actions / kics

[MEDIUM] Communication Over HTTP

Using HTTP URLs (without encryption) could lead to security vulnerabilities and risks
Expand All @@ -22,6 +23,7 @@
delay: 10
when: groups[elasticstack_elasticsearch_group_name] | length > 1

# kics-scan ignore-block
- name: Node check
ansible.builtin.uri:
url: http://localhost:{{ elasticstack_elasticsearch_http_port }}/_cat/nodes

Check warning on line 29 in molecule/elasticsearch_no-security/verify.yml

View workflow job for this annotation

GitHub Actions / kics

[MEDIUM] Communication Over HTTP

Using HTTP URLs (without encryption) could lead to security vulnerabilities and risks
Expand Down
1 change: 1 addition & 0 deletions roles/elasticsearch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
enabled: yes
register: elasticsearch_freshstart

# kics-scan ignore-block
- name: Handle cluster setup without security
when: not elasticsearch_security | bool
block:
Expand Down

0 comments on commit 118b512

Please sign in to comment.