Skip to content

Backport #59775 to 23.8: rabbitmq: fix having neither acked nor nacked messages - #60304

Merged
alexey-milovidov merged 1 commit into
23.8from
backport/23.8/59775
Feb 29, 2024
Merged

alexey-milovidov merged 1 commit into
23.8from
backport/23.8/59775

Conversation

@robot-clickhouse-ci-2

Copy link
Copy Markdown
Contributor

Original pull-request #59775
Cherry-pick pull-request #60294

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Feb 22, 2024
@robot-ch-test-poll

robot-ch-test-poll commented Feb 22, 2024 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit c2112cf with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Successful checks
Check nameDescriptionStatus
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process✅ success
Compatibility checkChecks that clickhouse binary runs on distributions with old libc versions. If it fails, ask a maintainer for help✅ success
Docker image for serversThe check to build and optionally push the mentioned image to docker hub✅ success
Install packagesChecks that the built packages are installable in a clear environment✅ success
Push to DockerhubThe check for building and pushing the CI related docker images to docker hub✅ success
Stateful testsRuns stateful functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc✅ success
Stress testRuns stateless functional tests concurrently from several clients to detect concurrency-related errors✅ success
Check nameDescriptionStatus
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR⏳ pending
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests❌ failure
Stateless testsRuns stateless functional tests for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc❌ failure

@alexey-milovidov
alexey-milovidov merged commit 3b983d8 into 23.8 Feb 29, 2024
@alexey-milovidov
alexey-milovidov deleted the backport/23.8/59775 branch February 29, 2024 02:10
Algunenano pushed a commit to Algunenano/ClickHouse that referenced this pull request Nov 18, 2026
…mode

Under readonly = 1 or 2 (every HTTP GET runs with readonly = 2), a session
of a user holding a privilege WITH GRANT OPTION could still revoke it from
another user with a local REVOKE, or propagate its grants with GRANT CURRENT
GRANTS, and the change persisted. A plain GRANT is refused there, and so is
the same REVOKE ON CLUSTER.

readonly refuses a change of grants only in the grant-option branch of
ContextAccess::checkAccessImplHelper. A privilege REVOKE fails that check
under readonly and then falls back to the "special case for REVOKE" in
checkGrantOption, which narrows the revoke to what the grantees hold and
authorizes it with a raw AccessRights::containsWithGrantOption, so the
readonly branch is never reached. GRANT CURRENT GRANTS clamps the granted
rights to getGrantableRights() instead of checking the grant option (ClickHouse#60304),
so ContextAccess is not consulted at all.

Add ContextAccess::checkCanChangeGrants() (READONLY, the same message as the
grant-option branch, skipped for full_access; next to the existing
session-level guard checkCanAdministerDefaultRoles) and call it once in
InterpreterGrantQuery::execute after the grant-option checks whenever there
is a privilege to grant or, after narrowing, to revoke. A REVOKE of a
privilege no grantee holds stays a no-op and is accepted, as for roles in
ClickHouse#132330. readonly = 0 is unchanged; the containment and clamp semantics are
unchanged.

An element-wise checkGrantOption under readonly was rejected: with partial
revokes it reports a false ACCESS_DENIED for a revoke the user is entitled
to (rows 1-2 of the new test turn ACCESS_DENIED), and it still lets through
the elements that return before the readonly branch (CLUSTER when
on_cluster_queries_require_cluster_grant = false, the temporary database).

Under readonly, GRANT CURRENT GRANTS to a grantee outside the GRANTEES list
now reports READONLY instead of ACCESS_DENIED, the order a plain GRANT has.

The "Permissions for queries" docs listed both statements as exceptions;
they now say GRANT, GRANT CURRENT GRANTS and REVOKE of a privilege are
refused.

Related: ClickHouse#132330

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants