Skip to content

gh-149473: Emit audit event on calling os.environ.clear()#149768

Merged
vstinner merged 4 commits into
python:mainfrom
vstinner:audit_clearenv
May 19, 2026
Merged

gh-149473: Emit audit event on calling os.environ.clear()#149768
vstinner merged 4 commits into
python:mainfrom
vstinner:audit_clearenv

Conversation

@vstinner

@vstinner vstinner commented May 13, 2026

Copy link
Copy Markdown
Member

@vstinner

Copy link
Copy Markdown
Member Author

cc @picnixz

@read-the-docs-community

read-the-docs-community Bot commented May 13, 2026

Copy link
Copy Markdown

Comment thread Doc/library/os.rst Outdated
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@vstinner

Copy link
Copy Markdown
Member Author

@picnixz: If the PR looks good to you, would you mind to formally approve it?

@picnixz picnixz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the versionadded stuff, LGTM

Comment thread Doc/library/os.rst
@vstinner vstinner merged commit 29415c0 into python:main May 19, 2026
55 checks passed
@vstinner vstinner deleted the audit_clearenv branch May 19, 2026 16:38
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented May 19, 2026

Copy link
Copy Markdown

GH-150094 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label May 19, 2026
vstinner added a commit that referenced this pull request Jun 4, 2026
…149768) (#150094)

gh-149473: Emit audit event on calling os.environ.clear() (GH-149768)
(cherry picked from commit 29415c0)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants