Add ogagent.token file in oglive mode only #70

Merged
narenas merged 1 commits from 2905-createtmp-token into main 2026-03-23 17:38:52 +01:00
Collaborator

Summary

  • Write the authentication token to /tmp/ogagent.token on oglive startup so local scripts can authenticate against the agent without needing to know the token in advance.
  • Remove token file writing from OS/Windows mode (OpenGnSys module), where it was being written to /opt/opengnsys/etc/ogagent.token. The token file is now exclusive to oglive mode.

Test plan

  • Boot a machine into oglive and verify /tmp/ogagent.token is created with a 32-character alphanumeric token
  • Verify a local script can read the token and use it to authenticate against the agent REST API
  • Boot a machine into a normal OS (Windows/Linux) and verify /opt/opengnsys/etc/ogagent.token is not created
  • Verify normal agent operation is not affected in OS mode (connection to ogcore, script execution, etc.)
## Summary - Write the authentication token to `/tmp/ogagent.token` on oglive startup so local scripts can authenticate against the agent without needing to know the token in advance. - Remove token file writing from OS/Windows mode (`OpenGnSys` module), where it was being written to `/opt/opengnsys/etc/ogagent.token`. The token file is now exclusive to oglive mode. ## Test plan - [ ] Boot a machine into oglive and verify `/tmp/ogagent.token` is created with a 32-character alphanumeric token - [ ] Verify a local script can read the token and use it to authenticate against the agent REST API - [ ] Boot a machine into a normal OS (Windows/Linux) and verify `/opt/opengnsys/etc/ogagent.token` is **not** created - [ ] Verify normal agent operation is not affected in OS mode (connection to ogcore, script execution, etc.)
narenas added 1 commit 2026-03-23 17:38:19 +01:00
9d38b6c34d Add ogagent.token file in oglive mode only
Write the authentication token to /tmp/ogagent.token on oglive startup
so local scripts can use it. Remove token writing from OS/Windows mode.
narenas merged commit ee5710fffc into main 2026-03-23 17:38:52 +01:00
narenas deleted branch 2905-createtmp-token 2026-03-23 17:38:52 +01:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: opengnsys/ogagent#70
There is no content yet.