Skip to content

Add RM_GetContextUser api#85

Merged
TalBarYakar merged 1 commit intomasterfrom
tal.ba/feat/get_context_uset_api
Mar 18, 2026
Merged

Add RM_GetContextUser api#85
TalBarYakar merged 1 commit intomasterfrom
tal.ba/feat/get_context_uset_api

Conversation

@TalBarYakar
Copy link
Collaborator

@TalBarYakar TalBarYakar commented Mar 16, 2026

Add RM_GetContextUser api to retrieve the RedisModuleUser set via RM_SetContextUser, allowing modules to access the user associated with RM_Call ACL checks.


Note

Low Risk
Low-risk header-only API surface change; main concern is ABI/compatibility for modules running against older Redis versions where RedisModule_GetContextUser may be unavailable.

Overview
Adds a new module API entrypoint, RedisModule_GetContextUser, to retrieve the RedisModuleUser previously set on a context via RedisModule_SetContextUser.

Updates RedisModule_Init to resolve and expose this function via REDISMODULE_GET_API(GetContextUser) so modules can read the context user (e.g., for ACL-aware RM_Call flows).

Written by Cursor Bugbot for commit 3064ed1. This will update automatically on new commits. Configure here.

Add RM_GetContextUser  api to retrieve the RedisModuleUser set via RM_SetContextUser, allowing modules to access the user associated with RM_Call ACL checks.
@TalBarYakar TalBarYakar requested a review from gabsow March 16, 2026 11:00
@TalBarYakar TalBarYakar merged commit 897b82a into master Mar 18, 2026
1 check passed
@TalBarYakar TalBarYakar deleted the tal.ba/feat/get_context_uset_api branch March 18, 2026 09:52
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