Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 974 Bytes

Advanced_Usage.md

File metadata and controls

45 lines (40 loc) · 974 Bytes

Advanced Usage

Reference other resources

We can reference other resources (ex: CloudflareServiceToken or CloudflareAccessGroup) directly from an CloudflareAccessApplicaion

ex:

Cloudflare Access Group

apiVersion: cloudflare.zelic.io/v1alpha1
kind: CloudflareAccessGroup
metadata:
  name: accessgroup-example
  namespace: default
spec:
  name: my access group
  include:
    - emails:
      - [email protected]
      - [email protected]

Cloudflare Application

apiVersion: cloudflare.zelic.io/v1alpha1
kind: CloudflareAccessApplication
metadata:
  name: domain-example
  namespace: default
spec:
  name: my application
  domain: domain.example.com
  autoRedirectToIdentity: true
  policies: 
    - name: Allow testemail1
      decision: allow
      include:
        - emails:
          - [email protected]
        - accessGroups:
            - valueFrom:
                name: accessgroup-example
                namespace: default