Skip to content

Commit 28a7ce5

Browse files
authored
Space security settings (#2)
* Fix for windows paths Signed-off-by: Derek Ho <[email protected]> * Dont install plugin on windows if empty Signed-off-by: Derek Ho <[email protected]> * Disable space checks and API access for security CIs Signed-off-by: Derek Ho <[email protected]> * Update path Signed-off-by: Derek Ho <[email protected]> * Correct setting Signed-off-by: Derek Ho <[email protected]> --------- Signed-off-by: Derek Ho <[email protected]>
1 parent 630104b commit 28a7ce5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yml

+8
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ runs:
103103
export OPENSEARCH_INITIAL_ADMIN_PASSWORD=${{ inputs.admin-password }}
104104
chmod +x ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/plugins/opensearch-security/tools/install_demo_configuration.sh
105105
/bin/bash -c "yes | ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/plugins/opensearch-security/tools/install_demo_configuration.sh -t"
106+
echo "plugins.security.unsupported.restapi.allow_securityconfig_modification: true" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/config/opensearch.yml
106107
shell: bash
107108

108109
- name: Setup security demo configuration for Windows
@@ -112,6 +113,13 @@ runs:
112113
export OPENSEARCH_INITIAL_ADMIN_PASSWORD=${{ inputs.admin-password }}
113114
chmod +x ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/plugins/opensearch-security/tools/install_demo_configuration.bat
114115
/bin/bash -c "yes | ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/plugins/opensearch-security/tools/install_demo_configuration.bat -t"
116+
echo "plugins.security.unsupported.restapi.allow_securityconfig_modification: true" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/config/opensearch.yml
117+
shell: bash
118+
119+
- name: Use more space
120+
run: |
121+
echo '' >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/config/opensearch.yml
122+
echo "cluster.routing.allocation.disk.threshold_enabled: false" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/config/opensearch.yml
115123
shell: bash
116124

117125
# Run OpenSearch

0 commit comments

Comments
 (0)