You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this working, as per this script... have to add the following kubectl command in manage-multijuicer.sh
...
function deploy_multi_juicer() {
info "Deploying multi-juicer"
# Enable OCI support
export HELM_EXPERIMENTAL_OCI=1
# Store auth file key for basic auth
kubectl --namespace juicer create secret generic basic-auth --from-file=auth
...
Also, have to update ingress.yaml, to include:
...
metadata:
name: multi-juicer-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/ssl-redirect: "true"
# type of authentication
nginx.ingress.kubernetes.io/auth-type: basic
# name of the secret that contains the user/password definitions
nginx.ingress.kubernetes.io/auth-secret: basic-auth
# message to display with an appropriate context why the authentication is required
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - foo'
...
Also, have to add the following line to each curl call in manage-ctf.sh
-u 'foo:<password>' \
I am surprised, this is not standard in CTFd and Multijuicer, but it is better done in the nginx controller...
The text was updated successfully, but these errors were encountered:
Describe Problem
It would be nice to automatically install BASIC AUTH on all pages, on the nginx ingress controller, to keep all others out of competition...
Suggest Solution
https://kubernetes.github.io/ingress-nginx/examples/auth/basic/
Additional Details
I have this working, as per this script... have to add the following
kubectl
command in manage-multijuicer.shAlso, have to update ingress.yaml, to include:
Also, have to add the following line to each curl call in manage-ctf.sh
I am surprised, this is not standard in CTFd and Multijuicer, but it is better done in the nginx controller...
The text was updated successfully, but these errors were encountered: