Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,425 changes: 1,425 additions & 0 deletions keps/sig-auth/5681-conditional-authorization/README.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Mermaid source for authorizer-chain-computation image

This diagram was rendered on https://www.mermaidchart.com/play, not using the
native GitHub mermaid renderer so that the image was more visually clear.
Mermaid layout configs are not respected by GitHub.


```mermaid
---
config:
layout: elk
title: Kubernetes with Conditional Authorization
---
flowchart LR
subgraph ChainAuthorizer["ChainAuthorizer"]
direction TB
AuthzAllow["Allow"]
AuthzConditional["Conditional"]
AuthzDeny["Deny"]
AuthzNoOpinion["NoOpinion"]
end
subgraph WithAuthorization["WithAuthorization"]
direction TB
ServeHTTP["ServeHTTP"]
ServeHTTPWithConditions["ServeHTTP + ctx conditions"]
CannotBecomeAuthz["CannotBecomeAuthz"]
end
subgraph ChainAuthorizerEval["ChainAuthorizerEval"]
NoOpinion2["NoOpinion"]
Allow2["Allow"]
Conditional2["Conditional"]
Deny2["Deny"]
end
subgraph ValidatingAdmission["ValidatingAdmission"]
direction TB
AdmissionAllow["Allow"]
AdmissionEvaluate["Evaluate"]
AdmissionNoOpinion["NoOpinion"]
AdmissionDeny["Deny"]
ChainAuthorizerEval
end
Request["Request"] --> ChainAuthorizer
AuthzNoOpinion --> Request
AuthzAllow --> ServeHTTP
ServeHTTPWithConditions --> AdmissionEvaluate
AdmissionEvaluate --> AdmissionNoOpinion & AdmissionAllow & AdmissionDeny
AdmissionNoOpinion --> ChainAuthorizerEval
NoOpinion2 --> AdmissionNoOpinion
Allow2 --> AdmissionAllow
Conditional2 --> AdmissionEvaluate
Deny2 --> AdmissionDeny
AdmissionDeny --> 403(["403"])
ServeHTTP -- Allowed --> AdmissionAllow["Allow"]
AuthzConditional -- 1+ Allow --> ServeHTTPWithConditions
AuthzConditional -- 0 Allow --> CannotBecomeAuthz
AuthzDeny --> CannotBecomeAuthz
CannotBecomeAuthz --> 403
AdmissionAllow --> Storage(["Storage"])
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions keps/sig-auth/5681-conditional-authorization/kep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
title: Conditional Authorization
kep-number: 5681
authors:
- "@luxas"
- "@micahhausler"
owning-sig: sig-auth
status: provisional
creation-date: 2025-11-05
reviewers:
- "@deads2k"
- "@enj"
- "@liggitt"
approvers:
- "@deads2k"
- "@enj"
- "@liggitt"

stage: alpha

latest-milestone: "v1.36"

milestone:
alpha: "v1.36"

feature-gates:
- name: ConditionalAuthorization
components:
- kube-apiserver
disable-supported: true

# The following PRR answers are required at beta release
metrics: {}