Skip to content

Commit 3ea095f

Browse files
committed
rename project
1 parent 2693978 commit 3ea095f

File tree

11 files changed

+51
-51
lines changed

11 files changed

+51
-51
lines changed

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.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "osiris"
2+
name = "saimiris"
33
version = "0.1.0"
44
edition = "2021"
55

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apt-get update \
1616
&& apt-get install -y libpcap-dev libsasl2-dev libssl-dev \
1717
&& rm -rf /var/lib/apt/lists/*
1818

19-
COPY --from=builder /usr/local/cargo/bin/osiris /app/osiris
19+
COPY --from=builder /usr/local/cargo/bin/saimiris /app/saimiris
2020

21-
ENTRYPOINT [ "/app/osiris" ]
21+
ENTRYPOINT [ "/app/saimiris" ]
2222
CMD [ "--help" ]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Osiris
1+
# Saimiris
22

33
> [!WARNING]
4-
> Osiris is currently in early-stage development.
4+
> Currently in early-stage development.
55
66
## Structure
77

src/config.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct AppConfig {
8181
pub fn load_config(config_path: &str) -> Config {
8282
Config::builder()
8383
.add_source(config::File::with_name(config_path))
84-
.add_source(config::Environment::with_prefix("OSIRIS"))
84+
.add_source(config::Environment::with_prefix("SAIMIRIS"))
8585
.build()
8686
.unwrap()
8787
}
@@ -126,22 +126,22 @@ pub fn prober_config(config: Config) -> AppConfig {
126126
.unwrap_or("PLAINTEXT".to_string()),
127127
auth_sasl_username: config
128128
.get_string("kafka.auth_sasl_username")
129-
.unwrap_or("osiris".to_string()),
129+
.unwrap_or("saimiris".to_string()),
130130
auth_sasl_password: config
131131
.get_string("kafka.auth_sasl_password")
132-
.unwrap_or("osiris".to_string()),
132+
.unwrap_or("saimiris".to_string()),
133133
auth_sasl_mechanism: config
134134
.get_string("kafka.auth_sasl_mechanism")
135135
.unwrap_or("SCRAM-SHA-512".to_string()),
136136
in_topics: config
137137
.get_string("kafka.in_topics")
138-
.unwrap_or("osiris".to_string()),
138+
.unwrap_or("saimiris".to_string()),
139139
in_group_id: config
140140
.get_string("kafka.in_group_id")
141-
.unwrap_or("osiris".to_string()),
141+
.unwrap_or("saimiris".to_string()),
142142
out_topic: config
143143
.get_string("kafka.out_topic")
144-
.unwrap_or("osiris-results".to_string()),
144+
.unwrap_or("saimiris-results".to_string()),
145145
},
146146

147147
// Prober configuration

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::io::Write;
1313
use crate::config::{load_config, prober_config};
1414

1515
#[derive(Debug, Parser)]
16-
#[clap(name = "Osiris", version)]
16+
#[clap(name = "Saimiris", version)]
1717
pub struct App {
1818
#[clap(flatten)]
1919
global_opts: GlobalOpts,
@@ -59,7 +59,7 @@ fn set_logging(cli: &GlobalOpts) {
5959
record.args()
6060
)
6161
})
62-
.filter_module("osiris", cli.verbose.log_level_filter())
62+
.filter_module("saimiris", cli.verbose.log_level_filter())
6363
.init();
6464
}
6565

testbed/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Testbed
22

3-
Docker Compose setup to facilitate the tests of Osiris.
3+
Docker Compose setup to facilitate the tests of Saimiris.
44

5-
The testbed consists in a Redpanda and ClickHouse instance. Required ClickHouse [tables](config/clickhouse/docker-entrypoint-initdb.d/init.sql) are created on startup. The `osiris.from_kafka` is using the ClickHouse [Kafka engine](https://clickhouse.com/docs/en/engines/table-engines/integrations/kafka) to fetch the results from Redpanda. The `osiris.results` table is used to store the results.
5+
The testbed consists in a Redpanda and ClickHouse instance. Required ClickHouse [tables](config/clickhouse/docker-entrypoint-initdb.d/init.sql) are created on startup. The `saimiris.from_kafka` is using the ClickHouse [Kafka engine](https://clickhouse.com/docs/en/engines/table-engines/integrations/kafka) to fetch the results from Redpanda. The `saimiris.results` table is used to store the results.
66

7-
As an example, Redpanda is configured with SASL authentication, and uses the default Osiris SASL credentials.
7+
As an example, Redpanda is configured with SASL authentication, and uses the default Saimiris SASL credentials.
88

99
## Usage
1010

@@ -14,16 +14,16 @@ As an example, Redpanda is configured with SASL authentication, and uses the def
1414
docker compose up -d --force-recreate --renew-anon-volumes
1515
```
1616

17-
* Run Osiris Prober (from the root of the repository)
17+
* Run Saimiris Prober (from the root of the repository)
1818

1919
```sh
20-
cargo run -- prober --config=testbed/config/osiris/osiris.yml
20+
cargo run -- prober --config=testbed/config/saimiris/saimiris.yml
2121
```
2222

23-
* Run Osiris Client (from the root of the repository)
23+
* Run Saimiris Client (from the root of the repository)
2424

2525
```sh
26-
cargo run -- prober --config=testbed/config/osiris/osiris.yml 2606:4700:4700::1111/128,1,32,1
26+
cargo run -- prober --config=testbed/config/saimiris/saimiris.yml 2606:4700:4700::1111/128,1,32,1
2727
```
2828

2929
* Stop the testbed

testbed/config/clickhouse/docker-entrypoint-initdb.d/init.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
CREATE DATABASE IF NOT EXISTS osiris;
2-
CREATE TABLE osiris.from_kafka
1+
CREATE DATABASE IF NOT EXISTS saimiris;
2+
CREATE TABLE saimiris.from_kafka
33
(
44
timestamp DateTime64,
55
prober_id UInt16,
@@ -26,11 +26,11 @@ CREATE TABLE osiris.from_kafka
2626
ENGINE = Kafka()
2727
SETTINGS
2828
kafka_broker_list = '10.0.0.100:9093',
29-
kafka_topic_list = 'osiris-results',
30-
kafka_group_name = 'clickhouse-osiris-group',
29+
kafka_topic_list = 'saimiris-results',
30+
kafka_group_name = 'clickhouse-saimiris-group',
3131
kafka_format = 'CSV';
3232

33-
CREATE TABLE osiris.results
33+
CREATE TABLE saimiris.results
3434
(
3535
timestamp DateTime64,
3636
prober_id UInt16,
@@ -64,5 +64,5 @@ ORDER BY (
6464
probe_ttl
6565
);
6666

67-
CREATE MATERIALIZED VIEW osiris.from_kafka_mv TO osiris.results
68-
AS SELECT * FROM osiris.from_kafka;
67+
CREATE MATERIALIZED VIEW saimiris.from_kafka_mv TO saimiris.results
68+
AS SELECT * FROM saimiris.from_kafka;

testbed/config/osiris/osiris.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

testbed/config/redpanda/entrypoint.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ set -m
88
sleep 3
99

1010
# Create the topics
11-
/usr/bin/rpk topic create osiris-targets
12-
/usr/bin/rpk topic create osiris-results
11+
/usr/bin/rpk topic create saimiris-targets
12+
/usr/bin/rpk topic create saimiris-results
1313

1414
# Create `admin` superuser
1515
/usr/bin/rpk cluster config set superusers ['admin']
@@ -18,10 +18,10 @@ sleep 3
1818
# Enable SASL
1919
/usr/bin/rpk cluster config set enable_sasl true
2020

21-
# Create `osiris` user and grant it access to the cluster and the topic
22-
/usr/bin/rpk security user create osiris -p 'osiris' --mechanism SCRAM-SHA-512
23-
/usr/bin/rpk security acl create --allow-principal User:osiris --operation all --cluster -X user=admin -X pass='admin' -X sasl.mechanism=SCRAM-SHA-512
24-
/usr/bin/rpk security acl create --allow-principal User:osiris --operation all --topic osiris-targets -X user=admin -X pass='admin' -X sasl.mechanism=SCRAM-SHA-512
25-
/usr/bin/rpk security acl create --allow-principal User:osiris --operation all --group osiris-prober- --resource-pattern-type prefixed -X user=admin -X pass='admin' -X sasl.mechanism=SCRAM-SHA-512
26-
/usr/bin/rpk security acl create --allow-principal User:osiris --operation all --topic osiris-results -X user=admin -X pass='admin' -X sasl.mechanism=SCRAM-SHA-512
21+
# Create `saimiris` user and grant it access to the cluster and the topic
22+
/usr/bin/rpk security user create saimiris -p 'saimiris' --mechanism SCRAM-SHA-512
23+
/usr/bin/rpk security acl create --allow-principal User:saimiris --operation all --cluster -X user=admin -X pass='admin' -X sasl.mechanism=SCRAM-SHA-512
24+
/usr/bin/rpk security acl create --allow-principal User:saimiris --operation all --topic saimiris-targets -X user=admin -X pass='admin' -X sasl.mechanism=SCRAM-SHA-512
25+
/usr/bin/rpk security acl create --allow-principal User:saimiris --operation all --group saimiris-prober- --resource-pattern-type prefixed -X user=admin -X pass='admin' -X sasl.mechanism=SCRAM-SHA-512
26+
/usr/bin/rpk security acl create --allow-principal User:saimiris --operation all --topic saimiris-results -X user=admin -X pass='admin' -X sasl.mechanism=SCRAM-SHA-512
2727
fg %1

0 commit comments

Comments
 (0)