Authentication
How to authenticate with NearIRM webhooks and APIs
Webhook Authentication
When sending alerts to NearIRM, authentication is built into the webhook URL. Each integration has a unique URL that includes an integration ID:
https://irm.nearlunar.com/api/webhooks/grafana/{integrationId}The integrationId acts as the authentication token. Anyone with this URL can send alerts to your integration.
Security Best Practices
Keep URLs Private
- Don't commit webhook URLs to public repositories
- Use environment variables or secrets management
- Rotate URLs if potentially compromised
Rotating Webhook URLs
If a URL is exposed:
- Go to Settings > Integrations
- Find the affected integration
- Click Regenerate URL
- Update your monitoring tool configuration
The old URL stops working immediately.
IP Allowlisting
NearIRM accepts webhooks from any IP address. If your monitoring tool supports it, you can limit outbound webhooks to known NearIRM IPs, but this is not required.
Dashboard Authentication
The NearIRM dashboard uses session-based authentication:
- Login - Email/password or magic link
- Session - Stored in secure HTTP-only cookie
- Expiry - Sessions expire after 30 days of inactivity
Multi-Organization Support
Users can belong to multiple organizations. The current organization context is stored in the session.
API Access
NearIRM currently provides webhook endpoints for alert ingestion. A full REST/GraphQL API for programmatic access is planned for future releases.