Bug 1888308 - p&f: make SAR traffic from oauth and openshift apiserver exempt
Summary: p&f: make SAR traffic from oauth and openshift apiserver exempt
Keywords:
Status: CLOSED DUPLICATE of bug 1888309
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-apiserver
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Stefan Schimanski
QA Contact: Ke Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-14 14:37 UTC by Abu Kashem
Modified: 2020-10-14 14:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-14 14:57:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Abu Kashem 2020-10-14 14:37:58 UTC
p&f: make SAR traffic from oauth and openshift apiserver exempt

This is what the flow schema would look like:
apiVersion: flowcontrol.apiserver.k8s.io/v1alpha1
kind: FlowSchema
metadata:
  name: openshift-oauth-apiserver-sar
spec:
  distinguisherMethod:
    type: ByUser
  matchingPrecedence: 2
  priorityLevelConfiguration:
    name: exempt
  rules:
  - resourceRules:
    - apiGroups:
      - authorization.k8s.io
      clusterScope: true
      namespaces:
      - '*'
      resources:
      - subjectaccessreviews
      verbs:
      - '*'
    - apiGroups:
      - authentication.k8s.io
      clusterScope: true
      namespaces:
      - '*'
      resources:
      - tokenreviews
      verbs:
      - '*'
    subjects:
    - kind: ServiceAccount
      serviceAccount:
        name: oauth-apiserver-sa
        namespace: openshift-oauth-apiserver

Comment 1 Stephen Cuppett 2020-10-14 14:57:54 UTC

*** This bug has been marked as a duplicate of bug 1888309 ***


Note You need to log in before you can comment on or make changes to this bug.