Skip to content

[Backport 5.1] OF-3450: Re-check perms for ad-hoc command on continued session - #3587

Merged
akrherz merged 3 commits into
5.1from
backport-3546-to-5.1
Nov 29, 2026
Merged

akrherz merged 3 commits into
5.1from
backport-3546-to-5.1

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #3546 to 5.1.

akrherz and others added 3 commits November 29, 2026 22:35
The tests check that the owner of a command session can complete it while it has permission, and that the session is refused with 'forbidden' when the owner's permission was revoked, or when another entity tries to continue it. The two refusal tests fail without the fix in "OF-3450: Re-check perms for ad-hoc command on continued session".

(cherry picked from commit 51ed98e)
…er use

When the owner of a command session has lost permission to execute the command, every later request for that session is refused, including cancelling it, and the session only expires when it is next used. Such a session is now removed when it is refused, so that it does not stay in memory or count towards the owner's limit of simultaneous sessions. A refused attempt by an entity other than the owner leaves the session alone. Each refusal is logged at debug level.

(cherry picked from commit 1d1cad2)
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dca8859d-0262-4881-a7e4-b3ba38e41c17

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@akrherz
akrherz merged commit 679e16f into 5.1 Nov 29, 2026
@akrherz
akrherz deleted the backport-3546-to-5.1 branch November 29, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants