Comments (5)
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.
from cf-butler.
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.
@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.
The feature branch has been merged to the main line.
from cf-butler.
Related Issues (20)
- Add GraalVM support HOT 10
- **BUG** For large foundations running into problem on execution of AppDetailTask HOT 5
- Can't push app on newer buildpack HOT 5
- Deploying to PCF with RDS mysql HOT 2
- Add Git Authentication Support HOT 6
- Cannot read CF_TOKEN_PROVIDER property at startup HOT 1
- Update documentation to reflect Tanzu rebranding HOT 1
- Gradlew Build Fails on bootBuildImage step HOT 2
- Add cf-for-k8s support HOT 4
- Service instance count for snapshot/summary gives different result when running at different times. HOT 2
- R2DBC Typo/Error in ButlerCfEnvProcessor Config and Unable to Connect w/ PCF MYSQL DB HOT 1
- Cannot access Opsmanager with user/pwd when external identity provider via SAML or LDAP integration HOT 6
- Endpoint /products/stemcell/associations isn't working HOT 9
- ResourceNotificationPolicy implementation needs a rethink
- Is StopApplicationPolicy functioning correctly? HOT 3
- Ops manager endpoints running into cert issues HOT 4
- In the Snapshot Detail AI report , the buildpack version doesn't reflect the real buildpack version used by the application HOT 24
- r2db error HOT 1
- Use of mutation testing in cf-butler - Help needed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cf-butler.