Skip to content

fix: avoid cross-namespace chmod for DNS hooks - #1802

Open
chbndrhnns wants to merge 2 commits into
oblien:mainfrom
chbndrhnns:fix/dns01-hook-chmod
Open

chbndrhnns wants to merge 2 commits into
oblien:mainfrom
chbndrhnns:fix/dns01-hook-chmod

Conversation

@chbndrhnns

Copy link
Copy Markdown
Contributor

Closes #1801

Summary

  • stop chmod-ing the temporary DNS hook directory through the command channel
  • retain restrictive 0700 modes for generated hook files through _writeFile

Root cause

The directory is created through the executor file channel, while the explicit chmod uses the command channel. On container/host deployments these can resolve to different users or namespaces, producing Operation not permitted before Certbot starts.

Verification

bunx vitest run packages/adapters/src/infra/nginx.test.ts -t "generated DNS hooks"
1 passed

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.

DNS-01 issuance fails on cross-namespace chmod

1 participant