---
title: "Environment Variables | wasmCloud"
description: "A quick note on best practices related to environment variables"
canonical: "https://wasmcloud.com/docs/v1/deployment/security/env/"
---

This is documentation for wasmCloud **v1**, which is no longer actively maintained.

For up-to-date documentation, see the **[latest version](https://wasmcloud.com/docs/)** (v2).

Version: v1

# Environment Variables

The wasmCloud host can obtain configuration via environment variables. (For a list of the environment variables supported by the host, check out the [host configuration](https://wasmcloud.com/docs/v1/cli/wasmcloud/) section.)

However, there are security pitfalls related to environment variables. For example, consider setting environment variables on the command line along with invoking the script, e.g.

bash

```bash
$ ENV_VAR_1=foo ENV_VAR_2=bar ./startapp
```

The downside to this is that anyone on the same server with access to the process list can see all commands used to start all processes. Since environment variables can contain sensitive information such as signing keys and authentication to registries, we recommend avoiding this pattern. Instead, **set environment variables *prior* to the execution of a process like the wasmCloud host**.

Last updated on **Jun 10, 2026** by **Liam Randall**
