feat: completed tasks for grade 4
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Skeleton contracts / contracts (pull_request) Blocked by required conditions
This commit is contained in:
+9
-2
@@ -64,7 +64,7 @@ def issue(directory: Path, name: str, san: str, usage: str, ca: str) -> None:
|
||||
def initialize(root: Path) -> None:
|
||||
directory = root / "secrets" / "tls"
|
||||
directory.mkdir(mode=0o700, parents=True, exist_ok=True)
|
||||
for name in ("ca", "foreign-ca", "otel-ingest-ca", "otel-write-ca", "otel-read-ca", "otel-scrape-ca"):
|
||||
for name in ("ca", "foreign-ca", "broker-client-ca", "otel-ingest-ca", "otel-write-ca", "otel-read-ca", "otel-scrape-ca"):
|
||||
create_ca(directory, name)
|
||||
for name, san in SERVER_NAMES.items():
|
||||
issue(directory, name, san, "serverAuth", "ca")
|
||||
@@ -74,7 +74,14 @@ def initialize(root: Path) -> None:
|
||||
for name, authority in (
|
||||
("otel-writer", "otel-write-ca"),
|
||||
("otel-reader", "otel-read-ca"),
|
||||
("otel-agent", "otel-ingest-ca"),
|
||||
("otel-api", "otel-ingest-ca"),
|
||||
("otel-worker", "otel-ingest-ca"),
|
||||
("otel-publisher", "otel-ingest-ca"),
|
||||
("otel-wrong-role", "otel-ingest-ca"),
|
||||
("api-broker", "broker-client-ca"),
|
||||
("attachment-worker", "broker-client-ca"),
|
||||
("attachment-publisher", "broker-client-ca"),
|
||||
("broker-wrong-role", "broker-client-ca"),
|
||||
("otel-scraper", "otel-scrape-ca"),
|
||||
):
|
||||
issue(directory, name, f"DNS:{name}", "clientAuth", authority)
|
||||
|
||||
Reference in New Issue
Block a user