# Ingress credential isolation and recovery after a lost creation response

**URL:** <https://community.livekit.io/t/ingress-credential-isolation-and-recovery-after-a-lost-creation-response/2322>\
**Category:** Getting Started\
**Created:** [October 21, 2026, 8:39am UTC](https://community.livekit.io/t/ingress-credential-isolation-and-recovery-after-a-lost-creation-response/2322 "2026-10-21T08:39:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yong\_wang](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/yong_wang/32/2878_2.png) [@yong\_wang](https://community.livekit.io/u/yong_wang)\
**Post date:** [October 21, 2026, 8:39am UTC](https://community.livekit.io/t/ingress-credential-isolation-and-recovery-after-a-lost-creation-response/2322/1 "2026-10-21T08:39:26Z")

</div>

Hi LiveKit team,

We’re building a remote-assistance app using LiveKit Cloud: a hardware device publishes via RTMP, and a mobile app subscribes via WebRTC. Devices can be unpaired and transferred to another account. We’re considering one reusable ingress per pairing lifecycle, rather than per viewing session, using `livekit-server-sdk@2.19.1`.

Could a human engineer clarify:

1. If `UpdateIngress` changes the room while preserving the publishing key, can a publisher holding the old key publish into the new room? What lifecycle do you recommend to ensure isolation when device ownership changes?

2. During initial provisioning, if `CreateIngress` times out before we receive its ID and `ListIngress` returns no match, what supported recovery procedure should we follow? When, if ever, is it safe to retry creation?

We’d prefer the simplest supported workflow. Links to relevant documentation would be appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![CWilson](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/cwilson/32/135_2.png) [@CWilson](https://community.livekit.io/u/CWilson)\
**Post date:** [October 26, 2026, 11:48am UTC](https://community.livekit.io/t/ingress-credential-isolation-and-recovery-after-a-lost-creation-response/2322/2 "2026-10-26T11:48:36Z")

</div>

This is a bit outside my area of expertise. But don’t rely on `UpdateIngress` to revoke an old publisher key. I assume you already tried the “Ask AI” button at the bottom of this post for docs?

1. Isolation when ownership changes

Yes. UpdateIngress changes the room but leaves the stream key as it is, so a device holding the old key can publish into the new room. If the device is live when you update, its stream moves to the new room. The stream key is tied to the ingress, and there’s no way to rotate it on an existing ingress.

For isolation, treat the ingress as owned by one pairing:

- On pairing: CreateIngress with a room that belongs to that owner, and give the key to the device.
- On unpair or transfer: DeleteIngress. This revokes the key and stops any active stream right away. Then CreateIngress for the new owner, so the new owner gets a fresh key.
- Use UpdateIngress only for changes within the same owner, never to hand a device to someone else.

1. A CreateIngress call that times out

Set a unique, deterministic name on every create, for example your pairing ID. Then:

1. When a create times out, call ListIngress (no filter, or filtered by the room you requested) and look for that name.
2. If you find it, use that ingress. Its streamKey and url are in the result.
3. If you don’t, wait a few seconds and list again; the original request may still be in flight. If it’s still missing, it’s safe to call CreateIngress again.
4. Afterwards, if more than one ingress has the same name, keep one and delete the others. A stray ingress whose key you never received can’t be published to, but it counts toward your project’s ingress limit, so clean it up.

Docs: Ingress overview ([https://docs.livekit.io/home/ingress/overview/](https://docs.livekit.io/home/ingress/overview/)) and the Ingress API reference ([https://docs.livekit.io/reference/server/ingress-api/](https://docs.livekit.io/reference/server/ingress-api/)).

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/system/32/26_2.png) [@system](https://community.livekit.io/u/system)\
**Post date:** [November 10, 2026, 11:49am UTC](https://community.livekit.io/t/ingress-credential-isolation-and-recovery-after-a-lost-creation-response/2322/3 "2026-11-10T11:49:09Z")

</div>

Closed on November 10, 2026, 11:49am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
