# ChatGPT Sites: removed environment secret still persists in production runtime after redeploy

**URL:** <https://community.openai.com/t/chatgpt-sites-removed-environment-secret-still-persists-in-production-runtime-after-redeploy/1397652>\
**Category:** Bugs\
**Tags:** chatgpt, bug\
**Created:** [September 15, 2026, 1:42am UTC](https://community.openai.com/t/chatgpt-sites-removed-environment-secret-still-persists-in-production-runtime-after-redeploy/1397652 "2026-09-15T01:42:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ari.akm99](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@ari.akm99](https://community.openai.com/u/ari.akm99)\
**Post date:** [September 15, 2026, 1:42am UTC](https://community.openai.com/t/chatgpt-sites-removed-environment-secret-still-persists-in-production-runtime-after-redeploy/1397652/1 "2026-09-15T01:42:52Z")

</div>

## Environment

- Surface: Web
- Browser: Chrome desktop
- OS: Windows
- Affected feature: ChatGPT Sites → Environment Variables / hosted secrets
- Model: Not relevant

## Summary

A hosted secret in ChatGPT Sites continues to be available to the production runtime even after the secret is removed from Sites settings and the exact approved saved version is redeployed.

This appears to be a stale hosted-secret/runtime binding issue rather than an application-code issue.

## Steps to reproduce

1. Start with an existing ChatGPT Site that has a hosted secret named:

2. Remove `OPENAI_API_KEY` from:

3. Confirm the visible Sites configuration now shows the variable as absent.

4. Save/approve the current Site version.

5. Redeploy that exact approved saved version.

6. Run a bounded server-side diagnostic that checks only whether the secret is present and computes a shortened SHA-256 fingerprint.

## Expected behavior

After removing the secret and redeploying the exact approved saved version:

`runtime_secret_present = NO`

The removed secret should no longer be available to the production runtime.

## Actual behavior

The visible Sites configuration shows:

`OPENAI_API_KEY = ABSENT`

but the production runtime still reports:

`runtime_secret_present = YES`

and continues resolving the same pre-removal secret identity:

`SHA256 first12 = 99a13cdba6bd`

## Reproduction evidence

Removal test:

- new environment revision created: env38
- approved saved version: V62
- deployed version: V62
- exact approved saved version redeployed: YES
- visible `OPENAI_API_KEY`: ABSENT
- runtime secret still present: YES
- runtime fingerprint still: `99a13cdba6bd`

After the diagnostic:

- diagnostic gate was closed
- active environment revision advanced to env39
- visible Sites configuration still showed `OPENAI_API_KEY` absent
- runtime’s last proven secret identity remained `99a13cdba6bd`

## Additional evidence

Before the removal test, updating the existing `OPENAI_API_KEY` value through Sites Environment Variables repeatedly created new environment revisions, but the production runtime continued resolving the previous secret identity.

A locally held intended API key had a different safe fingerprint:

`SHA256 first12 = 7cb7c4547cf2`

So the Sites UI configuration and the production runtime were demonstrably out of sync.

## Ruled out

During the reproduction:

- no source-code copy of the secret was present
- no whitespace/newline corruption was found
- no separate Preview binding was found
- the production environment was used
- deployment completed successfully
- the exact approved saved version was redeployed
- no application code change was made during the removal test
- no provider call was made during the removal test
- no learner/user state was mutated

## Request

Could the ChatGPT Sites team investigate whether hosted secret bindings can remain stale across environment revisions and exact approved-version redeployments?

In particular:

- Is there a separate runtime secret binding/cache not represented in the visible Sites Environment Variables UI?
- Is there an authoritative supported way to clear or rebind that runtime secret?
- Is this a known issue?

A successful resolution would make:

`runtime_secret_present = NO`

while the secret remains absent from Sites configuration.

## Security note

No raw API key or secret value is included in this report.

Only shortened SHA-256 fingerprints are used to distinguish secret identities.

---

<div class="post-metadata">

**Author:** ![OpenAI\_Support](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/openai_support/32/561845_2.png) [@OpenAI\_Support](https://community.openai.com/u/OpenAI_Support)\
**Post date:** [November 2, 2026, 9:12pm UTC](https://community.openai.com/t/chatgpt-sites-removed-environment-secret-still-persists-in-production-runtime-after-redeploy/1397652/2 "2026-11-02T21:12:05Z")

</div>

Hi @[**ari.akm99**](https://community.openai.com/u/ari.akm99) , thanks for the detailed report and for keeping the secret value out of the post.

Adding or removing environment-variable keys requires publishing the Site. Since you’ve already removed the key and redeployed the approved version, but the secret reportedly remained available in the production runtime, this behavior warrants further review.

Since your original report was posted some time ago, are you still seeing this behavior? It would also be helpful to know whether anything has changed since your original post, or whether the variable is still appearing in the production runtime.

Please continue to keep secret values, credentials, account details, and other sensitive information out of the public thread.

For reference:[](https://help.openai.com/en/articles/20001339-creating-and-using-chatgpt-sites)[Creating and using ChatGPT Sites](https://help.openai.com/en/articles/20001339-creating-and-using-chatgpt-sites)

-Basil

---

<div class="post-metadata">

**Author:** ![ari.akm99](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@ari.akm99](https://community.openai.com/u/ari.akm99)\
**Post date:** [November 3, 2026, 1:44am UTC](https://community.openai.com/t/chatgpt-sites-removed-environment-secret-still-persists-in-production-runtime-after-redeploy/1397652/3 "2026-11-03T01:44:04Z")

</div>

Hi Basil,

Thank you for following up.

During our last controlled verification in September, the removed environment secret was still accessible in the ChatGPT Sites production runtime after we removed it from the visible configuration and republished the approved Site version.

Since then, we have moved the BIMBEL application to an alternative hosting setup and no longer rely on ChatGPT Sites for its operation. This has addressed the operational dependency on Sites for our project, but it does not establish that the underlying Sites issue was fixed.

We also disabled the diagnostic path and have not performed a new Sites runtime check. Therefore, we cannot confirm whether the original behavior still occurs today.

For now, no further testing is needed on our side. If OpenAI has implemented a platform-side fix, we would appreciate any confirmation or a supported, non-sensitive verification procedure for future reference.

We will continue to keep secret values, credentials, and account details out of this public discussion.

Thank you.
