config: rework credentials to support priv sync
Before this patch, credentials applier used to just grant all privileges and permissions with {if_not_exists = true}. It didn't allow removing a permission, nor setting only new permissions. Now credentials applier converts box configuration and desired config to an intermediate representation, calculates diff for them and only after that applies the diff. Part of #8967 NO_DOC=yet
Showing
- changelogs/unreleased/gh-8861-config-privilege-sync.md 4 additions, 0 deletionschangelogs/unreleased/gh-8861-config-privilege-sync.md
- src/box/lua/config/applier/credentials.lua 330 additions, 45 deletionssrc/box/lua/config/applier/credentials.lua
- test/config-luatest/credentials_applier_test.lua 480 additions, 0 deletionstest/config-luatest/credentials_applier_test.lua
Loading
Please register or sign in to comment