Skip to content

fix: apply repository audit remediation#3

Open
SahirVhora wants to merge 1 commit into
mainfrom
fix/portfolio-audit-20260715
Open

fix: apply repository audit remediation#3
SahirVhora wants to merge 1 commit into
mainfrom
fix/portfolio-audit-20260715

Conversation

@SahirVhora

Copy link
Copy Markdown
Owner

Summary

  • Applies the confirmed repository audit remediation
  • Adds or strengthens focused validation where applicable
  • Keeps deployment and credential changes narrowly scoped

Validation

  • Relevant focused tests and artifact checks passed locally
  • git diff --check passed
  • Final integration review completed

No repository visibility or GitHub settings were changed.

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

Copy link
Copy Markdown

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.

Reviewed commit: 4446db145f

ℹ️ 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 thread src/auth_handler.py
Comment on lines +125 to +127
client_id = auth_config.get("client_id") or os.getenv(f"{env_prefix}_CLIENT_ID", "")
client_secret = auth_config.get("client_secret") or os.getenv(f"{env_prefix}_CLIENT_SECRET", "")
token_url = auth_config.get("token_url") or os.getenv(f"{env_prefix}_TOKEN_URL", "")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep request-scoped OAuth config from falling back

When /api/test_connection passes an explicit auth_config with a blank field, these or os.getenv(...) fallbacks silently mix browser-supplied values with process-wide credentials. For example, if the request includes a new source_client_id but leaves source_client_secret blank while SF_SOURCE_CLIENT_SECRET is set, the endpoint tests with the server secret instead of reporting missing request credentials, so the connection check is no longer isolated to the request data.

Useful? React with 👍 / 👎.

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.

1 participant