DevOps handler uses default HTTPS redirection if no VH is defined
Concerned version
Version: %2.0.X
Platform: All
Summary
Protect an application with DevOps handler. Try to acces application without cookie. User is redirected to the Portal and redirection URL is built by using default HTTPS value if no VH is defined in conf.
Logs
lynx http://evengrave.devops.dvsso.gie.fr => No relative VH defined in conf.
# Default handler redirection is HTTPS
#Call HTTP and redirected in HTTPS.
2022-01-12T10:23:53.575+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Logger Lemonldap::NG::Common::Logger::Syslog loaded
2022-01-12T10:23:53.578+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] User logger Lemonldap::NG::Common::Logger::Syslog loaded
2022-01-12T10:23:53.578+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Check configuration for Lemonldap::NG::Handler::Server::Main
2022-01-12T10:23:53.611+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Lemonldap::NG::Common::Conf::Backends::CDBI loaded.#012Get configuration 559.
2022-01-12T10:23:53.611+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Get configuration 559
2022-01-12T10:23:53.611+01:00 dapqssogndevops f=3 s=6 LLNG[64007]: [info] Loading configuration 559 for process 64007
2022-01-12T10:23:53.611+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls defaultValuesInit
2022-01-12T10:23:53.611+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Options https for vhost acces-internet.dvsso.gie.fr: 1
2022-01-12T10:23:53.612+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Options https for vhost auth.local.gie.fr: 1
2022-01-12T10:23:53.612+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Options https for vhost cmperceval.dvsso.gie.fr: 1
2022-01-12T10:23:53.612+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Options https for vhost infocentre-bis-next.dvsso.gie.fr: 1
2022-01-12T10:23:53.612+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Options https for vhost infocentre-bis.dvsso.gie.fr: 1
........
2022-01-12T10:23:53.619+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls jailInit
2022-01-12T10:23:53.619+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Custom function: Proxyma::Custom::encryptmd5
2022-01-12T10:23:53.619+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Custom function: Proxyma::Custom::decryptmd5
2022-01-12T10:23:53.619+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Custom function: Proxyma::Custom::iso2unicode2
2022-01-12T10:23:53.620+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Custom function: Proxyma::Custom::unicode2iso2
2022-01-12T10:23:53.620+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls portalInit
2022-01-12T10:23:53.620+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls locationRulesInit
2022-01-12T10:23:53.620+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls sessionStorageInit
2022-01-12T10:23:53.643+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls headersInit
2022-01-12T10:23:53.659+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls postUrlInit
2022-01-12T10:23:53.659+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls aliasInit
2022-01-12T10:23:53.659+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Process 64007 calls oauth2Init
2022-01-12T10:23:53.659+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Lemonldap::NG::Handler::Server::Main: configuration is up to date
2022-01-12T10:23:53.679+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Try to retrieve rules file from http://evengrave.devops.dvsso.gie.fr/rules.json
2022-01-12T10:23:53.683+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Set Host header with evengrave.devops.dvsso.gie.fr
2022-01-12T10:23:53.721+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Response is success
2022-01-12T10:23:53.721+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Good json file received
2022-01-12T10:23:53.721+01:00 dapqssogndevops f=3 s=6 LLNG[64007]: [info] Compiling rules retrieved from http://evengrave.devops.dvsso.gie.fr/rules.json for evengrave.devops.dvsso.gie.fr
2022-01-12T10:23:53.721+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] DevOps handler called by evengrave.devops.dvsso.gie.fr
2022-01-12T10:23:53.721+01:00 dapqssogndevops f=3 s=6 LLNG[64007]: [info] No cookie found
2022-01-12T10:23:53.722+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Build URL https://evengrave.devops.dvsso.gie.fr/
2022-01-12T10:23:53.722+01:00 dapqssogndevops f=3 s=7 LLNG[64007]: [debug] Redirect X.X.X.X to portal (url was /)
2022-01-12T10:25:01.623+01:00 dapqssogndevops f=9 s=6 CRON[64016]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Possible fixes
Append an environnement variable to set if redirection must be HTTPS or not.