Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for creating an access application automaticlly with the ingress #83

Open
nicholasrobertm opened this issue May 21, 2024 · 0 comments

Comments

@nicholasrobertm
Copy link

Thanks for the great project it's very seamless to setup!

One improvement I think would be good is allowing an application be managed with the ingress rule as well. This could be done through annotations potentially.

This could look along the lines of

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: test-via-cf-tunnel
  annotations:
    strrl.dev/create-application: "true"
    strrl.dev/tags:
    - a
    - b
    strrl.dev/identity-providers:
    - pin
    - github
    strrl.dev/include-groups:
    - testgroup
    strrl.dev/rules:
      emails-ending: "@test.com"
      github:
        org: test
        team: test
    
  finalizers:
  - strrl.dev/cloudflare-tunnel-ingress-controller-controlled
  generation: 1
spec:
  ingressClassName: cloudflare-tunnel
  rules:
  - host: test.yourdomain.org
    http:
      paths:
      - backend:
          service:
            name: test
            port:
              number: 80
        path: /
        pathType: Prefix
status:
  loadBalancer: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant