Skip to content

Commit

Permalink
update todo
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Sep 12, 2023
1 parent bcc3e59 commit e276de6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/actions/start-opensearch-with-one-plugin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ runs:
with:
url: https://artifacts.opensearch.org/snapshots/core/opensearch/${{ inputs.opensearch-version }}-SNAPSHOT/opensearch-min-${{ inputs.opensearch-version }}-SNAPSHOT-windows-x64-latest.zip


- name: Download OpenSearch for Linux
uses: peternied/download-file@v2
if: ${{ runner.os == 'Linux' }}
Expand Down Expand Up @@ -67,7 +66,11 @@ runs:
'y' | .\opensearch-${{ inputs.opensearch-version }}-SNAPSHOT\bin\opensearch-plugin.bat install file:$(pwd)\${{ inputs.plugin-name }}.zip
shell: pwsh

# SPECIFY PASSWORD FROM ENV i.e. export=open_pass = ....
# FAIL IF NO PASS FOUND

# Run any configuration scripts
# Set up script now modifies file
- name: Run Setup Script for Linux
if: ${{ runner.os == 'Linux' && inputs.setup-script-name != '' }}
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,14 @@ private ConfigurationRepository(
}

LOGGER.info("Node '{}' initialized", clusterService.localNode().getName());
//lock
createAdminUser();
//unlock
sleep(1000);
} catch (Exception e) {
LOGGER.error("Unexpected exception while initializing node " + e, e);
}
});

}

private boolean createSecurityIndexIfAbsent() {
Expand Down Expand Up @@ -507,3 +508,9 @@ private void createAdminUser() throws IOException, PrivilegedActionException {
notifyAboutChanges(Collections.singletonMap(CType.INTERNALUSERS, sdc));
}
}

/**
* Need to update docker, helm issues, etc.-- make issues for them to do
* Need to update documentation for the isntall demo config
* How do we generate hash
*/
1 change: 1 addition & 0 deletions tools/install_demo_configuration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ echo "plugins.security.check_snapshot_restore_write_privileges: true" | $SUDO_CM
echo 'plugins.security.restapi.roles_enabled: ["all_access", "security_rest_api_access"]' | $SUDO_CMD tee -a "$OPENSEARCH_CONF_FILE" > /dev/null
echo 'plugins.security.system_indices.enabled: true' | $SUDO_CMD tee -a "$OPENSEARCH_CONF_FILE" > /dev/null
echo 'plugins.security.system_indices.indices: [".plugins-ml-config", ".plugins-ml-connector", ".plugins-ml-model-group", ".plugins-ml-model", ".plugins-ml-task", ".plugins-ml-conversation-meta", ".plugins-ml-conversation-interactions", ".opendistro-alerting-config", ".opendistro-alerting-alert*", ".opendistro-anomaly-results*", ".opendistro-anomaly-detector*", ".opendistro-anomaly-checkpoints", ".opendistro-anomaly-detection-state", ".opendistro-reports-*", ".opensearch-notifications-*", ".opensearch-notebooks", ".opensearch-observability", ".ql-datasources", ".opendistro-asynchronous-search-response*", ".replication-metadata-store", ".opensearch-knn-models", ".geospatial-ip2geo-data*", ".opendistro-job-scheduler-lock"]' | $SUDO_CMD tee -a "$OPENSEARCH_CONF_FILE" > /dev/null
# Read env variable and then found line in user file and modify it

#network.host
if $SUDO_CMD grep --quiet -i "^network.host" "$OPENSEARCH_CONF_FILE"; then
Expand Down

0 comments on commit e276de6

Please sign in to comment.