Skip to content

Insecure Development Mode

Local Dev OnlyNo TLSRapid Prototyping

Insecure mode allows running the PiVirt Agent and pvcli without TLS certificates, streamlining local feature development and testing.


To start the agent in insecure mode, copy the provided agent.conf.dev template or configure insecure = true:

Terminal window
# Copy dev config template
cp agent.conf.dev agent.conf
# Run the agent binary
./bin/agent -config agent.conf

When insecure = true:

  • TLS certificates and cert_path are not required.
  • Client authentication is bypassed.
  • gRPC / ConnectRPC transport runs over plain HTTP/2 or HTTP/1.1.

Configure pvcli to communicate with the insecure development agent:

  1. Add a Development Context:

    Terminal window
    pvcli context add dev localhost 5001
  2. Enable Insecure Mode for Context:

    Terminal window
    pvcli context set dev --insecure=true
  3. Switch to Dev Context:

    Terminal window
    pvcli context switch dev
  4. Verify Connectivity:

    Terminal window
    pvcli vm list

Before deploying or pushing changes:

  1. In agent.conf, set insecure = false.
  2. Ensure valid TLS / PiTrust PKI certificates reside in the configured cert_path.
  3. In pvcli, switch back to a secured context or toggle --insecure=false:
    Terminal window
    pvcli context set dev --insecure=false