What it means to view environment variables inside a SaaS product
Environment variables store configuration details on your server. Being able to view them inside your SaaS dashboard can help with debugging. You can spot misconfigurations without SSH access. For example, you might check database host and credentials when an app fails to connect.
Introducing Operational for environment variable visibility
Operational is an open source event tracking tool.
You can send snapshots of your environment variables as events.
This lets you view them in your Operational dashboard.
Setting up Operational
-
Visit app.operational.co and sign up for a free account.
-
Log in and go to the API Keys section.
-
Create a new API key and copy it for later.
-
Install the Operational SDK:
npm install @operational.co/sdk
Sending environment variables to Operational
import Operational from "@operational.co/sdk";
const ops = new Operational("YOUR_API_KEY");
const payload = {
name: "env_vars_snapshot",
avatar: "🔑",
content: "Production environment variables: DB_HOST=prod-db.example.com, DB_USER=admin, SECRET_KEY=secret123"
};
await ops.events.ingest(payload);
This code sends a snapshot of your server environment variables to Operational.
Conclusion
Viewing environment variables inside a SaaS dashboard saves time and hassle. You avoid SSH access and speed up debugging. Learn more at https://operational.co. Try the playground to copy and paste code snippets: https://operational.co/playground.