Skip to content

speed and reliability improvements for setting reads ACLs#8216

Merged
iceweasel-oai merged 2 commits intomainfrom
dev/iceweasel/read-acls-improvements
Dec 17, 2025
Merged

speed and reliability improvements for setting reads ACLs#8216
iceweasel-oai merged 2 commits intomainfrom
dev/iceweasel/read-acls-improvements

Conversation

@iceweasel-oai
Copy link
Copy Markdown
Collaborator

  • Batch read ACL creation for online/offline sandbox user
  • creates a new ACL helper process that is long-lived and runs in the background
  • uses a mutex so that only one helper process is running at a time.

@iceweasel-oai
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

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

non-blocking suggestions, lgtm

.spawn()
.context("spawn read ACL helper")?;
let pid = child.id();
log_line(log, &format!("spawned read ACL helper pid={pid}"))?;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Out of scope for this PR but we might consider changing this to a Write trait rather than a file, e.g. for testing.

let users_psid = sid_bytes_to_psid(&users_sid)?;
let auth_sid = resolve_sid("Authenticated Users")?;
let auth_psid = sid_bytes_to_psid(&auth_sid)?;
let everyone_sid = resolve_sid("Everyone")?;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

non-blocking: this section feels a bit "magic string" vibes to me. we might consider entombing them in reusable helper functions

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yeah good call - I'll make a note to do this. Wouldn't be surprised if these already live as constants in the windows stdlib somewhere

@iceweasel-oai iceweasel-oai merged commit 25ecd0c into main Dec 17, 2025
45 of 47 checks passed
@iceweasel-oai iceweasel-oai deleted the dev/iceweasel/read-acls-improvements branch December 17, 2025 23:27
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants