-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(controller/targets): authorize-session should allow h_ ids #1853
Conversation
The targets controller previously only allowed hosts from a static catalog since it checked for the ID subtype from the static package. This change validates host ids with the plugin.Subtype as well Fixes: hashicorp#1850
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix!
Currently our target_service test doesn't cover specifying the host id when authorizing a session so I'll submit a seperate fast follow up PR to this one which adds regression tests.
Hi @talanknight -- I have an update coming which should add a regression test for this case - I can push it to this PR if you're interested
|
Add a regression test to cover the case where an explicit host ID was given when calling AuthorizeSession
Adding that regression test would be wonderful. Thank you! |
Sure thing. Pushed for your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
The targets controller previously only allowed hosts from a static catalog
since it checked for the ID subtype from the static package.
This change validates host ids with the plugin.Subtype as well
Fixes: #1850