Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ test-scripts` fails while the committed file differs from a fresh render, and `m
lint-alloy` validates and runs it.

**Pinned upstream releases.** One decdn/decdn release line (`decdn_node_version`, today
`0.1`) and one decdn/sponsord release line (`sponsord_version` = `sponsord_onramp_version`,
`0.2`) and one decdn/sponsord release line (`sponsord_version` = `sponsord_onramp_version`,
today `0.1`; decdn/sponsord tags its whole workspace `vX.Y.Z`, there are no per-crate
tags) are pinned across every path. A line, `X.Y`, is what the role defaults, the
onramp's installer pin (`sponsord_onramp_decdn_release`, `vX.Y`) and the chart's
Expand Down
2 changes: 1 addition & 1 deletion ansible/inventory/group_vars/sponsord_onramp_hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
# role's sponsord_onramp_decdn_release line (decdn/decdn, the decdn_node role's default
# line; a host's decdn_node_version does not move it), with the SHA-256 of its
# verified SHA256SUMS, on each deploy. To serve one exact release, set its tag and digest:
# sponsord_onramp_decdn_release: v0.1.0
# sponsord_onramp_decdn_release: v0.2.0
# sponsord_onramp_decdn_sums_sha256: "…"
# CapacityBond and SlashJudge come from sponsord_network (group_vars/sponsord_hosts.yml).
4 changes: 2 additions & 2 deletions ansible/inventory/host_vars/decdn-node-1/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
# line the role pins ("X.Y": its newest release, installed by each deploy); set an
# exact one only to hold a node on it.
decdn_node_install_method: release
# decdn_node_version: "0.1.0"
# decdn_node_version: "0.2.0"
#
# Alternative: build on the node from a git ref (any tag, branch or SHA), as an
# unprivileged build user with a pinned toolchain (decdn_node_version is not checked
# in this mode):
# decdn_node_install_method: source
# decdn_node_source_ref: v0.1.0
# decdn_node_source_ref: v0.2.0
# Alternative: copy binaries built on this control machine
# (`cargo build --release -p decdn-node -p decdn-cli` in a decdn/decdn checkout):
# decdn_node_install_method: manual
Expand Down
4 changes: 2 additions & 2 deletions ansible/inventory/host_vars/origin-1/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
# line the role pins ("X.Y": its newest release, installed by each deploy); set an
# exact one only to hold a node on it.
decdn_node_install_method: release
# decdn_node_version: "0.1.0"
# decdn_node_version: "0.2.0"
#
# Alternative: build on the node from a git ref (any tag, branch or SHA), as an
# unprivileged build user with a pinned toolchain (decdn_node_version is not checked
# in this mode):
# decdn_node_install_method: source
# decdn_node_source_ref: v0.1.0
# decdn_node_source_ref: v0.2.0
# Alternative: copy binaries built on this control machine
# (`cargo build --release -p decdn-node -p decdn-cli` in a decdn/decdn checkout):
# decdn_node_install_method: manual
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/decdn_node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ decdn_rustup_sha256:
# default is the line this repo is synced against; a new line also moves the
# generated mirrors, the onramp's decdn pin and the chart's appVersion (README.md,
# "Bumping the decdn release").
decdn_node_version: "0.1"
decdn_node_version: "0.2"
# Release target triple. Derived from the host's gathered architecture (x86_64 or
# aarch64, see vars/main/arch.yml), so arm64 hosts (Graviton, Ampere, Hetzner CAX)
# get the aarch64 tarball with no inventory change. Needs facts: a play with
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/decdn_node/vars/main/networks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# GENERATED by scripts/sync-network-profiles.py -- do not hand-edit.
# Source: decdn/decdn @ 538bf319631cb37854819e43998e4a73da06fd5c
# Source: decdn/decdn @ 5c830ea2dae90c99410097192b558b3ac970ccc4
# crates/cli/src/known_chains.rs (KNOWN_CHAINS, KnownChain::addresses)
# + contracts/deployments/<chainId>.json
#
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/sponsord/vars/main/networks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# GENERATED by scripts/sync-network-profiles.py -- do not hand-edit.
# Source: decdn/decdn @ 538bf319631cb37854819e43998e4a73da06fd5c
# Source: decdn/decdn @ 5c830ea2dae90c99410097192b558b3ac970ccc4
# crates/cli/src/known_chains.rs (KNOWN_CHAINS, KnownChain::addresses)
# + contracts/deployments/<chainId>.json
#
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/sponsord_onramp/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ sponsord_onramp_gate_template_src: ""
# verified against sponsord_onramp_decdn_keyring first. An exact tag, "vX.Y.Z",
# needs that digest set beside it (`sha256sum SHA256SUMS` after verifying its .asc);
# preflight refuses a tag without one and a line with one.
sponsord_onramp_decdn_release: v0.1 # decdn/decdn line or tag
sponsord_onramp_decdn_release: v0.2 # decdn/decdn line or tag
sponsord_onramp_decdn_sums_sha256: "" # with a tag only
sponsord_onramp_decdn_release_index: "https://api.github.com/repos/decdn/decdn/releases?per_page=100"
# Where the role reads a line's SHA256SUMS: the installers' own download location
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/sponsord_onramp/vars/main/networks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# GENERATED by scripts/sync-network-profiles.py -- do not hand-edit.
# Source: decdn/decdn @ 538bf319631cb37854819e43998e4a73da06fd5c
# Source: decdn/decdn @ 5c830ea2dae90c99410097192b558b3ac970ccc4
# crates/cli/src/known_chains.rs (KNOWN_CHAINS, KnownChain::addresses)
# + contracts/deployments/<chainId>.json
#
Expand Down
4 changes: 2 additions & 2 deletions charts/decdn-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version: 0.2.0
# restarted pod runs the newest). Keep it equal to the decdn_node role's
# decdn_node_version, and the tag of the one image in the artifacthub.io/images
# annotation below (make test-scripts checks both).
appVersion: "0.1"
appVersion: "0.2"
kubeVersion: ">=1.25.0-0"
home: https://decdn.org
icon: https://decdn.org/icon.svg
Expand All @@ -39,7 +39,7 @@ annotations:
artifacthub.io/license: MIT
artifacthub.io/images: |
- name: decdn-node
image: ghcr.io/decdn/decdn-node:0.1
image: ghcr.io/decdn/decdn-node:0.2
artifacthub.io/links: |
- name: Chart source
url: https://github.com/decdn/devops/tree/main/charts/decdn-node
Expand Down
4 changes: 2 additions & 2 deletions charts/decdn-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ image:
tag: ""
# sha256:... — takes precedence over tag when set. Prefer it: a tag can be moved.
# Take it from the release's signed decdn-node-image-digest.txt (v0.0.1:
# image-digest.txt), e.g. for v0.1.0
# sha256:848532722735b4a115aca9606230d951c25f2dab06a7345305ecf67c7a0244b5
# image-digest.txt), e.g. for v0.2.0
# sha256:03a9f2e1167db31bb9a95af0b6672916300f86191a41db75db4c568c94899e60
digest: ""
# "" picks Always for a release-line tag (X.Y, the default), so a restarted pod
# pulls the newest release in it rather than whatever the node cached first, and
Expand Down
2 changes: 1 addition & 1 deletion cloud-init/user-data-publisher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ write_files:
# the digest read from it. To serve one exact release, set its tag with the
# SHA-256 of its SHA256SUMS (`sha256sum SHA256SUMS` once its SHA256SUMS.asc
# verifies), e.g.:
# sponsord_onramp_decdn_release: "v0.1.0"
# sponsord_onramp_decdn_release: "v0.2.0"
# sponsord_onramp_decdn_sums_sha256: "<64 lowercase hex>"

# What an interactive login prints while the bootstrap is unfinished. It is written
Expand Down
4 changes: 2 additions & 2 deletions compose/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ COMPOSE_PROFILES=node
# Compose names one release of it (README.md, the node's "Operate").

# --- node -----------------------------------------------------------------------
# decdn/decdn v0.1.0
DECDN_IMAGE_DIGEST=sha256:848532722735b4a115aca9606230d951c25f2dab06a7345305ecf67c7a0244b5
# decdn/decdn v0.2.0
DECDN_IMAGE_DIGEST=sha256:03a9f2e1167db31bb9a95af0b6672916300f86191a41db75db4c568c94899e60
# DECDN_IMAGE_REPO=ghcr.io/decdn/decdn-node

# uid/gid of the host's dedicated `decdn` system account, which owns /var/lib/decdn
Expand Down
6 changes: 3 additions & 3 deletions compose/sponsord-onramp.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ ONRAMP_TURNSTILE_SITEKEY=
# SHA-256 of that release's SHA256SUMS file (`sha256sum SHA256SUMS` once its .asc
# verifies). The Ansible role serves the newest release of its decdn line; Compose
# has no resolver, so this names one, the newest when this file last moved:
# decdn/decdn v0.1.0.
ONRAMP_DECDN_RELEASE=v0.1.0
ONRAMP_DECDN_SUMS_SHA256=c88ad5479f31bb0857db2c0205c54b240cbceb33a96724e4f8a288b6d866ab66
# decdn/decdn v0.2.0.
ONRAMP_DECDN_RELEASE=v0.2.0
ONRAMP_DECDN_SUMS_SHA256=f4f0a16f1a3896c729bba21ece023f00cae89bea51369047fa7a03f6c7f088d4

# --- Client address ---------------------------------------------------------------
# The header the proxy puts the client address in; the onramp rate limits by it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
# role's sponsord_onramp_decdn_release line (decdn/decdn, the decdn_node role's default
# line; a host's decdn_node_version does not move it), with the SHA-256 of its
# verified SHA256SUMS, on each deploy. To serve one exact release, set its tag and digest:
# sponsord_onramp_decdn_release: v0.1.0
# sponsord_onramp_decdn_release: v0.2.0
# sponsord_onramp_decdn_sums_sha256: "…"
# CapacityBond and SlashJudge come from sponsord_network (group_vars/sponsord_hosts.yml).
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
# line the role pins ("X.Y": its newest release, installed by each deploy); set an
# exact one only to hold a node on it.
decdn_node_install_method: release
# decdn_node_version: "0.1.0"
# decdn_node_version: "0.2.0"
#
# Alternative: build on the node from a git ref (any tag, branch or SHA), as an
# unprivileged build user with a pinned toolchain (decdn_node_version is not checked
# in this mode):
# decdn_node_install_method: source
# decdn_node_source_ref: v0.1.0
# decdn_node_source_ref: v0.2.0
# Alternative: copy binaries built on this control machine
# (`cargo build --release -p decdn-node -p decdn-cli` in a decdn/decdn checkout):
# decdn_node_install_method: manual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
# line the role pins ("X.Y": its newest release, installed by each deploy); set an
# exact one only to hold a node on it.
decdn_node_install_method: release
# decdn_node_version: "0.1.0"
# decdn_node_version: "0.2.0"
#
# Alternative: build on the node from a git ref (any tag, branch or SHA), as an
# unprivileged build user with a pinned toolchain (decdn_node_version is not checked
# in this mode):
# decdn_node_install_method: source
# decdn_node_source_ref: v0.1.0
# decdn_node_source_ref: v0.2.0
# Alternative: copy binaries built on this control machine
# (`cargo build --release -p decdn-node -p decdn-cli` in a decdn/decdn checkout):
# decdn_node_install_method: manual
Expand Down
Loading