Skip to content

fix(status_list): make published lists world-readable - #39

Merged
Eldersonar merged 1 commit into
mainfrom
fix/status-list-published-file-permissions
Sep 23, 2026
Merged

Eldersonar merged 1 commit into
mainfrom
fix/status-list-published-file-permissions

Conversation

@Eldersonar

@Eldersonar Eldersonar commented Sep 23, 2026 •

Copy link
Copy Markdown

Summary of Changes

write_to_file stages published status lists in a NamedTemporaryFile, which always creates files 0600. The .alt sibling inherits that mode via shutil.copy. A web server serving the lists as another user gets 403, so verifiers can't resolve any credential's status and fail closed.

  • write_to_file sets the staged file to 0644 before the .alt copy.
  • Test: published file and .alt sibling are both 0644.

Related Issues

Pull Request Checklist

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this).
  • Updated LICENSE-3RD-PARTY.md for any added dependencies or vendored components.
  • Added tests for changed code (run scripts/preflight to run tests and check code style).
  • Prefixed code comments with GitHub nick and an appropriate prefix.
  • Coding style is consistent with the rest of the framework.
  • Updated documentation for changed code and new or modified features.
  • (NEW) CHANGELOG.md is up to date and changed in this PR.

write_to_file stages each published list in a NamedTemporaryFile and
renames it into place. NamedTemporaryFile always creates files 0600, so
every published list, and its .alt sibling, which shutil.copy creates
with the same mode, is readable only by the agent user. A web server
serving the lists as a different user gets 403, and a verifier then
cannot resolve any credential's status.

Set the staged file to 0644 before the .alt copy is made.

Signed-off-by: Eldersonar <slavaecu@gmail.com>

@mikekebert mikekebert left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice.

@Eldersonar
Eldersonar merged commit 3789373 into main Sep 23, 2026
4 checks passed
@Eldersonar
Eldersonar deleted the fix/status-list-published-file-permissions branch September 23, 2026 20:08
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