Fail to backup security yml files when running on opensearch 2.0.0

Hi all,

I am getting the below error when try to take a backup of the security yml files.

ERR: Seems audit from cluster is not in legacy format: A version of 1 can not have a _meta key for AUDIT

Below is the script I am running.

./ -backup my-backup-directory
-cacert …/…/…/config/root-ca.pem
-cert …/…/…/config/node.pem
-key …/…/…/config/node.key

@asfoorial I can confirm the issue.
Could you report a bug on GitHub - Issues · opensearch-project/security · GitHub and share the GitHub link here?

For anyone looking for a follow-up. This issue was reported on GitHub and picked up by the dev team.