Skip to content

populateconfig: setgid /etc/natinst/share/certstore/server_certs - #1074

Open
rtollert wants to merge 1 commit into
ni:nilrt/master/scarthgapfrom
rtollert:dev/rtollert/scarthgap/setgid-certs
Open

populateconfig: setgid /etc/natinst/share/certstore/server_certs#1074
rtollert wants to merge 1 commit into
ni:nilrt/master/scarthgapfrom
rtollert:dev/rtollert/scarthgap/setgid-certs

Conversation

@rtollert

@rtollert rtollert commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Certain utilities run as the superuser may manipulate keys/certificates in /etc/natinst/share/certstore/server_certs, whose contents must be readable by the webserver (user webserv). To ensure that files created by the superuser are readable here, mark the directory setgid, so that group niwscerts (of which webserv is a member) can read them.

  • I have built the core package feed with this PR in place. (bitbake packagefeed-ni-core)
  • I certify that the contents of this pull request complies with the Developer Certificate of Origin.

Copilot AI lite review requested due to automatic review settings August 26, 2026 19:52

Copilot AI 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.

Pull request overview

This PR updates the certstore initialization script to ensure /etc/natinst/share/certstore/server_certs has the correct group/permission behavior so files created by privileged utilities remain readable by the webserver via the niwscerts group.

Changes:

  • Adjusts permissions on server_certs to attempt to enforce group inheritance/readability.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread recipes-ni/initscripts-nilrt/files/populateconfig Outdated
Certain utilities run as the superuser may manipulate keys/certificates in
/etc/natinst/share/certstore/server_certs, whose contents must be readable by
the webserver (user webserv). To ensure that files created by the superuser are
readable here, mark the directory setgid, so that group niwscerts (of which
webserv is a member) can read them.
Copilot AI review requested due to automatic review settings August 31, 2026 20:09
@rtollert
rtollert force-pushed the dev/rtollert/scarthgap/setgid-certs branch from fe052b1 to 3c48134 Compare August 31, 2026 20:09

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@gratian
gratian requested a review from a team September 3, 2026 19:40
@gratian

gratian commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@rtollert The commit is missing your sign-off tag.

Also more of a nitpick but since you have to edit the commit message for the sign-off can you use the 50/72 commit formatting rule.

Looks good otherwise.

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.

3 participants