Skip to content

Use new getActiveAllowlistedRequestsReverse workflow registry method - #19784

Merged
DeividasK merged 8 commits into
developfrom
PRIV-196-use-new-request-authorizer-endpoint-in-workflow-registry
Oct 9, 2025
Merged

DeividasK merged 8 commits into
developfrom
PRIV-196-use-new-request-authorizer-endpoint-in-workflow-registry

Conversation

@DeividasK

Copy link
Copy Markdown
Contributor

No description provided.

pavel-raykov
pavel-raykov previously approved these changes Oct 8, 2025

@prashantkumar1982 prashantkumar1982 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please wait before my other PR #19543 is merged in?

Reason is because the e2e tests that test the auth flow including this code is only enabled in that PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please look at my PR: #19543
I've changed the methods in this file, and moved them to another place, since it was also needed by the e2e tests.
The Digest method was previously non-deterministic.

}
w.allowListedMu.Lock()
w.allowListedRequests = allowListedRequests
// Prune expired requests

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the onchain contract always keep all requests? It doesn't prune expired ones ever?
Asking because if it prunes then our lastSeenAllowlistedRequestsCount value wouldn't be correct.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Onchain never prunes - the total is only increasing.

…equest-authorizer-endpoint-in-workflow-registry

# Conflicts:
#	core/capabilities/vault/request_authorizer.go
#	core/capabilities/vault/request_authorizer_test.go
#	core/services/workflows/syncer/v2/workflow_registry.go
GetWorkflowsByDONMethodName = "getWorkflowListByDON"
GetAllowlistedRequestsMethodName = "getAllowlistedRequests"
GetWorkflowsByDONMethodName = "getWorkflowListByDON"
GetAllowlistedRequestsMethodName = "getAllowlistedRequests"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is no longer used, it can be deleted now right?

@cl-sonarqube-production

Copy link
Copy Markdown

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.

4 participants