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 an allowed connection type filter for users #1594

Merged
merged 4 commits into from
Sep 18, 2020
Merged

Commits on Sep 17, 2020

  1. Added an allowed connection type filter for users

    Users and NKey users will now have the option to specify a list
    of allowed connection types.
    
    This will allow for instance a certain user to be allowed to
    connect as a standard NATS client, but not as Websocket, or
    vice-versa.
    
    This also fixes the websocket auth override. Indeed, with
    the original behavior, the websocket users would have been bound
    to $G, which would not work when there are accounts defined, since
    when that is the case, no app can connect/bind to $G account.
    
    Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
    kozlovic committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    7ccbaca View commit details
    Browse the repository at this point in the history
  2. Add some tests for config parsing

    Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
    kozlovic committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    648346f View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2020

  1. Added test with unknown JWT allowed connection type

    Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
    kozlovic committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    e84f1cf View commit details
    Browse the repository at this point in the history
  2. Validate options for user embedded NATS Server in their app

    We were doing option validation from options parsing, but added
    it also for Users/NKeyUsers options.
    
    Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
    kozlovic committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    04f9681 View commit details
    Browse the repository at this point in the history