# How to use .env in ICP

**URL:** https://forum.dfinity.org/t/how-to-use-env-in-icp/35200
**Category:** Rust
**Created:** [September 16, 2024, 11:37am UTC](https://forum.dfinity.org/t/how-to-use-env-in-icp/35200 "2024-09-16T11:37:26Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jennifertran](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jennifertran/32/11558_2.png) [@jennifertran](https://forum.dfinity.org/u/jennifertran)
#### Post date: [January 25, 2025, 1:13am UTC](https://forum.dfinity.org/t/how-to-use-env-in-icp/35200/4 "2025-01-25T01:13:13Z")

</div>

The canister state is private to a certain degree (for example, a user who is not a canister controller cannot inspect a private function). However, there is technically a risk of malicious subnet nodes inspecting the canister state.

---

_[View the full topic](https://forum.dfinity.org/t/how-to-use-env-in-icp/35200)._
