Requiring the token from the first request broke first-run setup for
anyone who opens the Web UI instead of the printed setup URL, such as a
fresh install from the Windows installer. First install has to work
without extra steps, so this goes back to the reviewed behavior.
A ten-minute tokenless window after start still let anyone who could
reach a fresh server create the admin, and it reopened on every
restart. Setup now needs the token as soon as the server creates it.
The setup page asks for the token when the URL carries none, since
visitors also reach it through other pages. The field is optional
because a server that cannot store a token accepts setup without one.
In quiet mode the server prints no setup URL, so after ten minutes the
setup token was only in a file that nothing named. The 401 message, the
setup page, and the API description now name auth/setup-token in the
data directory, and startup logs its path. The API description also says
that setup needs no token when the server cannot store one.
A token left by an earlier start stayed after initial_admin created the
admin on the next start. It is now removed whenever an admin exists.
The server refuses a backfill with a protected profile to anyone but an
administrator, but the backfill dialog offered those profiles to every
user who can manage profiles. A manager who picked one saw only a 403
in the plan preview.
The dialog now marks protected profiles and disables them for a
non-administrator, as the run dialog does.
A single run with a protected runtime profile needs an administrator,
but a backfill checked only execute access, so an operator could run
every slot of a DAG with a protected profile.
A backfill now checks its profile as a single run does. The profile
must also exist and be enabled, which a backfill learned only when its
first slot ran. Resuming a backfill keeps the profile it was submitted
with, as a retry keeps the profile of its run.
Until the first admin exists, anyone who could reach the server could
create it and take over the server. Scripts create the admin through
the same endpoint as the server starts, so a token cannot be required
from the first second without breaking them.
A server that starts without an admin now keeps a one-time setup token
in <data_dir>/auth/setup-token and prints the setup URL with the token,
in the startup banner or the log. For the first ten minutes after
start, setup works as before. After that, it needs the token, and
returns 401 without it. The token file is removed once the admin
exists. Servers with an admin, or with auth.builtin.initial_admin, are
unchanged, and so is setup when the token cannot be written.
The coordinator keeps a generated peer token in the data directory, and
first-run setup needs a token kept the same way. The file handling, a
random token created once so processes on one data directory agree,
moves to the crypto package for both.
Issue #4048 proposes letting external A2A agents discover and call
Dagu workflows. The RFC records the design: publishing files under
<dags_dir>/a2a, a DAG-level outputs field for results, the DAG run as
the only record of a task, retries disabled for runs started through
A2A so terminal tasks stay terminal, and task ownership by the key's
subject so rotating a key keeps access to its tasks.
Add server-side APIs to test inventory node connections and enroll
verified SSH host keys. Require explicit replacement fingerprints and
role checks so unknown hosts never receive credentials.
Share SSH connection logic with workflow execution so connection tests
use the same host-key checks, credentials, and shell behavior.
A continuous step in real keeps its real intervals, so the run-time
limit rule fails only a step that is neither mocked nor real. This
matches Spec 101.
Rewriting the whole expect block dropped the output and stream
assertions an author wrote. Update only exact facts and keep intent
checks as written. Also fix the assertions example, which repeated a
mapping key.
Settle the open gates in favor of the smallest test files that keep
the fail-closed guarantee. A default mock covers every unnamed step,
waits without required values are approved automatically, and secrets
need values only when a step is real, so committed tests carry no
credentials.
Add output, stream, and notification assertions, run retries without a
scheduler, run-time repeat limits decided when they resolve, paste-ready
fixes for invalid cases, a test-file JSON Schema, and the --init and
--update authoring tools.
A job's machine and logs are gone once its run ends, and a review of
what a person can then do found gaps. Reports now say where the run
ran: the CI platform with a link to its run, or Kubernetes with the
pod's name. A job run shows that platform instead of "manual", which
on such a machine is rarely a person.
The sender honors proxies and custom certificates as the other Console
clients do, prints a line when a finish was counted but not listed
past the allowance, and sends its version for Console to show beside
the key. The docs cover the firewall host and grouping retries with
--run-id.
Job runs send error messages by default, at the errors level Dagu
recommends for servers: once the machine is gone, a failure alert is
the only place that says why the run failed. cloud.report: runs keeps
error output on the machine.
The run prints one neutral line when it reports and a warning when
reporting stops short, naming neither the key nor the workspace, since
CI and Kubernetes logs are often public.
A DAG run in a Kubernetes Job or CI step reports nothing: only the
server process reports, and running a server per container fills the
plan with servers meant to disappear. Dagu Console now takes runs sent
with a run key (RFC 020 in dagucloud/cloud) and waits for a sender.
RFC 022 has dagu start, exec, retry, and restart report the top-level
run with DAGU_CLOUD_RUN_KEY: at the start, each minute, on a status
change, and at the finish, retried for 10 seconds, without ever
changing the run's status or exit code. It wraps the run-state store
the agent writes through, reuses the server reporter's builders, and
stays off on a licensed server, a worker, a sub-DAG, a test, or a dry
run.
The reporter measured every cached step again on each report to keep
the runs in progress within their 512 KiB. A read now keeps its size,
and reads are kept by the run as listed, so a run whose status changed
is read again.
A run bound to an inventory node now reaches it over SSH, as a run
with DAG-level ssh reaches its host. Steps with no action, steps typed
command or shell, ssh.run, and sftp.* connect to the node through its
bastion; other actions run where the run runs. Before, every bound run
with a command step failed before any step started.
Each hop accepts only its node's pinned or trusted host key unless the
node sets strict_host_key: false, and a refused key fails the step
before any credential is sent. The node's secret refs resolve once per
run, only when a step connects, and join the run's masking. A step's
with overrides the node's fields. with.known_host_file,
with.strict_host_key, and with.bastion are errors, since the inventory
decides them.
${node.*} reads the bound node's name, host, port, user, description,
and labels. A run fails before any step when its node is missing or
disabled, or when a value-resolved field reads a label the node lacks
or a path the namespace does not define. Outside a bound run, a
variable named node keeps its JSON path reading.
A command step's node children now read earlier steps' outputs. Bound
runs on workers fail before any step until N27.
The sidebar footer showed the license label in a different font, size,
and nesting than the version number next to it. Render the label as a
direct sibling of the version, in the same monospace 11px style.
Closes#4026
Dagu v3 records each audit entry's project ID and name (RFC 003), and
Console filters by them. The upload sends both within the identifier
limits. project_id is generated, so it stays unmasked with the other
control fields; the project name is masked like workspace.
Since #4009 the scheduler keeps a long-term history of the runs of each
service DAG, but nothing read it. Three API routes now serve it: the
samples in buckets, the failed, recovered and gap events, and the
availability of four windows, each with its uptime.
A sample is written only when a run ends, so the routes add the run in
progress to the uptime at the time of the query, without counting the
time the history already recorded. A DAG that is no longer a service
DAG keeps serving its history, and its live run adds no up time. A
plain DAG with no history gets 404.
StepSamples and StepAvailability become aliases of the shared schemas,
so the step routes answer as before. A conformance suite checks the
routes against a real scheduler and server.