Giter Club home page Giter Club logo

Comments (6)

jamilbk avatar jamilbk commented on June 6, 2024

cc @conectado @bmanifold @AndrewDryga

This is going to need a fix before we roll out #4743 I think... wondering if this is the easiest way to solve the issue.

Trying to avoid making the user create a Resource for all combinations of ports/protocols they want to limit for each Group, which is the current way you can solve the issue now.

from firezone.

jamilbk avatar jamilbk commented on June 6, 2024

Maybe the simpler approach is to move the traffic_filters to policies instead, since that is where the admin is linking a Group to a Resource, and they can define which traffic is allowed for the particular Group at the time of policy creation.

from firezone.

AndrewDryga avatar AndrewDryga commented on June 6, 2024

I think the use case here is weird, what you should do is define two resources:

  • gitlab.company.com:80,443 with access to everyone
  • gitlab.company.com:22 with access to devops

Then the client/gateway must differentiate between those two, if they do not - it's a bug. Plus there are many other reasons why two separate ports on the same hosts can have different resources. Moving this to policy is trying to hide the problem without solving it.

from firezone.

jamilbk avatar jamilbk commented on June 6, 2024

@AndrewDryga That won't work. DNS resolution doesn't take ports into account, so when a user who has access to both resolves the name, the client won't know which one is the one to use until traffic flows, at which point it's too late.

The other option is to send all traffic restrictions from the portal down to a gateway for a all Resources with the same address that the user has access to. I.e. to authorize based on address and not ResourceId.

We would need major changes to the way DNS is resolved and mappings handled to pick the right set of traffic filters to use.

I'm not seeing a better approach that won't require onerous refactoring?

from firezone.

jamilbk avatar jamilbk commented on June 6, 2024

Hm yeah, actually -- adding this to Policies won't solve the issue because the wrong policy could still be used to resolve access to the Resource.

For example, the Everyone policy granting access to the tcp/443 Resource could still be picked for the DevOps user who's trying to access tcp/22.

Need to think through this more. This means that Everyone policies can cause issues when tied to Resources with overlapping addresses, since there isn't a way to remove a Group from a policy definition.

from firezone.

jamilbk avatar jamilbk commented on June 6, 2024

Based on the above it seems that the fix here to have the client select all Resources that match a particular address seen, and use all of them in the allow access request.

The portal would then need to resolve all policies for the matched Resources and send them all down to Gateway, coalescing the traffic restrictions for that particular Peer.

from firezone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.