Skip to content

Commit d23521e

Browse files
authored
chore(charts): remove tor-proxy from all charts [sc-15516] (#273)
* chore(charts): remove tor-proxy from all charts [sc-15516] Remove tor-proxy chart and all tor-related components from spectre, spire, and validator charts. The tor network functionality is no longer used in the Chronicle Protocol infrastructure. Changes: - Delete charts/tor-proxy entirely - Remove tor-controller CRDs from spectre, spire, and validator - Remove tor-onion-service and tor-daemon templates - Remove tor-proxy references from values.yaml files - Update Chart.yaml versions (validator: 0.4.8 → 0.5.0) - Make VAO deployment conditional (vao.enabled flag) - Add connectionTest.enabled flag for helm test control - Add CI test configuration (ct-values.yaml) - Update CI values files to disable VAO and probes for testing - Improve test reliability by using WATCHDOG log pattern Refs: sc-15516 * revert(validator): remove CI compatibility changes Revert validator chart changes that were added for CI compatibility: - Remove ct-values.yaml - Revert VAO template conditionals - Revert version bumps - Revert CI values modifications Keep only tor-proxy file deletions. CI will fail until validator chart is updated in a separate branch. * revert(validator): restore tor-proxy files Keep tor-proxy CRDs and templates in the validator chart. Only spectre and spire charts have tor-proxy removed. * chore(charts): remove CFG_WEBAPI_* vars and update appVersion Remove all CFG_WEBAPI_* environment variables from spectre and spire charts (WEBAPI == tor). Update appVersion to 0.68.3 to match current production deployment. * fix(spectre): replace CLI log flags with env vars The 0.68.3 suite binary no longer accepts --log.format as a CLI flag. Switch to CFG_LOG_LEVEL and CFG_LOG_FORMAT env vars, matching the validator chart pattern. * fix(spectre): provide inlineConfig to override embedded poison pill The spectre 0.68.3 binary embeds an intentionally broken config (negative optimistic_expiration) to force external config injection. Provide a minimal valid HCL config via inlineConfig in CI test values so the binary starts without falling back to the broken embedded default. * fix(spectre): add missing transport block to inlineConfig Spectre binary requires a transport.libp2p block. Added minimal config with discovery disabled and no bootstrap peers for CI. * fix(spectre): update test-logs grep to match 0.68.3 log format Spectre 0.68.3 changed the relay startup log from 'Starting chainID=X tag=RELAY' to 'msg=Starting tag=RELAY'. Update the helm test grep pattern accordingly.
1 parent d43e746 commit d23521e

29 files changed

+65
-36452
lines changed

charts/spectre/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ type: application
2222
# This is the chart version. This version number should be incremented each time you make changes
2323
# to the chart and its templates, including the app version.
2424
# Versions are expected to follow Semantic Versioning (https://semver.org/)
25-
version: 0.3.3
25+
version: 0.3.4
2626

2727
# This is the version number of the application being deployed. This version number should be
2828
# incremented each time you make changes to the application. Versions are not expected to
2929
# follow Semantic Versioning. They should reflect the version the application is using.
3030
# It is recommended to use it with quotes.
31-
appVersion: "0.42.2"
31+
appVersion: "0.68.3"

charts/spectre/README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# spectre
22

3-
![Version: 0.3.3](https://img.shields.io/badge/Version-0.3.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.42.2](https://img.shields.io/badge/AppVersion-0.42.2-informational?style=flat-square)
3+
![Version: 0.3.4](https://img.shields.io/badge/Version-0.3.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.68.3](https://img.shields.io/badge/AppVersion-0.68.3-informational?style=flat-square)
44

55
A Helm chart for deploying Chronicle Spectre Relay on Kubernetes
66

@@ -25,11 +25,6 @@ A Helm chart for deploying Chronicle Spectre Relay on Kubernetes
2525
| chainType | string | `nil` | can be one of mainnet: `eth`, `arb`, `opt`, `gno`, `scr`, `zkevm`, `mantle`, or testnets: `gor`, `sep`, `ogor`, `mango`, `testnet-zkEVM-mango`, `mantle-testnet`, `scr-sepolia` |
2626
| configsUrl | string | `""` | config url for the app, if provided, will override the default config. can be an ipfs url or a http url |
2727
| entryPointOverride | list | `[]` | |
28-
| env.normal.CFG_WEBAPI_ENABLE | int | `1` | |
29-
| env.normal.CFG_WEBAPI_ETH_ADDR_BOOK | string | `""` | |
30-
| env.normal.CFG_WEBAPI_LISTEN_ADDR | string | `":8080"` | |
31-
| env.normal.CFG_WEBAPI_SOCKS5_PROXY_ADDR | string | `""` | |
32-
| env.normal.CFG_WEBAPI_STATIC_ADDR_BOOK | string | `""` | |
3328
| environment | string | `"stage"` | CFG_ENVIRONMENT can be one of `stage` or `prod` |
3429
| ethConfig | object | `{}` | |
3530
| extraObjects | list | `[]` | Extra K8s manifests to deploy |
@@ -84,7 +79,6 @@ A Helm chart for deploying Chronicle Spectre Relay on Kubernetes
8479
| serviceMonitor.scrapeTimeout | string | `"60s"` | ServiceMonitor scrape timeout |
8580
| serviceMonitor.tlsConfig | object | `{}` | ServiceMonitor TLS configuration |
8681
| tolerations | list | `[]` | |
87-
| tor-proxy.enabled | bool | `true` | values for tor-proxy, installs [tor-controller](/crds/tor-controller.yaml) and creates an [onionService CRD](/templates/onion-service.yaml) |
8882
| txType | string | `nil` | can be one of `legacy`or `eip1559` |
8983

9084
----------------------------------------------

charts/spectre/ci/testnet-envs-values.yaml

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,60 @@ chainType: sep
88

99
env:
1010
normal:
11-
CFG_WEBAPI_ENABLE: 1
12-
CFG_WEBAPI_LISTEN_ADDR: ":8080"
13-
CFG_WEBAPI_SOCKS5_PROXY_ADDR: ""
14-
CFG_WEBAPI_ETH_ADDR_BOOK: ""
15-
CFG_WEBAPI_STATIC_ADDR_BOOK: ""
16-
17-
CFG_SPECTRE_PAIRS: "DAI/USD"
18-
# CFG_MODELS: '"MKR/USD"\n"MKR/ETH"'
19-
2011
CFG_ETH_FROM: "0x1e68967a10a30602EbBa297cffeCC3645cB28D99"
2112
CFG_ETH_PASS: ""
2213
# THIS keystore is for testing purposes only. do not send funds here as you will lose them:
2314
CFG_ETH_KEYS: '{"crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"22ae1be4ab7cd766e05c03e334deb9d2"},"ciphertext":"56439cc948fbecff1c252f5cede620f65821c6446ddb6d4bfa38f17754555a44","kdf":"scrypt","kdfparams":{"dklen":32,"n":8192,"p":1,"r":8,"salt":"7dcaf2f0196aa5c9d05dc15fac39ec15dbd99db2311813fd3d1d98324faf05c5"},"mac":"191ffca516d2c263402bd03e4cf1a6df60ebc833f489346fefdf0fe89138f305"},"id":"aea697d6-94d9-4433-bd69-4808597b0768","version":3}'
15+
16+
inlineConfig: |
17+
variables {
18+
separator = env("CFG_SEPARATOR", "\n")
19+
target_chain_id = env("CFG_CHAIN_ID", "11155111")
20+
}
21+
ethereum {
22+
rand_keys = env("CFG_ETH_FROM", "") == "" ? ["default"] : []
23+
dynamic "key" {
24+
for_each = env("CFG_ETH_FROM", "") == "" ? [] : [1]
25+
labels = ["default"]
26+
content {
27+
address = env("CFG_ETH_FROM", "")
28+
keystore_path = env("CFG_ETH_KEYS", "")
29+
passphrase_file = env("CFG_ETH_PASS", "")
30+
}
31+
}
32+
client "default" {
33+
ethereum_key = "default"
34+
rpc_urls = explode(var.separator, env("CFG_CHAIN_RPC_URLS", ""))
35+
chain_id = tonumber(env("CFG_CHAIN_ID", "11155111"))
36+
tx_type = env("CFG_CHAIN_TX_TYPE", "legacy")
37+
}
38+
}
39+
info {
40+
ethereum_key = "default"
41+
}
42+
logger {
43+
log_level = env("CFG_LOG_LEVEL", "debug")
44+
log_format = env("CFG_LOG_FORMAT", "text")
45+
metrics {
46+
listen_host = ""
47+
listen_port = 8080
48+
listen_path = "/healthz"
49+
}
50+
}
51+
transport {
52+
libp2p {
53+
disable_discovery = true
54+
ethereum_key = "default"
55+
listen_addrs = explode(var.separator, env("CFG_LIBP2P_LISTEN_ADDRS", "/ip4/0.0.0.0/tcp/8000"))
56+
feeds = []
57+
}
58+
}
59+
spectre {
60+
scheduler = tonumber(env("CFG_SPECTRE_INTERVAL", "120"))
61+
scribe {
62+
ethereum_client = "default"
63+
contract_addr = "0x0000000000000000000000000000000000000001"
64+
spread = 1.0
65+
expiration = 86400
66+
}
67+
}

0 commit comments

Comments
 (0)