Skip to content

box: mark replication role as system#11852

Merged
sergepetrenko merged 1 commit intotarantool:masterfrom
mandesero:mandesero/gh-11848-forgotten-replication-role
Sep 25, 2025
Merged

box: mark replication role as system#11852
sergepetrenko merged 1 commit intotarantool:masterfrom
mandesero:mandesero/gh-11848-forgotten-replication-role

Conversation

@mandesero
Copy link
Contributor

@mandesero mandesero commented Sep 23, 2025

The replication role (id = 3) was predefined but not included in the system users/roles definitions. As a result, it was not protected from being dropped or modified, unlike guest, admin, public, and super.

This patch adds replication to the list of system roles and extends BOX_SYSTEM_USER_ID_MAX accordingly, so that the role is treated consistently as a system entity.

Follow-up to #1205, #3084.

Closes #11848

NO_DOC=already in doc

@coveralls
Copy link

coveralls commented Sep 23, 2025

Coverage Status

coverage: 87.618% (-0.01%) from 87.63%
when pulling af61036 on mandesero:mandesero/gh-11848-forgotten-replication-role
into bae255b
on tarantool:master
.

@mandesero mandesero marked this pull request as ready for review September 23, 2025 16:23
@sergepetrenko sergepetrenko self-assigned this Sep 24, 2025
Copy link
Collaborator

@sergepetrenko sergepetrenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Please assign me on PRs you want me to look at so that I don't miss them in https://github.com/pulls/assigned

The `replication` role (id = 3) was predefined but not included
in the system users/roles definitions. As a result, it was not
protected from being dropped or modified, unlike `guest`, `admin`,
`public`, and `super`.

This patch adds `replication` to the list of system roles and
extends `BOX_SYSTEM_USER_ID_MAX` accordingly, so that the role
is treated consistently as a system entity.

Follow-up to tarantool#1205, tarantool#3084.

Closes tarantool#11848

NO_DOC=already in doc
@mandesero mandesero force-pushed the mandesero/gh-11848-forgotten-replication-role branch from 877af89 to af61036 Compare September 24, 2025 09:50
@mandesero mandesero requested a review from a team as a code owner September 24, 2025 09:50
@mandesero mandesero assigned sergepetrenko and unassigned mandesero Sep 24, 2025
@sergepetrenko sergepetrenko added backport/3.2 Automatically create a 3.2 backport PR backport/3.3 Automatically create a 3.3 backport PR backport/3.4 Automatically create a 3.4 backport PR backport/3.5 Automatically create a 3.5 backport PR full-ci Enables all tests for a pull request and removed full-ci Enables all tests for a pull request labels Sep 25, 2025
@sergepetrenko sergepetrenko merged commit 309409e into tarantool:master Sep 25, 2025
144 of 150 checks passed
@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.2:

@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.3:

@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.4:

@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.5:

@TarantoolBot
Copy link
Collaborator

Backport summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/3.2 Automatically create a 3.2 backport PR backport/3.3 Automatically create a 3.3 backport PR backport/3.4 Automatically create a 3.4 backport PR backport/3.5 Automatically create a 3.5 backport PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

replication role is not marked as system despite being predefined

5 participants