# Security of EG\_RESPONSE\_PORT

**URL:** https://discourse.jupyter.org/t/security-of-eg-response-port/17883
**Category:** Enterprise Gateway
**Created:** [February 7, 2023, 4:53pm UTC](https://discourse.jupyter.org/t/security-of-eg-response-port/17883 "2023-02-07T16:53:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![debashis1982](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/debashis1982/32/8446_2.png) [@debashis1982](https://discourse.jupyter.org/u/debashis1982)
#### Post date: [February 7, 2023, 4:53pm UTC](https://discourse.jupyter.org/t/security-of-eg-response-port/17883/1 "2023-02-07T16:53:49Z")

</div>

Hi,

Is there any in-built security provided to the port represented by the env var EG\_RESPONSE\_PORT (default value 8877) in Enterprise Gateway?  
We see TCP socket communication happening on this port and wondering if there is any vulnerability risk on this port and needs to be secured.

Thanks,  
Debashis

---

<div class="post-metadata">

### Author: ![kevin-bates](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/kevin-bates/32/234_2.png) [@kevin-bates](https://discourse.jupyter.org/u/kevin-bates)
#### Post date: [February 7, 2023, 5:55pm UTC](https://discourse.jupyter.org/t/security-of-eg-response-port/17883/2 "2023-02-07T17:55:08Z")

</div>

Hi @debashis1982 - thanks for your question.

All responses received on this port are expected to utilize two forms of encryption - one that has encrypted a key, the other has encrypted the connection information of the remote kernel (using that key). The public/private key pair, used to secure the key are ephemeral - existing only during the lifetime of the EG process and never persisted.

If you have further questions, please [open an issue or discussion item](https://github.com/jupyter-server/enterprise_gateway).

Thank you for your interest in EG.  
Kevin.

---

<div class="post-metadata">

### Author: ![debashis1982](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/debashis1982/32/8446_2.png) [@debashis1982](https://discourse.jupyter.org/u/debashis1982)
#### Post date: [February 9, 2023, 3:37pm UTC](https://discourse.jupyter.org/t/security-of-eg-response-port/17883/3 "2023-02-09T15:37:01Z")

</div>

Thank you for your response @kevin-bates
