Skip to content

PYTHON-3096 & PYTHON-2867 Implement GSSAPI ServiceHost support and expand canonicalization options #1983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

blink1073
Copy link
Member

No description provided.

@blink1073 blink1073 requested a review from NoahStapp October 30, 2024 10:10
@blink1073 blink1073 merged commit 92d6a73 into mongodb:master Oct 30, 2024
43 checks passed
@blink1073 blink1073 deleted the PYTHON-3096 branch October 30, 2024 19:06
@blink1073 blink1073 changed the title PYTHON-3906 & PYTHON-2867 Implement GSSAPI ServiceHost support and expand canonicalization options PYTHON-3096 & PYTHON-2867 Implement GSSAPI ServiceHost support and expand canonicalization options Oct 30, 2024
@@ -78,7 +78,7 @@ def __hash__(self) -> int:


GSSAPIProperties = namedtuple(
"GSSAPIProperties", ["service_name", "canonicalize_host_name", "service_realm"]
"GSSAPIProperties", ["service_name", "canonicalize_host_name", "service_realm", "service_host"]
Copy link
Member

Choose a reason for hiding this comment

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

It doesn't look like we actually do anything with service_host. Why add it if it's not used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Argh, I made the changes in the synchronous files and they got wiped out! I'll make a follow up PR tomorrow.

@@ -87,6 +87,16 @@ def __hash__(self) -> int:
"""Mechanism properties for MONGODB-AWS authentication."""


def _validate_canonicalize_host_name(value: str | bool) -> str | bool:
valid_names = [False, True, "none", "forward", "forwardAndReverse"]
Copy link
Member

Choose a reason for hiding this comment

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

So "none", "forward", and "forwardAndReverse" are all supposed to be treated the same as True? Is that accurate?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, you'll see in the follow up PR how they're used in practice.

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.

3 participants