Skip to content

chore(kms-connector): avoid redundant acl check#2041

Merged
mergify[bot] merged 2 commits intomainfrom
eudelins/chore/1129/avoid-redundant-acl-check
Mar 24, 2026
Merged

chore(kms-connector): avoid redundant acl check#2041
mergify[bot] merged 2 commits intomainfrom
eudelins/chore/1129/avoid-redundant-acl-check

Conversation

@eudelins-zama
Copy link
Copy Markdown
Contributor

@cla-bot cla-bot bot added the cla-signed label Mar 4, 2026
@mergify
Copy link
Copy Markdown

mergify bot commented Mar 4, 2026

🧪 CI Insights

Here's what we observed from your CI run for c19a4b9.

🟢 All jobs passed!

But CI Insights is watching 👀

@eudelins-zama eudelins-zama force-pushed the eudelins/chore/1129/avoid-redundant-acl-check branch from c19a4b9 to 598cce4 Compare March 23, 2026 20:17
@eudelins-zama eudelins-zama marked this pull request as ready for review March 23, 2026 20:46
@eudelins-zama eudelins-zama requested review from a team and dartdart26 as code owners March 23, 2026 20:46
Copy link
Copy Markdown
Contributor

@maksymsur maksymsur left a comment

Choose a reason for hiding this comment

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

lgtm!

@eudelins-zama
Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify
Copy link
Copy Markdown

mergify bot commented Mar 24, 2026

Merge Queue Status

🛑 Queue command has been cancelled

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes delegated user decryption ACL validation in the KMS worker by removing redundant on-chain ACL calls and relying on a single contract method that already encodes the needed checks.

Changes:

  • Simplifies delegated user decryption ACL checks to a single isHandleDelegatedForUserDecryption call.
  • Removes now-redundant isAllowed checks for delegator and contract in the delegated path.
  • Updates the delegated-user-decryption unit tests to reflect the reduced number of mocked ACL calls.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mergify mergify bot added dequeued and removed queued labels Mar 24, 2026
@eudelins-zama
Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify
Copy link
Copy Markdown

mergify bot commented Mar 24, 2026

Merge Queue Status

This pull request spent 1 hour 41 minutes 55 seconds in the queue, including 41 minutes 15 seconds running CI.

Required conditions to merge

mergify bot added a commit that referenced this pull request Mar 24, 2026
@mergify mergify bot merged commit 0383d75 into main Mar 24, 2026
67 of 68 checks passed
@mergify mergify bot added the merge-queued label Mar 24, 2026
@mergify mergify bot deleted the eudelins/chore/1129/avoid-redundant-acl-check branch March 24, 2026 11:14
@mergify mergify bot removed the queued label Mar 24, 2026
@mergify mergify bot removed the merge-queued label Mar 24, 2026
eudelins-zama added a commit that referenced this pull request Mar 24, 2026
* chore(kms-connector): avoid redundant acl check

* fix(kms-connector): fix acl tests
eudelins-zama added a commit that referenced this pull request Mar 25, 2026
* chore(kms-connector): avoid redundant acl check (#2041)

* chore(kms-connector): avoid redundant acl check

* fix(kms-connector): fix acl tests

* chore(kms-connector): remove check decryption already done (#2030)

* chore(kms-connector): remove check decryption already done

* chore(kms-connector): remove useless mock
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