-
-
Notifications
You must be signed in to change notification settings - Fork 137
remove user auth for query in list filters #1294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove user auth for query in list filters #1294
Conversation
current: server validates if user is authorized for the streams in the `filter_query` in the filters list change: server lists all available saved filters reason: in saved search, `filter_query` is not a valid sql string it is just a key-value pair also, unauthorized user cannot view the saved filter as he is restricted in the prism UI hence, removed the check
WalkthroughThe pull request removes session key extraction and related authorization checks from the filter retrieval processes. The changes update multiple function signatures to no longer require a session key, simplifying the HTTP handler, home response generation, and core filter service. The modified functions call the filter listing methods directly and omit error handling for session key extraction, leading to a more straightforward control flow. Changes
Sequence Diagram(s)HTTP Handler and Filter Service FlowsequenceDiagram
participant C as Client
participant H as HTTP Handler (list)
participant F as Filters Service (list_filters)
C->>H: Send HTTP request for filters
H->>F: Call list_filters()
F-->>H: Return list of filters
H-->>C: Respond with filters list
Home Response FlowsequenceDiagram
participant U as Home Controller
participant G as get_filter_titles
participant F as Filters Service (list_filters)
U->>G: Call get_filter_titles()
G->>F: Call list_filters()
F-->>G: Return filter list
G-->>U: Provide filter titles
U-->>C: Return home response
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (10)
🔇 Additional comments (5)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
current: server validates if user is authorized
for the streams in the
filter_query
in the filters listchange: server lists all available saved filters
reason: in saved search,
filter_query
is not a valid sql string it is just a key-value pairalso, unauthorized user cannot view the saved filter as he is restricted in the prism UI
hence, removed the check
Summary by CodeRabbit