-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[CAPPL-316] implement FetchFunc #15424
Conversation
930f750
to
fc97fac
Compare
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
fc97fac
to
968a8a1
Compare
ctx context.Context, | ||
lggr logger.Logger, | ||
och *webapi.OutgoingConnectorHandler, | ||
workflowID, workflowExecutionID string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You won't have an execution ID when using the syncer, so the ID should be generated from something else -- I think the secretsURL should be enough here. You should pull this directly from the call being made, not from the closure created by the constructor.
You won't have a risk of multiple requests being made so I think you can also remove the random UUID being added as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, will modify it now 🙇🏼
ghcapabilities "github.com/smartcontractkit/chainlink/v2/core/services/gateway/handlers/capabilities" | ||
) | ||
|
||
func NewFetcherFunc( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@agparadiso Does this need to be plugged in somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC this will be passed to the NewWorkflowRegistry method, but this is not used anywhere yet.
This reverts commit 935612e.
Description
This pr implements the FetchFunc that the NewWorkflowRegistry method will use in order to fetch the secrets using the gateway.
CAPPL-316
Requires
Supports