diff --git a/config/internal_users.yml b/config/internal_users.yml index f4d31e52c6..68838f482f 100644 --- a/config/internal_users.yml +++ b/config/internal_users.yml @@ -10,13 +10,6 @@ _meta: ## Demo users -admin: - hash: "$2a$12$VcCDgh2NDk07JGN0rjGbM.Ad41qVR/YFJcgHp0UGns5JDymv..TOG" - reserved: true - backend_roles: - - "admin" - description: "Demo admin user" - anomalyadmin: hash: "$2y$12$TRwAAJgnNo67w3rVUz4FIeLx9Dy/llB79zf9I15CKJ9vkM4ZzAd3." reserved: false diff --git a/tools/install_demo_configuration.sh b/tools/install_demo_configuration.sh index b7003f9310..689d3101d3 100755 --- a/tools/install_demo_configuration.sh +++ b/tools/install_demo_configuration.sh @@ -392,9 +392,6 @@ echo 'plugins.security.system_indices.indices: [".plugins-ml-config", ".plugins- ADMIN_PASSWORD_FILE="$OPENSEARCH_CONF_DIR/initialAdminPassword.txt" INTERNAL_USERS_FILE="$OPENSEARCH_CONF_DIR/opensearch-security/internal_users.yml" -# Use sed to delete the block -sed -i.bak '/^admin:/,/description: "Demo admin user"/d' $INTERNAL_USERS_FILE - if [[ -n "$initialAdminPassword" ]]; then ADMIN_PASSWORD="$initialAdminPassword" elif [[ -f "$ADMIN_PASSWORD_FILE" && -s "$ADMIN_PASSWORD_FILE" ]]; then