Skip to content

Commit f51fa0f

Browse files
committed
Disable scanning for http connections without TLS
1 parent 118b512 commit f51fa0f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

molecule/elasticsearch_no-security/verify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2-
# This is an example playbook to execute Ansible tests.
2+
# kics-scan disable=2e8d4922-8362-4606-8c14-aa10466a1ce3
3+
# above command will disable scanning for `http` (without `s`)
4+
# connections
35

46
- name: Verify
57
hosts: all
@@ -9,7 +11,6 @@
911
tasks:
1012

1113
# Remember, this is the no-security scenario. So no https
12-
# kics-scan ignore-block
1314
- name: Health check
1415
ansible.builtin.uri:
1516
url: http://localhost:{{ elasticstack_elasticsearch_http_port }}/_cluster/health
@@ -23,7 +24,6 @@
2324
delay: 10
2425
when: groups[elasticstack_elasticsearch_group_name] | length > 1
2526

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

roles/elasticsearch/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
# kics-scan disable=2e8d4922-8362-4606-8c14-aa10466a1ce3
3+
# above command will disable scanning for `http` (without `s`)
4+
# connections
25

36
- name: Check for versions
47
ansible.builtin.fail:
@@ -244,7 +247,6 @@
244247
enabled: yes
245248
register: elasticsearch_freshstart
246249

247-
# kics-scan ignore-block
248250
- name: Handle cluster setup without security
249251
when: not elasticsearch_security | bool
250252
block:

0 commit comments

Comments
 (0)