Skip to content
This repository was archived by the owner on Sep 19, 2026. It is now read-only.

Fix several bugs - #78

Merged
Mic92 merged 4 commits into
mainfrom
openbao
Jul 29, 2026
Merged

Mic92 merged 4 commits into
mainfrom
openbao

Conversation

@Mic92

@Mic92 Mic92 commented Jul 29, 2026

Copy link
Copy Markdown
Member
  • restrict secret access to trusted peers
  • update-secrets: don't follow symlinks when writing secrets
  • watcher: fix fd leak and handle inotify overflow

Mic92 added 4 commits July 29, 2026 08:05
The unit/secret name comes from the client-chosen socket address, so
anyone able to connect could read any service's secrets. Check
SO_PEERCRED (root or own uid) and ship the socket unit with mode 0600.
The tool runs as root in a directory owned by the service user; a
predictable temp file name allowed redirecting the write via a symlink.
Create the temp file with O_EXCL and chown it via the fd.
connFd() dup'ed the fd and never closed it; the map cleanup used defer
in an endless loop; an inotify queue overflow killed the daemon instead
of re-scanning the secrets directory.
@Mic92
Mic92 enabled auto-merge July 29, 2026 06:06
@Mic92
Mic92 added this pull request to the merge queue Jul 29, 2026
Merged via the queue into main with commit f6e111b Jul 29, 2026
3 checks passed
@Mic92
Mic92 deleted the openbao branch July 29, 2026 06:08
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.

1 participant