Skip to content

Conversation

@steveny91
Copy link
Contributor

@steveny91 steveny91 commented Nov 10, 2025

What does this PR do?

The option here I think is better as a enum since we only allow for a set of options. Doesn't change any functionality.

@steveny91 steveny91 marked this pull request as ready for review November 10, 2025 20:03
@steveny91 steveny91 requested review from a team as code owners November 10, 2025 20:03
Copy link

@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

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 58 to 61
allow_redirects: Optional[bool] = None
auth_token: Optional[AuthToken] = None
auth_type: Optional[str] = None
auth_type: Optional[Literal['basic', 'digest', 'ntlm', 'kerberos', 'aws']] = None
aws_host: Optional[str] = None

Choose a reason for hiding this comment

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

P1 Badge Enum enforces lowercase auth_type values only

Changing auth_type to Literal['basic', 'digest', 'ntlm', 'kerberos', 'aws'] makes the field validation case-sensitive. The HTTP wrapper lowercases whatever string is provided (datadog_checks_base/datadog_checks/base/utils/http.py), so configurations using values like 'NTLM' or 'Kerberos' currently succeed. After this change those previously accepted values will fail validation before the normalization step, breaking existing deployments across integrations that rely on the HTTP spec. Consider accepting case-insensitive inputs or keeping the field as a free string and normalizing it.

Useful? React with 👍 / 👎.

@codecov
Copy link

codecov bot commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.10%. Comparing base (f47ef1f) to head (c07ec92).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants