Skip to content

Commit

Permalink
feat(longhorn): enable auth via authelia (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinohmann authored Dec 28, 2023
1 parent 5658b94 commit c25cec6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ access_control:
networks:
- name: internal
networks: ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
rules: []
rules:
- domain: longhorn.18b.haus
policy: one_factor
subject:
- ['group:admins']
- domain: longhorn.18b.haus
policy: deny

identity_providers:
oidc:
Expand Down
6 changes: 6 additions & 0 deletions kubernetes/apps/longhorn-system/longhorn/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,11 @@ spec:
hajimari.io/appName: Longhorn
hajimari.io/group: storage
hajimari.io/icon: mdi:harddisk-plus
nginx.ingress.kubernetes.io/auth-method: GET
nginx.ingress.kubernetes.io/auth-response-headers: Remote-User,Remote-Name,Remote-Groups,Remote-Email
nginx.ingress.kubernetes.io/auth-signin: https://auth.18b.haus?rm=$request_method
nginx.ingress.kubernetes.io/auth-snippet: |
proxy_set_header X-Forwarded-Method $request_method;
nginx.ingress.kubernetes.io/auth-url: http://authelia.default.svc.cluster.local/api/verify
tls: true
host: "longhorn.18b.haus"

0 comments on commit c25cec6

Please sign in to comment.