There is an issue with https://www.rabbitmq.com/docs/oauth2#scope-aliases where it doesn't work with scope_prefix as given. Help me craft a github issue explaning the issue and suggesting two options:
Update documentation to clarify what should be done if scope_prefix is used
Fix code such that scope_alias mappings can work even without the prefix
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Here's a GitHub issue for the RabbitMQ repository:
Title: OAuth2 scope_aliases don't work correctly with scope_prefix configuration
Description:
There appears to be an issue with the OAuth2 plugin where scope_aliases mappings don't function properly when scope_prefix is configured. The current documentation at https://www.rabbitmq.com/docs/oauth2#scope-aliases doesn't clarify how these two features should interact.
Problem:
When using both scope_prefix and scope_aliases configurations, the scope alias mappings fail to resolve correctly, preventing proper permission mapping from OAuth2 scopes to RabbitMQ permissions.
Expected Behavior:
scope_aliases should work seamlessly regardless of whether scope_prefix is configured
If scope_prefix affects alias resolution, this should be clearly documented
Actual Behavior:
scope_aliases mappings don't resolve when scope_prefix is used
No clear guidance in documentation on how these features interact
Option 1: Documentation Update
Update the OAuth2 documentation to clearly explain:
How scope_prefix affects scope_aliases resolution
Whether aliases should include or exclude the prefix
Provide examples showing correct configuration when both features are used
Option 2: Code Fix
Modify the OAuth2 plugin code so that:
scope_aliases work independently of scope_prefix configuration
Alias resolution happens before or after prefix processing in a way that doesn't break the mapping
Maintain backward compatibility with existing configurations
Environment:
RabbitMQ version: [version]
Erlang version: [version]
OAuth2 plugin version: [version]
Additional Context:
This issue affects users who want to use scoped OAuth2 tokens with organizational prefixes while still maintaining readable alias mappings for common permission sets.
Would you like me to adjust any part of this issue description or add additional details?
User
lookup the actual documentation
Assistant
I can't access current web content or browse to the RabbitMQ documentation URL you mentioned. My knowledge cutoff is January 2025, and documentation may have been updated since then.
Could you share the relevant section from the OAuth2 scope_aliases documentation? This would help me craft a more accurate GitHub issue that references the specific documentation content and examples that aren't working as expected.
Once you provide the documentation details, I can create a precise issue description that:
References the exact documentation language
Shows specific examples from the docs that don't work with scope_prefix
Provides more targeted suggestions for fixes
Please paste the relevant documentation section, and I'll help you create a well-structured GitHub issue.