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

Auth/firewall revamp #223

Merged
merged 3 commits into from
Sep 10, 2021
Merged

Auth/firewall revamp #223

merged 3 commits into from
Sep 10, 2021

Conversation

ngyewch
Copy link
Member

@ngyewch ngyewch commented Sep 9, 2021

This revamp of auth/firewall makes it easier to differentiate between connections.

See #222

As discussed, this PR includes breaking/signature changes in the following classes:

  • org.arl.fjage.auth.AllowAfterAuth
  • org.arl.fjage.auth.AllowAll
  • org.arl.fjage.auth.DenyAll
  • org.arl.fjage.auth.Firewall
  • org.arl.fjage.remote.MasterContainer
    • some constructors

I've also had to relax the scope of:

  • org.arl.fjage.remote.Action

Copy link
Member

@mchitre mchitre left a comment

Choose a reason for hiding this comment

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

Now I recall how the original design was supposed to work. The binding to the connector was supposed to allow the stateful behavior per connection. Instead of a thread-local variable, the idea was to use a map with the connection to store state. However, I do prefer this stateful design more, so I propose we go with the change.

@ngyewch ngyewch merged commit ea6bbf2 into dev Sep 10, 2021
@ngyewch ngyewch deleted the fw-revamp branch September 10, 2021 01:52
ngyewch added a commit that referenced this pull request Sep 10, 2021
@ngyewch ngyewch mentioned this pull request Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants