Skip to content

Commit 5f71bac

Browse files
authored
hotfix(operator): send only rpc host to telemetry service (#1316)
1 parent 3845a1f commit 5f71bac

File tree

9 files changed

+18
-23
lines changed

9 files changed

+18
-23
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OS := $(shell uname -s)
66
CONFIG_FILE?=config-files/config.yaml
77
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml
88

9-
OPERATOR_VERSION=v0.10.0
9+
OPERATOR_VERSION=v0.10.1
1010

1111
ifeq ($(OS),Linux)
1212
BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux

batcher/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

batcher/aligned/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aligned"
3-
version = "0.9.2"
3+
version = "0.10.1"
44
edition = "2021"
55

66
[dependencies]

docs/3_guides/1_SDK_how_to.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To use this SDK in your Rust project, add the following to your `Cargo.toml`:
1212

1313
```toml
1414
[dependencies]
15-
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.10.0" }
15+
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.10.1" }
1616
```
1717

1818
To find the latest release tag go to [releases](https://github.com/yetanotherco/aligned_layer/releases) and copy the

docs/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* [Operator FAQ](operator_guides/1_operator_FAQ.md)
4141
* [Troubleshooting](operator_guides/2_troubleshooting.md)
4242
* Upgrading Guides
43-
* [Upgrading to v0.10.0](operator_guides/upgrading_guides/v0_10_0.md)
43+
* [Upgrading to v0.10.1](operator_guides/upgrading_guides/v0_10_1.md)
4444
* [Upgrading to v0.9.2](operator_guides/upgrading_guides/v0_9_2.md)
4545

4646
## Useful links

docs/operator_guides/0_running_an_operator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Register as an Aligned operator in testnet
22

33
> **CURRENT VERSION:**
4-
> Aligned Operator [v0.10.0](https://github.com/yetanotherco/aligned_layer/releases/tag/v0.10.0)
4+
> Aligned Operator [v0.10.1](https://github.com/yetanotherco/aligned_layer/releases/tag/v0.10.1)
55
66
> **IMPORTANT:**
77
> You must be [whitelisted](https://docs.google.com/forms/d/e/1FAIpQLSdH9sgfTz4v33lAvwj6BvYJGAeIshQia3FXz36PFfF-WQAWEQ/viewform) to become an Aligned operator.
@@ -26,7 +26,7 @@ Minimum hardware requirements:
2626
To start with, clone the Aligned repository and move inside it
2727

2828
```bash
29-
git clone https://github.com/yetanotherco/aligned_layer.git --branch v0.10.0
29+
git clone https://github.com/yetanotherco/aligned_layer.git --branch v0.10.1
3030
cd aligned_layer
3131
```
3232

docs/operator_guides/upgrading_guides/v0_10_0.md renamed to docs/operator_guides/upgrading_guides/v0_10_1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Upgrading to v0.10.0
1+
# Upgrading to v0.10.1
22

3-
This guide will walk you through the process of upgrading your Aligned Operator to v0.10.0.
3+
This guide will walk you through the process of upgrading your Aligned Operator to v0.10.1.
44

55
## Changes
66

@@ -49,7 +49,7 @@ To see the operator version, run:
4949
This will display the current version of the operator binary.
5050

5151
```
52-
Aligned Layer Node Operator version v0.10.0
52+
Aligned Layer Node Operator version v0.10.1
5353
```
5454

5555
### Step 4 - Restart the Operator

operator/pkg/utils.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ package operator
22

33
import (
44
"fmt"
5+
"github.com/yetanotherco/aligned_layer/common"
56
"math/big"
67
"regexp"
7-
"strings"
8-
9-
"github.com/yetanotherco/aligned_layer/common"
108
)
119

1210
func IsVerifierDisabled(disabledVerifiersBitmap *big.Int, verifierId common.ProvingSystemId) bool {
@@ -31,15 +29,6 @@ func BaseUrlOnly(input string) (string, error) {
3129
}
3230

3331
host := matches[2]
34-
path := matches[3]
35-
36-
// If the path is not empty, append the path without the last segment (api_key)
37-
if path != "" {
38-
pathSegments := strings.Split(path, "/")
39-
if len(pathSegments) > 1 {
40-
return host + strings.Join(pathSegments[:len(pathSegments)-1], "/"), nil
41-
}
42-
}
4332

4433
return host, nil
4534
}

operator/pkg/utils_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ func TestBaseUrlOnlyHappyPath(t *testing.T) {
5757
{"http://localhost:8545/asdfoij2a7831has89%342jddav98j2748", "localhost:8545"},
5858
{"ws://test.com/23r2f98hkjva0udhvi1j%342jddav98j2748", "test.com"},
5959
{"http://localhost:8545", "localhost:8545"},
60-
{"https://myservice.com/holesky/ApiKey", "myservice.com/holesky"},
60+
{"https://myservice.com/holesky/ApiKey", "myservice.com"},
61+
{"https://holesky.myservice.com/holesky", "holesky.myservice.com"},
62+
{"https://eth-mainnet.blastapi.io/12345678-abcd-1234-abcd-123456789012", "eth-mainnet.blastapi.io"},
63+
{"https://eth-holesky.g.alchemy.com/v2/1234567890_abcdefghijklmnopqrstuv/", "eth-holesky.g.alchemy.com"},
64+
{"https://a.b.c.d/1234", "a.b.c.d"},
65+
{"https://a.b.c.d/1234/5678", "a.b.c.d"},
66+
{"https://a.b.c.d.e/1234/", "a.b.c.d.e"},
6167
}
6268

6369
for _, pair := range urls {

0 commit comments

Comments
 (0)