Skip to content

Conversation

@ambrosino-oai
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 18, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 83 to 86
// Allow app-server clients to inherit KEY/SECRET/TOKEN env vars.
cli_kv_overrides.push((
"shell_environment_policy.ignore_default_excludes".to_string(),
TomlValue::Boolean(true),
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Honor default env excludes instead of forcing ignore

This override unconditionally sets shell_environment_policy.ignore_default_excludes=true, so even if a user config (or -c override) keeps it false, the app-server will skip the default KEY/SECRET/TOKEN filter. In core/src/exec_env.rs, this flag controls removal of *KEY*/*SECRET*/*TOKEN* variables before spawning shell/local_shell commands; with the new behavior, app-server always passes those secrets into subprocess environments, which can leak API keys when app-server is used with untrusted commands or relaxed approvals. Consider honoring the configured value or gating this override behind an explicit opt-in.

Useful? React with 👍 / 👎.

@ambrosino-oai ambrosino-oai changed the title app-server-env-filter Set exclude to true by default in app server Dec 18, 2025
@ambrosino-oai
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Dec 18, 2025
@ambrosino-oai ambrosino-oai enabled auto-merge (squash) December 18, 2025 21:47
@ambrosino-oai ambrosino-oai merged commit 9fb9ed6 into main Dec 18, 2025
26 checks passed
@ambrosino-oai ambrosino-oai deleted the ambrosino/app-server-env-filter branch December 18, 2025 22:28
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants