Giter Site home page Giter Site logo

Comments (5)

pacphi avatar pacphi commented on May 13, 2024

Whitelisting and blacklisting only apply to organizations. What is the use case? Do you want to report on or act on (a) specific application(s)? If the former you might consider the use of a Query Policy. If the latter (e.g., a delete policy), then we'd have to look at updating the logic in the isBlackListed and isWhiteListed methods. ApplicationPolicy would need to hold some additional state, maybe a Map<String, String> named spacesWhiteList, where the key is the organization name and the value is the space name? I'm a little weary of going down this path without some more design thought (allowing for more flexible definitions of whitelists).

from cf-butler.

JuanFCabrera avatar JuanFCabrera commented on May 13, 2024

from cf-butler.

pacphi avatar pacphi commented on May 13, 2024

I suppose we need to satisfy both whitelist (includes) and blacklist (exclude) spaces. The latter seems like what you want, and wouldn't be too difficult to add.

Maybe the configuration could be adapted like so...

Sample application.yml

cf:
  spaceBlackList:
     - "Org-A:Space-A"
     - "Org-E:Space-A"
     - "Org-E:Space-B"
     - "Org-E:Space-C" 
     - "Org-E:Space-D" 

And then we'd add a Set<String> spacesBlackList to PasSettings.java and a companion accessor method.

And if the operator defined a spacesBlackList in addition to an orgBlackList it should take precedence over the orgBlackList for the same organization(s).

from cf-butler.

pacphi avatar pacphi commented on May 13, 2024

@JuanFCabrera Give this feature implementation branch a try. Consult the README update for how to specify the black list. It should be implemented as I describe above.

from cf-butler.

pacphi avatar pacphi commented on May 13, 2024

The feature branch has been merged to the main line.

from cf-butler.

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.