Skip to content
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

Manifest Structure for Gatekeeper Constraint Templates & Templates for Treasuremap #174

Open
lb4368 opened this issue Jun 11, 2021 · 4 comments
Labels
2-Manifests Relates to manifest/document set related issues enhancement New feature or request priority/medium Default priority for items
Milestone

Comments

@lb4368
Copy link

lb4368 commented Jun 11, 2021

Problem description
With the delivery of the Gatekeeper manifest function (#167), we will begin to define policy constraint templates and associated constraint instances for policies to be enforced within treasuremap or for use within downstream sites. Would like to come up with a manifest structure for organizing these separate from the Gatekeeper install function itself and delivering these during site deployment.

Proposed change

  1. Determine how we manage constraint templates in treasuremap manifests. There is a sample library here.
  2. Determine how we manage constraint definitions (instances of constraint templates in treasuremap manifests.
  3. Determine manifest phase(s) for delivery of Gatekeeper install, constraint templates, and constraints into a site type
  4. Consider downstream definition of constraints. Presumably, downstream can just define their own and include in appropriate phase(s).
@lb4368 lb4368 added enhancement New feature or request triage design needed Requires design approach/discussion labels Jun 11, 2021
@lb4368 lb4368 added this to the Future milestone Jun 11, 2021
@jezogwza jezogwza added 2-Manifests Relates to manifest/document set related issues priority/medium Default priority for items and removed triage labels Jun 16, 2021
@lb4368
Copy link
Author

lb4368 commented Jun 17, 2021

Notes from 6/15/21 design meeting:

Definition of the Policy == Constraint Template

e.g. https://github.com/open-policy-agent/gatekeeper-library/blob/master/library/pod-security-policy/users/template.yaml
e.g. https://github.com/open-policy-agent/gatekeeper-library/tree/master/library/pod-security-policy/users

manifests/function/gatekeeper/policies/
manifests/function/gatekeeper/policies/<policy-name>
manifests/function/gatekeeper/policies/<policy-name>/
manifests/function/gatekeeper/policies/<policy-name>/kustomization.yaml
manifests/function/gatekeeper/policies/<policy-name>/template.yaml

Instance of a Policy == Constraint

e.g https://github.com/open-policy-agent/gatekeeper-library/blob/master/library/pod-security-policy/users/samples/psp-pods-allowed-user-ranges/constraint.yaml

manifests/function/gatekeeper/policies/instances/
manifests/function/gatekeeper/policies/instances/<instance-of-policy-x-name>
manifests/function/gatekeeper/policies/instances/<instance-of-policy-x-name>/kustomization.yaml
manifests/function/gatekeeper/policies/instances/<instance-of-policy-x-name>/constraint.yaml
manifests/function/gatekeeper/policies/instances/<instance-of-policy-x-name>/replacements/… || TBD if we use catalogue info for defining the constraints

How do we define a collection of policies as a group that menas something. e.g. PodSecurityPolicy

    manifests/composite/gatekeeper/<name of policy group>
    manifests/composite/gatekeeper/<name of policy group>/kustomization.yaml
    … Uses Instance of policy as resources.
    manifests/composite/gatekeeper/<name of policy group>/replacements/kustomization.yaml

When do we deliver the Policies

Will keep this as a TBD, expect we might need to deliver policies in multiple phases, yet to be determined.

@snehal1797
Copy link
Contributor

Please assign this issue to me

@snehal1797
Copy link
Contributor

As per discussion on 11/16/2021, Gatekeeper functionality is not required.

@snehal1797 snehal1797 removed their assignment Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-Manifests Relates to manifest/document set related issues enhancement New feature or request priority/medium Default priority for items
Projects
None yet
Development

No branches or pull requests

3 participants