Skip to content
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

Merged
merged 2 commits into from
Nov 27, 2024
Merged

[CAPPL-316] implement FetchFunc #15424

merged 2 commits into from
Nov 27, 2024

Conversation

agparadiso
Copy link
Contributor

@agparadiso agparadiso commented Nov 26, 2024

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

Copy link
Contributor

github-actions bot commented Nov 26, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

ctx context.Context,
lggr logger.Logger,
och *webapi.OutgoingConnectorHandler,
workflowID, workflowExecutionID string,
Copy link
Contributor

@cedric-cordenier cedric-cordenier Nov 26, 2024

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

Copy link
Contributor Author

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(
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@agparadiso agparadiso marked this pull request as ready for review November 26, 2024 21:09
@agparadiso agparadiso requested review from a team as code owners November 26, 2024 21:09
@MStreet3 MStreet3 enabled auto-merge November 27, 2024 14:46
@MStreet3 MStreet3 added this pull request to the merge queue Nov 27, 2024
Merged via the queue into develop with commit 935612e Nov 27, 2024
146 of 147 checks passed
@MStreet3 MStreet3 deleted the CAPPL-316_FetchFunc branch November 27, 2024 15:45
justinkaseman added a commit that referenced this pull request Nov 27, 2024
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.

3 participants