6 Commits

Author SHA1 Message Date
John Howard
e583eb5eba
authorization: add new Require mode (#1223)
`Deny` mode is a bad API with a useful goal: to ensure that policies
MUST match the rule, essentialy adding AND semantics on top of the ALLOW
policies OR semantics.

Deny is trick, because you often end up having double negatives.

For example `deny: !(port in [443, 8443])`. Or worse, somethign like
`deny: jwt.group != 'eng'`; if the jwt doesn't have a `group` this rule
will not deny.

Instead, this proposes adding a new Require mode which is like deny but
inverted.

The above rules would be `require: port in [443, 8443]` or `require:
jwt.group == 'eng'`.

These are useful for admin level rules that apply on top of user level
rules like `require: source.address not in [banned country cidr ranges]`
etc
2026-03-26 09:15:39 -07:00
John Howard
7d49605816
controller: better CRD documentation formatting (#1354)
Mostly putting things in proper code brackets
2026-03-25 14:38:22 -07:00
David L. Chandler
b2f5ab6d52
Revert "fix: Overlays can delete map elements with 'null'" (#1079)
Reverts agentgateway/agentgateway#1065 because the unittests didn't use
a real k8s API server. A real k8s rejects any CRD that attempts to use a
null map value, and you cannot easily change the CRD because
controller-tools is opinionated about that. I don't want to add new
'remove' APIs for this edge case or kustomize a CRD.
2026-02-27 11:20:43 -08:00
David L. Chandler
dabab1f08c
fix: Overlays can delete map elements with 'null' (#1065)
Fixes a TODO:
```
    metadata:
      labels:
        # You'd think this would remove the app.kubernetes.io/instance label,
        # but it just sets the label to the empty string. TODO(chandler):
        # Figure out the incantation to cause removal of the label.
        app.kubernetes.io/instance: null
```

---------

Signed-off-by: David L. Chandler <david.chandler@solo.io>
2026-02-26 13:32:27 -08:00
John Howard
2ac141f36d
crd gen: add some additional markers (#1019)
Fixes https://github.com/agentgateway/agentgateway/issues/985

This fixes a few bugs that were caused by the lack of these
2026-02-23 10:04:02 -08:00
John Howard
085f54292b Move controller to controller/ 2026-02-09 16:20:45 -08:00