didnt know securityadmin.sh must be run to apply changes as the doc I was looking assumes managed service
this is what im getting
[opensearch@258538c06c3e tools]$ ./securityadmin.sh -f âŚ/âŚ/âŚ/config/opensearch-security/internal_users.yml -icl -nhnv -cert /usr/share/opensearch/config/kirk.pem -cacert /usr/share/opensearch/config/root-ca.pem -key /usr/share/opensearch/config/kirk-key.pem -t config
** This tool will be deprecated in the next major release of OpenSearch **
** [DEPRECATION] Security Plugin Tools will be replaced ¡ Issue #1755 ¡ opensearch-project/security ¡ GitHub **
Security Admin v7
Will connect to localhost:9200 ⌠done
Connected as âCN=kirk,OU=client,O=client,L=test,C=deâ
OpenSearch Version: 2.0.0
Contacting opensearch cluster âopensearchâ and wait for YELLOW clusterstate âŚ
Clustername: opensearch-cluster
Clusterstate: YELLOW
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index already exists, so we do not need to create one.
Legacy index â.opendistro_securityâ (ES 6) detected (or forced). You should migrate the configuration!
Populate config from /usr/share/opensearch/plugins/opensearch-security/tools
Force type: config
ERR: Seems âŚ/âŚ/âŚ/config/opensearch-security/internal_users.yml is not in legacy format: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field âhashâ (class org.opensearch.security.securityconf.impl.v7.ConfigV7), not marked as ignorable (one known property: âdynamicâ])
at [Source: (String)â{â_meta":{âtypeâ:âinternalusersâ,âconfig_versionâ:2},âadminâ:{âhashâ:âxxxxâ,âreservedâ:true,âbackend_rolesâ:[âadminâ],âdescriptionâ:âDemo admin userâ},âopensearchadminâ:{âhashâ:âxxxâ,âreservedâ:true,âbackend_rolesâ:[âadminâ],âdescriptionâ:âopensearchadmin userâ},âkibanaserverâ:{âhashâ:âxxxâ,âreservedâ:true,âdescriptionâ:âDemo Opâ[truncated 817 chars]; line: 1, column: 71] (through reference chain: org.opensearch.security.securityconf.impl.SecurityDynamicConfiguration[âadminâ]->org.opensearch.security.securityconf.impl.v7.ConfigV7[âhashâ])
ERR: cannot upload configuration, see errors above
=====================
[opensearch@258538c06c3e tools]$ ./securityadmin.sh -backup backup6172022 \
-icl
-nhnv
-cacert âŚ/âŚ/âŚ/config/root-ca.pem
-cert âŚ/âŚ/âŚ/config/kirk.pem
-key âŚ/âŚ/âŚ/config/kirk-key.pem
** This tool will be deprecated in the next major release of OpenSearch **
** [DEPRECATION] Security Plugin Tools will be replaced ¡ Issue #1755 ¡ opensearch-project/security ¡ GitHub **
Security Admin v7
Will connect to localhost:9200 ⌠done
Connected as âCN=kirk,OU=client,O=client,L=test,C=deâ
OpenSearch Version: 2.0.0
Contacting opensearch cluster âopensearchâ and wait for YELLOW clusterstate âŚ
Clustername: opensearch-cluster
Clusterstate: YELLOW
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index already exists, so we do not need to create one.
Legacy index â.opendistro_securityâ (ES 6) detected (or forced). You should migrate the configuration!
Will retrieve â/configâ into /usr/share/opensearch/plugins/opensearch-security/tools/backup6172022/config.yml (legacy mode)
ERR: Seems config from cluster is not in legacy format: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field âdescriptionâ (class org.opensearch.security.securityconf.impl.v6.ConfigV6$AuthcDomain), not marked as ignorable (6 known properties: âenabledâ, âhttp_enabledâ, âtransport_enabledâ, âhttp_authenticatorâ, âauthentication_backendâ, âorderâ])
at [Source: (String)â{â_meta":{âtypeâ:âconfigâ,âconfig_versionâ:2},âconfigâ:{âdynamicâ:{âhttpâ:{âanonymous_auth_enabledâ:false,âxffâ:{âenabledâ:false,âinternalProxiesâ:â192\.168\.0\.10|192\.168\.0\.11â}},âauthcâ:{âkerberos_auth_domainâ:{âhttp_enabledâ:false,âtransport_enabledâ:false,âorderâ:6,âhttp_authenticatorâ:{âtypeâ:âkerberosâ,âchallengeâ:true,âconfigâ:{âkrb_debugâ:false,âstrip_realm_from_principalâ:true}},âauthentication_backendâ:{âtypeâ:ânoopâ}},âbasic_internal_auth_domainâ:{âdescriptionâ:âAuthenticate â[truncated 2394 chars]; line: 1, column: 488] (through reference chain: org.opensearch.security.securityconf.impl.SecurityDynamicConfiguration[âconfigâ]->org.opensearch.security.securityconf.impl.v6.ConfigV6[âdynamicâ]->org.opensearch.security.securityconf.impl.v6.ConfigV6$Dynamic[âauthcâ]->org.opensearch.security.securityconf.impl.v6.ConfigV6$Authc[âbasic_internal_auth_domainâ]->org.opensearch.security.securityconf.impl.v6.ConfigV6$AuthcDomain[âdescriptionâ])
Will retrieve â/rolesâ into /usr/share/opensearch/plugins/opensearch-security/tools/backup6172022/roles.yml (legacy mode)
ERR: Seems roles from cluster is not in legacy format: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field âcluster_permissionsâ (class org.opensearch.security.securityconf.impl.v6.RoleV6), not marked as ignorable (5 known properties: âtenantsâ, âreadonlyâ, âindicesâ, âhiddenâ, âclusterâ])
at [Source: (String)â{â_meta":{âtypeâ:ârolesâ,âconfig_versionâ:2},âkibana_read_onlyâ:{âreservedâ:true},âsecurity_rest_api_accessâ:{âreservedâ:true},âalerting_read_accessâ:{âreservedâ:true,âcluster_permissionsâ:[âcluster:admin/opendistro/alerting/alerts/getâ,âcluster:admin/opendistro/alerting/destination/getâ,âcluster:admin/opendistro/alerting/monitor/getâ,âcluster:admin/opendistro/alerting/monitor/searchâ,âcluster:admin/opensearch/alerting/findings/getâ]},âalerting_ack_alertsâ:{âreservedâ:true,âcluster_permissionsâ:â[truncated 5296 chars]; line: 1, column: 191] (through reference chain: org.opensearch.security.securityconf.impl.SecurityDynamicConfiguration[âalerting_read_accessâ]->org.opensearch.security.securityconf.impl.v6.RoleV6[âcluster_permissionsâ])
Will retrieve â/rolesmappingâ into /usr/share/opensearch/plugins/opensearch-security/tools/backup6172022/roles_mapping.yml (legacy mode)
ERR: Seems rolesmapping from cluster is not in legacy format: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field âbackend_rolesâ (class org.opensearch.security.securityconf.impl.v6.RoleMappingsV6), not marked as ignorable (6 known properties: âand_backendrolesâ, âreadonlyâ, âusersâ, âbackendrolesâ, âhiddenâ, âhostsâ])
at [Source: (String)â{â_metaâ:{âtypeâ:ârolesmappingâ,âconfig_versionâ:2},âall_accessâ:{âreservedâ:false,âbackend_rolesâ:[âadminâ],âdescriptionâ:âMaps admin to all_accessâ},âown_indexâ:{âreservedâ:false,âusersâ:[â*â],âdescriptionâ:âAllow full access to an index named like the usernameâ},âlogstashâ:{âreservedâ:false,âbackend_rolesâ:[âlogstashâ]},âkibana_userâ:{âreservedâ:false,âbackend_rolesâ:[âkibanauserâ],âdescriptionâ:âMaps kibanauser to kibana_userâ},âreadallâ:{âreservedâ:false,âbackend_rolesâ:[âreadallâ]},âmanageâ[truncated 126 chars]; line: 1, column: 101] (through reference chain: org.opensearch.security.securityconf.impl.SecurityDynamicConfiguration[âall_accessâ]->org.opensearch.security.securityconf.impl.v6.RoleMappingsV6[âbackend_rolesâ])
Will retrieve â/internalusersâ into /usr/share/opensearch/plugins/opensearch-security/tools/backup6172022/internal_users.yml (legacy mode)
ERR: Seems internalusers from cluster is not in legacy format: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field âbackend_rolesâ (class org.opensearch.security.securityconf.impl.v6.InternalUserV6), not marked as ignorable (7 known properties: âreadonlyâ, âusernameâ, âattributesâ, âhiddenâ, âpasswordâ, ârolesâ, âhashâ])
at [Source: (String)â{â_meta":{âtypeâ:âinternalusersâ,âconfig_versionâ:2},âadminâ:{âhashâ:âxxxxâ,âreservedâ:true,âbackend_rolesâ:[âadminâ],âdescriptionâ:âDemo admin userâ},âkibanaserverâ:{âhashâ:âxxxxx.â,âreservedâ:true,âdescriptionâ:âDemo OpenSearch Dashboards userâ},âkibanaroâ:{âhashâ:âxxxxâ,âreservedâ:false,âbackend_rolesâ:[âkibanauserâ,âreadallâ],âaâ[truncated 648 chars]; line: 1, column: 166] (through reference chain: org.opensearch.security.securityconf.impl.SecurityDynamicConfiguration[âadminâ]->org.opensearch.security.securityconf.impl.v6.InternalUserV6[âbackend_rolesâ])
Will retrieve â/actiongroupsâ into /usr/share/opensearch/plugins/opensearch-security/tools/backup6172022/action_groups.yml (legacy mode)
ERR: Seems actiongroups from cluster is not in legacy format: java.io.IOException: A version of 1 can not have a _meta key for ACTIONGROUPS
Will retrieve â/nodesdnâ into /usr/share/opensearch/plugins/opensearch-security/tools/backup6172022/nodes_dn.yml (legacy mode)
ERR: Seems nodesdn from cluster is not in legacy format: java.io.IOException: A version of 1 can not have a _meta key for NODESDN
Will retrieve â/whitelistâ into /usr/share/opensearch/plugins/opensearch-security/tools/backup6172022/whitelist.yml (legacy mode)
ERR: Seems whitelist from cluster is not in legacy format: java.io.IOException: A version of 1 can not have a _meta key for WHITELIST
Will retrieve â/auditâ into /usr/share/opensearch/plugins/opensearch-security/tools/backup6172022/audit.yml (legacy mode)
ERR: Seems audit from cluster is not in legacy format: java.io.IOException: A version of 1 can not have a _meta key for AUDIT
[opensearch@258538c06c3e tools]$