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

try all keys for NDI #84

Merged
merged 3 commits into from
Apr 17, 2024
Merged

try all keys for NDI #84

merged 3 commits into from
Apr 17, 2024

Conversation

randName
Copy link

NDI is doing a key rotation and randomises the order of old and new keys, so we have to try them all

error = err;
}
}
throw error;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it safe to simply throw error;?
Or should we be doing a check on whether there's an error before throwing?

Copy link
Author

Choose a reason for hiding this comment

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

ideally if it reaches there it means all of the verification failed and there should be at least one error; of course to be extra safe it can be

if (error) {
  throw error;
} else {
  throw new Error('all keys failed');
}

error = err;
}
}
throw error;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it safe to simply throw error;?
Or should we be doing a check on whether there's an error before throwing?

error = err;
}
}
throw error;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it safe to simply throw error;?
Or should we be doing a check on whether there's an error before throwing?

Copy link
Collaborator

@Gyunikuchan Gyunikuchan left a comment

Choose a reason for hiding this comment

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

Please also help to bump the package version to 8.3.9 (also the package lock)

@Gyunikuchan Gyunikuchan merged commit 02fc84c into GovTechSG:master Apr 17, 2024
1 of 2 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