Skip to content
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

Don't add the host to the target name if it wasn't given originally #23

Merged
merged 1 commit into from
Mar 30, 2020

Conversation

aiudirog
Copy link
Member

Currently, the target_name is updated to include the host the first time a request header is generated if the target_name is a string without an '@'. This locks the user into using only a single host, defeating the purpose of storing the contexts on a hostname basis.

I've updated the code to not update the target_name inplace and instead just use it to create the security context.

@frozencemetery
Copy link
Member

Hmm. This is a bit scope creep, but I wonder if we ought to have some docs for how to use a context on multiple hosts, or maybe a test. Unfortunately I didn't have this use case in mind when porting, so target_name is poorly named - it should probably mention the behavior with respect to "@" for clarity.

Let me know if you'd prefer me to make those changes.

@aiudirog
Copy link
Member Author

It's half designed already multiple hosts, so I would say it's probably best to support it completely. Feel free to make the changes when you have time, I'm definitely not an expert on that part.

Previously, the Name was stored the first time the request header was
generated.  This locked the user into using only a single host,
defeating the purpose of storing the contexts on a hostname basis.  Fix
this by not storing the Name object.

[rharwood@redhat.com: commit message, updated docstr for target_name]
Merges: pythongssapi#23
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