l7runner

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package l7runner is aicoded l7-runner, a hidden command that the delivery pipeline runs for the simulated attacks on one app:

aicoded l7-runner --app <tree> --runner-dir <dir> --control <socket path> --state <dir>
                  [--mysql-dsn-file <file> --mysql-database <name> [--migrations <file>]]

It serves the runner protocol to the app through the runner server with the providers of aicoded dev, in the environment preview, and builds and starts nothing: the pipeline starts the app, as another user, once the runner answers on its control socket. Before it serves, it applies to the app's database, with migrate.Apply, the steps in the file of --migrations, a JSON object {"steps": [...]} of the app's migrations as the platform lists them. The control API, for the pipeline alone, reports the app's state, mints viewer tokens and returns the app's spans. Nothing listens on TCP, and nothing is logged but one line on stderr when the command fails or cannot open the app's database.

Index

Constants

View Source
const Protocol = 1

Protocol is the version of the control API.

Variables

This section is empty.

Functions

func Main

func Main(ctx context.Context, args []string, stderr io.Writer) int

Main runs aicoded l7-runner with args, the arguments after the command, until ctx is done, and returns its exit code. It writes nothing but one line to stderr when it fails, and never a value the DSN file holds.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL