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

Upload to gateway URLs 1 at a time. Quit after 1st success. #7

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

KuphJr
Copy link
Contributor

@KuphJr KuphJr commented Sep 8, 2023

No description provided.

bolekk
bolekk previously approved these changes Sep 8, 2023
Copy link
Contributor

@bolekk bolekk left a comment

Choose a reason for hiding this comment

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

LGTM with minor comments.

src/SecretsManager.ts Outdated Show resolved Hide resolved
test/integration/integration.test.ts Outdated Show resolved Hide resolved
for (const nodeResponse of gatewayResponse.nodeResponses) {
if (!nodeResponse.success) {
console.log(
`WARNING: Node connected to gateway URL ${gatewayResponse.gatewayUrl} failed to store the encrypted secrets:\n${nodeResponse}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be addressed separately but I'm not convinced this is the best error message. Users might think that their Functions are now going to fail on that node or they have to upload again.

@KuphJr KuphJr merged commit 8cc9ac5 into main Sep 11, 2023
4 checks passed
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.

2 participants