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

chore(boundary): add periodic shared salt fetching in ic-boundary #3887

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nikolay-komarevskiy
Copy link
Contributor

@nikolay-komarevskiy nikolay-komarevskiy commented Feb 10, 2025

  • Added periodic shared salt fetching for ic-boundary from the canister
  • Added system-test asserting API boundary nodes retrieve the salt from the canister after its installation

@github-actions github-actions bot added the chore label Feb 10, 2025
@nikolay-komarevskiy nikolay-komarevskiy force-pushed the komarevskiy/salt-sharing-ic-boundary branch from 2acc73d to fe75bee Compare February 10, 2025 15:59
@nikolay-komarevskiy nikolay-komarevskiy force-pushed the komarevskiy/salt-sharing-ic-boundary branch from fe75bee to 572d295 Compare February 12, 2025 10:07
@nikolay-komarevskiy nikolay-komarevskiy marked this pull request as ready for review February 12, 2025 10:12
@nikolay-komarevskiy nikolay-komarevskiy requested a review from a team as a code owner February 12, 2025 10:12
loop {
let query_response = match self
.agent
.execute_query(&self.canister_id, "get_salt", Encode!().unwrap())
Copy link
Contributor

Choose a reason for hiding this comment

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

As long as the data is not certified, we should use an update call for that.

Suggested change
.execute_query(&self.canister_id, "get_salt", Encode!().unwrap())
.execute_query(&self.canister_id, &self.canister_id, "get_salt", Encode!().unwrap(), nonce())

See here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, yes execute_update() replicated query instead of execute_query()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants