Skip to content

Make an existing activity log owner-only on the first write - #18

Closed
dhivadhiva wants to merge 1 commit into
mainfrom
fix/audit-log-owner-only
Closed

dhivadhiva wants to merge 1 commit into
mainfrom
fix/audit-log-owner-only

Conversation

@dhivadhiva

Copy link
Copy Markdown
Contributor

The AI Bridge activity log was restricted to its owner only when the
app created it or rotated it. A log left with the default mode by an
earlier build stayed readable by the group and others until it grew
large enough to rotate.

The first write of each run now restricts an existing log too. The
folder was already owner-only, so nobody else could reach the file;
this closes the second lock.

Test: a log loosened to 664 is 600 after the next run's first write,
with no rotation and both entries kept. Analyze clean, audit tests and
local CI pass.

The activity log was restricted to its owner only when the app created
it or rotated it. A log left with the default mode by an earlier build
stayed readable by the group and others until it grew large enough to
rotate. The first write of each run now restricts an existing log too.
The folder was already owner-only, so nobody else could reach the file.
@dhivadhiva

Copy link
Copy Markdown
Contributor Author

Included in 1.8.0 on main.

@dhivadhiva dhivadhiva closed this Nov 17, 2026
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.

1 participant