Giter Club home page Giter Club logo

Comments (11)

ritazh avatar ritazh commented on May 30, 2024

Thank you for opening this issue @ivanthelad.

As you have pointed out, from kubernetes/ingress-nginx#6590 (comment)
The kubernetes.io/ingress.allow-http annotation is supported only by ingress-gce, would you like to open a PR to make ingress.metadata.annotations["kubernetes.io/ingress.allow-http"] == "false" check conditional only when the annotation is provided?

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on May 30, 2024

Does making the check conditional break the intention of this constraint? If the default is allow-http = true when the annotation is undefined, then the constraint would be mooted.

This raises the question of what to do when constraints have platform-specific implications.

One possibility would be to add a parameter that enables (or disables) this particular check.

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on May 30, 2024

For backwards compatibility, the parameter would have to disable this check.

from gatekeeper-library.

ritazh avatar ritazh commented on May 30, 2024

add a parameter that enables (or disables) this particular check.

+1

what to do when constraints have platform-specific implications.

If these ConstraintTemplates and constraints are supposed to be generic, then we should not include any platform-specific things. We can make sure to check for this when we review PRs in the future, but not sure how we should handle this one since it's already in.

For backwards compatibility, the parameter would have to disable this check.

+1

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on May 30, 2024

TBH I don't think this is actually platform-specific, as the annotation is kubernetes.io/ingress.allow-http. The annotation looks to be defined by Kubernetes (per the prefix). As to which platforms choose to consume it, I guess that's undefined?

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on May 30, 2024

VMWare uses it as well:

https://docs.vmware.com/en/VMware-NSX-T-Data-Center/3.1/ncp-kubernetes/GUID-E03D6EE5-9C6C-457F-AD81-25CF2056F4D8.html

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on May 30, 2024

As does Azure:

https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/containers/aks/secure-baseline-aks

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on May 30, 2024

Though Azure's docs imply this may be via Traefik

from gatekeeper-library.

maxsmythe avatar maxsmythe commented on May 30, 2024

Definitely seems to be a bit unregulated who uses what annotation. That has interesting implication for a policy like k8shttpsonly.

In general, extensions like annotations are a confounding factor, as there is no way to reliably cover the surface of all possible extensions.

from gatekeeper-library.

ritazh avatar ritazh commented on May 30, 2024

add a parameter that enables (or disables) this particular check.

As mentioned on the community call, another option for backward compatibility is to create a v2 version of the constraint template.

Do you have any thoughts around these options @ivanthelad?

from gatekeeper-library.

stale avatar stale commented on May 30, 2024

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

from gatekeeper-library.

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.