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

[ADDED] Allowed connection type "in process" #5395

Merged
merged 2 commits into from May 9, 2024
Merged

Conversation

kozlovic
Copy link
Member

@kozlovic kozlovic commented May 7, 2024

With the JWT library update, there is now a jwt.ConnectionTypeInProcess connection type that can be added to the list of allowed connection types when defining an user. If the list is not empty and does not have this type, an "in process" connection will not be allowed.

Conversely, it is now possible to limit a user to be used only for in process connections (or several types based on the content of the list).

Possible solution for #5387

Signed-off-by: Ivan Kozlovic ivan@synadia.com

With the JWT library update, there is now a `jwt.ConnectionTypeInProcess`
connection type that can be added to the list of allowed connection
types when defining an user. If the list is not empty and does not
have this type, an "in process" connection will not be allowed.

Conversely, it is now possible to limit a user to be used only for
in process connections (or several types based on the content of
the list).

Possible solution for #5387

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic requested a review from a team as a code owner May 7, 2024 18:04
@kozlovic kozlovic marked this pull request as draft May 7, 2024 18:05
@kozlovic
Copy link
Member Author

kozlovic commented May 7, 2024

@derekcollison This would be a possible solution to issue #5387. If you think this is reasonable, I will make the JWT PR, have it merged, and then update this PR with the new JWT lib dep and open this for formal review.

@derekcollison
Copy link
Member

Will take a look.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM - Let's proceed.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@kozlovic kozlovic marked this pull request as ready for review May 9, 2024 16:48
@kozlovic
Copy link
Member Author

kozlovic commented May 9, 2024

@derekcollison I have updated the PR with the go.mod change to point to newly released JWT library that adds the "in process" connection type and updated the test to cover JWT test. It is ready for review now.

@derekcollison derekcollison self-requested a review May 9, 2024 17:02
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 006593f into main May 9, 2024
4 checks passed
@derekcollison derekcollison deleted the issue_5387 branch May 9, 2024 17:03
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.

None yet

2 participants