Custom configuration files

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.13/Debian 11

Describe the issue:
Is there a way to have for example default roles.yml file and a custom one say my_roles.yml where I would add my custom roles and then apply both config files with security-admin.sh script?

Configuration:

Relevant Logs or Screenshots:

Hey @stas.fastov

I don’t see away to do that, you could make a backup of your role.yml file and modify the original one.

Hi @stas.fastov
I had some similar problem regarding internal_users.yml.
I just used the command line yaml merge tool Merge | v2.x | yq and build a small script which

  • gets my current users from the OpenSearch using security-admin.sh and
  • merges it with my custom custom_internal_users.yml and then
  • applied the merged file using again the security-admin.sh tool.
1 Like