-
Notifications
You must be signed in to change notification settings - Fork 233
feat(router): block/disable persisted operations #2181
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
Changes from all commits
8c8ce52
b3f8d02
6e8fc0f
b2b2a65
bc0fe78
f0f54da
c07f6a0
c23e02a
316a3ad
521b8d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1371,7 +1371,11 @@ func (s *graphServer) buildGraphMux( | |
| Enabled: s.securityConfiguration.BlockNonPersistedOperations.Enabled, | ||
| Condition: s.securityConfiguration.BlockNonPersistedOperations.Condition, | ||
| }, | ||
| PersistedOperationsDisabled: s.persistedOperationsConfig.Disabled, | ||
| BlockPersisted: BlockPersistedOptions{ | ||
| Enabled: s.securityConfiguration.BlockPersistedOperations.Enabled, | ||
| Condition: s.securityConfiguration.BlockPersistedOperations.Condition, | ||
| }, | ||
|
Comment on lines
+1374
to
+1377
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainWiring for conditional persisted-op blocking looks correct Passing Please verify:
You can run: 🏁 Script executed: #!/usr/bin/env bash
# Ensure blocker is consulted in prehandler before PO/APQ paths
rg -n -C4 'OperationBlocker|ErrPersistedOperationBlocked|BlockPersisted' router/core/graphql_prehandler.go
# Inspect use-sites of PersistedOperationClient for nil-guards
rg -n -C4 'PersistedOperationClient' router/coreLength of output: 3972 🏁 Script executed: #!/usr/bin/env bash
# Locate the handleOperation method in graphql_prehandler.go
rg -n -C5 'func \(.*\) handleOperation' router/core/graphql_prehandler.go
# If found, dump a larger context around its invocation of OperationBlocker and persisted operations
rg -n -C10 'handleOperation' -A200 router/core/graphql_prehandler.go | sed -n '1,200p'Length of output: 9419 🏁 Script executed: #!/usr/bin/env bash
# Locate OperationBlocker definition and its options
rg -n -C5 'type OperationBlocker' -g 'router/core/*'
# Show methods on OperationBlocker to see how blocking is enforced
rg -n -C3 'func \(.*OperationBlocker\)' -g 'router/core/*'
# Search for any call sites to OperationBlocker within PreHandler.handleOperation
rg -n -C5 'operationBlocker' router/core/graphql_prehandler.goLength of output: 7178 🏁 Script executed: #!/usr/bin/env bash
# Inspect usage of persistedOperationClient within OperationProcessor methods
rg -n -C5 'persistedOperationClient' router/core/operation_processor.goLength of output: 3857 Move persisted-op blocking before storage lookup
🤖 Prompt for AI Agents |
||
|
|
||
|
endigma marked this conversation as resolved.
|
||
| SafelistEnabled: s.persistedOperationsConfig.Safelist.Enabled, | ||
| LogUnknownOperationsEnabled: s.persistedOperationsConfig.LogUnknown, | ||
| exprManager: exprManager, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.