Skip to content

#58 simplify protected indices

Ghost User requested to merge #58-simplify-protected-indices into main

Closes #58 (closed)

See https://git.eliatra.com/eliatra-suite/eliatra-opensearch-plugin/-/blob/main/security-core/src/main/java/com/eliatra/suite/securityplus/EliatraSuitePlugin.java#L1202

As the internal index name pattern has been simplified to let all internal indices start with .eliatra_internal_ (see https://git.eliatra.com/eliatra-suite/eliatra-opensearch-plugin/-/issues/8) we should simplify the ProtectedIndices functionality accordingly.

1 - remove the all the existing 'is this index protected' logic. 2 - Remove the step in the 'createIndex' method that adds the config domains to the list of protected indices (in ProtectedConfigIndexService.java) 3 - Replace old logic to simply check if the it the index name starts with .eliatra_internal_ .

Edited by Ghost User

Merge request reports

Loading