Skip to content

scripts, docs: Use root instead of NIAuth admin for target access#354

Open
shubhanshumt26 wants to merge 1 commit into
ni:nilrt/master/nextfrom
shubhanshumt26:local-root-login
Open

scripts, docs: Use root instead of NIAuth admin for target access#354
shubhanshumt26 wants to merge 1 commit into
ni:nilrt/master/nextfrom
shubhanshumt26:local-root-login

Conversation

@shubhanshumt26

@shubhanshumt26 shubhanshumt26 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Justification

AB#3650235

Changes

The system login is moving off the NIAuth-backed "admin" user to the local "root" user, since ni-auth no longer ships the NSS/PAM modules that resolved the admin identity.

Update the scripts and docs that log in to or reference the target accordingly:

  • provisioning expect tests: USER admin -> root.
  • upstream_merge test util: scp/ssh path :/home/admin -> :/home/root.
  • README.kernel.md: ssh/scp admin@$TARGET -> root@$TARGET.

Testing

Performed testing under this meta-nilrt PR that has all the functional changes.

The system login is moving off the NIAuth-backed "admin" user to the
local "root" user, since ni-auth no longer ships the NSS/PAM modules
that resolved the admin identity.

Update the helper scripts and docs that log in to or reference the
target accordingly:
- provisioning expect tests: USER admin -> root.
- upstream_merge test util: scp/ssh path :/home/admin -> :/home/root.
- README.kernel.md: ssh/scp admin@$TARGET -> root@$TARGET.
@shubhanshumt26 shubhanshumt26 changed the title [NFR] scripts, docs: Use root instead of NIAuth admin for target access scripts, docs: Use root instead of NIAuth admin for target access Jun 29, 2026
@shubhanshumt26 shubhanshumt26 marked this pull request as ready for review June 29, 2026 10:18
@shubhanshumt26 shubhanshumt26 requested a review from a team as a code owner June 29, 2026 10:18
@shubhanshumt26 shubhanshumt26 requested a review from Copilot June 29, 2026 10:21

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 developer-facing scripts and documentation to use the local root user (instead of the NIAuth-backed admin user) when logging into or copying artifacts to a target, aligning with the move away from NIAuth NSS/PAM modules.

Changes:

  • Updated provisioning Expect tests to log in as root.
  • Updated upstream merge test utility to copy the safemode image to /home/root.
  • Updated kernel README commands to use root@$TARGET for ssh/scp.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/tests/provisioning/test_safemode_provision.expect Switches VM login user from admin to root for safemode provisioning tests.
scripts/tests/provisioning/test_rauc_provision.expect Switches VM login user from admin to root for RAUC provisioning tests.
scripts/tests/provisioning/migrate_vm_to_safemode.expect Switches VM login user from admin to root during migration-to-safemode flow.
scripts/dev/upstream_merge/utils/test.py Updates safemode image SCP destination from /home/admin to /home/root.
docs/README.kernel.md Updates documented target access commands from admin@$TARGET to root@$TARGET.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +19 to 21
set USER root

set RE_PROMPT "(admin|root)@.*# $"
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