Skip to content

Conversation

Totktonada
Copy link
Member

(This is a backport of PR #9852 to release/3.0, future 3.0.2 release.)


Now the privileges that were not granted by the configuration, as well as privileges that were not granted solely by the configuration, are not revoked on reload. Privileges only granted by the config module will still be revoked if they are removed from the credentials section on reload.

Closes #9643

ImeevMA added 2 commits March 25, 2024 13:49
Currently, if we try to run Tarantool 3.0 with config using old
snapshot, we may get a SCHEMA_NEEDS_UPGRADE error because granting and
revoking privileges are DDL operations. This leads to a situation where
loading Tarantool to perform an upgrade becomes quite problematic. To
avoid the issue, this patch causes 'credentials.lua' to issue a warning
instead of an error in case of the SCHEMA_NEEDS_UPGRADE error during
granting and revoking privileges.

Note that it was still possible to startup and perform the upgrade by
removing the 'credentials' section from the config or without using
config.

This is only a part of the solution, the issue will be fixed in tarantool#9849.

Part of tarantool#9849
Needed for tarantool#9643

NO_DOC=will be added later
NO_CHANGELOG=will be added later

(cherry picked from commit 8f43d0b)
Closes tarantool#9643

@TarantoolBot document
Title: config: changes in `credentials` section

Now the privileges that were not granted by the configuration, as well
as privileges that were not granted solely by the configuration, are not
revoked on reload. Privileges that have been granted only by the config
module will still be revoked if they are removed from the `credentials`
section on reload.

(cherry picked from commit b982b46)
@Totktonada Totktonada requested review from a team as code owners March 25, 2024 11:05
@Totktonada Totktonada requested a review from ImeevMA March 25, 2024 11:06
@Totktonada Totktonada added the full-ci Enables all tests for a pull request label Mar 25, 2024
@coveralls
Copy link

Coverage Status

coverage: 86.881% (+0.02%) from 86.862%
when pulling 56e5d92 on Totktonada:backport-3.0/imeevma/gh-9643-use-origin
into bf2c2e2
on tarantool:release/3.0
.

@Totktonada Totktonada merged commit ee2faf7 into tarantool:release/3.0 Mar 25, 2024
@Totktonada Totktonada deleted the backport-3.0/imeevma/gh-9643-use-origin branch March 25, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Enables all tests for a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants