Skip to content

Add support for Label-based policies #10

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

Closed
pacphi opened this issue Feb 21, 2019 · 1 comment
Closed

Add support for Label-based policies #10

pacphi opened this issue Feb 21, 2019 · 1 comment
Labels
feature New feature or request help wanted Extra attention is needed

Comments

@pacphi
Copy link
Collaborator

pacphi commented Feb 21, 2019

The cf v3 API has support for assigning metadata (e.g., labels and annotations) to apps and (possibly in the future) service instances.

An interesting use case from a policy enforcement perspective is to have developers be required to label apps in conjunction with cf push. The cf CLI nor the cf-java-client currently have support so we'd have to build out something perhaps with a Spring WebFlux.

If an operator could apply and search for labels on apps (not unlike applying and filtering on tagged compute resources in AWS, Azure, or GCP), then there is another lever to: a) manage finite compute capacity (what cf-butler is arguably good at), b) establish compliance. Case b) is super-interesting because it can take many forms (regulation, cost control).

So, what we want to do here is offer yet another way to define a policy. If an app does not have 1-n labels defined then go ahead and stop and delete the app (and optionally any bound services).

@pacphi
Copy link
Collaborator Author

pacphi commented Aug 5, 2021

Not implementing as described. Not going to support destructive action in this manner. Just focusing on reporting and notification. See Issue #386.

@pacphi pacphi closed this as completed Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant