Skip to content

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

Merged
derekcollison merged 2 commits intomainfrom
issue_5387
May 9, 2024
Merged

[ADDED] Allowed connection type "in process"#5395
derekcollison merged 2 commits intomainfrom
issue_5387

Conversation

@kozlovic
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Will take a look.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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.

2 participants