blabla1337 / skf-flask

Security Knowledge Framework (SKF) Python Flask / Angular project
https://www.securityknowledgeframework.org
Apache License 2.0
810 stars 308 forks source link

Labs Subdomain Deploy #748

Closed JOT85 closed 3 years ago

JOT85 commented 3 years ago

This follows #747. Many of these changes are in fact from that PR, so the diff should really be compared after that is merged.

I've added the SKF_LABS_DEPLOY_MODE config variable. This defaults to "port", which is the old deployment method for labs, where they are deployed on a random port.

The new mode, "subdomain", creates an ingress rule for each lab, pointing a subdomain (for example xss-567889.skf-labs-example.org) to the lab.

The main domain is expected to have a wildcard DNS record, directing all subdomains to the ingress controller.

blabla1337 commented 3 years ago

Again super awesome! Many thanks and we appreciate this PR