gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

Pass additional info in the mutation request to external data provider

Open binbin-li opened this issue 1 year ago • 2 comments

Describe the solution you'd like Ratify is implementing a namespaced-level multi-tenancy feature. We'd like to have both validation/mutation requests taking namespace and image to Ratify. We could easily support the validation case in the constraint template. But for mutation requests, seems we can only pass in the location value which is image in our use case since we don't actually mutate namespace. Wonder if any mutators could support users specify additional info besides the mutating fields.

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

  • Gatekeeper version: 3.15.0
  • Kubernetes version: (use kubectl version): 1.29.2

binbin-li avatar May 09 '24 06:05 binbin-li

I was talking to @binbin-li offline. Sounds like ratify is storing credentials to retrieve registry info (for updating tag->digest) as secrets, the additional namespace metadata will be used for the provider to find the secret in the applicable namespace.

@maxsmythe @ritazh wdyt? does it make sense to add an "additional metadata" type of field to external data for mutation?

sozercan avatar May 10 '24 01:05 sozercan

This issue 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.

stale[bot] avatar Jul 12 '24 13:07 stale[bot]

This issue 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.

stale[bot] avatar Nov 04 '24 01:11 stale[bot]

This issue 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.

stale[bot] avatar May 17 '25 02:05 stale[bot]