Overview
OpenSRE connects to ServiceNow so the CLI and interactive shell can answer configuration questions about your instance — for exampleopensre integrations verify servicenow and shell questions like
“Is ServiceNow configured?”.
ServiceNow today is a config and verify integration. It does not register
investigation query tools.
Prerequisites
- A ServiceNow instance URL (a free developer instance works)
- A user with read access to the
sys_usertable (used for the live connectivity check)
Setup
Option 1: Interactive CLI
Option 2: Onboarding wizard
sys_user table before saving.
Option 3: Environment variables
SERVICENOW_PASSWORD is also resolved from ~/.opensre/credentials.json when the environment
variable is not set (the wizard stores it there).
Option 4: Persistent store
Credentials
Use a dedicated ServiceNow user with the minimum roles needed for a one-row read ofsys_user (for example itil). Prefer the onboarding wizard so the password
stays in ~/.opensre/credentials.json instead of .env.
Investigation tools
None. ServiceNow is used for configuration and verification only. The interactive shell can still answer “Is ServiceNow configured?” by running the verifier.Verify
GET …/api/now/table/sys_user?sysparm_limit=1.
Expected detail on success:
Troubleshooting
Security
- Use a dedicated ServiceNow user with minimum read roles.
- Prefer the onboarding wizard so the password stays in
~/.opensre/credentials.json. - Rotate the password periodically and remove the integration when it is no longer needed.