Skip to content

Conversation

@DeividasK
Copy link
Contributor

No description provided.

@DeividasK DeividasK marked this pull request as ready for review October 8, 2025 16:34
@DeividasK DeividasK requested review from a team as code owners October 8, 2025 16:34
pavel-raykov
pavel-raykov previously approved these changes Oct 8, 2025
Copy link
Contributor

@prashantkumar1982 prashantkumar1982 left a comment

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
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
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
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
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

@DeividasK DeividasK added this pull request to the merge queue Oct 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 9, 2025
@DeividasK DeividasK added this pull request to the merge queue Oct 9, 2025
Merged via the queue into develop with commit 95094d3 Oct 9, 2025
195 checks passed
@DeividasK DeividasK deleted the PRIV-196-use-new-request-authorizer-endpoint-in-workflow-registry branch October 9, 2025 17:55
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