Rebrand: Sentry -> Cairn OBS
Full rebrand across cosmetic branding, code identifiers, and infrastructure/data-plane naming, using the supplied Cairn OBS logo package. Cosmetic: favicon/logo swap (also closes a stale license-audit finding -- the old favicon was SvelteKit's unreplaced scaffold logo), new centered welcome landing page, larger/legible sidebar logo, page titles, CLAUDE.md/README/docs prose. Code identifiers: Go module path github.com/sentry/sentry -> github.com/cairnobs/cairnobs across all 13 modules and ~91 files (protoc regenerated); Rust crates sentry-agent/sentry-parser/sentry-search -> cairnobs-*; CLI sentryctl -> cairnobsctl; Terraform provider fully renamed (sentry_dashboard etc. -> cairnobs_dashboard, provider type, env vars); every session/auth cookie name; agent config paths and Windows service identity. Deliberately preserved: the gRPC wire protocol's protobuf packages (sentry.logs.v1, sentry.agent.v1) and their Go import directory (proto/sentry/...) -- renaming the wire-level package would break every currently-deployed agent binary (confirmed two real hosts, including mail.inbuxa.com, are actively streaming through this exact contract) until rebuilt and redeployed in lockstep with an ingest cutover. Only the Go module path wrapping the generated code changes. Infrastructure: every docker-compose container name (root and three component-level compose files); the Helm chart (directory, Chart.yaml, named-template helpers, all templates, values.yaml image repos); Kubernetes Operator (CRD group sentry.io -> cairnobs.io, both CRD YAML files, Go identifiers, RBAC markers); the coupled enterprise/tenantcrd package. Caught and fixed real path-coupling bugs along the way: the Helm chart's search/ingest volume mounts and the dev-only-credential detection constant vs. docker-compose.yml's literal values had to move together or a security warning would have silently stopped firing. Data plane: Postgres database sentry_metadata -> cairnobs_metadata and role sentry -> cairnobs; ClickHouse database sentry -> cairnobs; Kafka topic sentry.logs.raw -> cairnobs.logs.raw and its consumer groups. Source-level defaults, docker-compose.yml, and every migrate.sh/ provision script default updated together; already-applied migration files left untouched per this repo's immutable-migration convention. Verified at every layer: all 13 Go modules build/vet/test clean, both Rust workspaces (agent, search) build/clippy/test clean, npm run check/ build clean, docker compose config validates on all four compose files. Live-verified against a real docker stack multiple times through this work, including a final fresh-volume run confirming the actual renamed Postgres database/role, ClickHouse database, and Kafka topic all work end to end with a real login and query, zero console errors.
This commit is contained in:
+2
-2
@@ -17,10 +17,10 @@ than sharing generated code across languages.
|
||||
|
||||
Go is the one language here with pre-generated, checked-in bindings
|
||||
(`sentry/logs/v1/logs.pb.go`, `logs_grpc.pb.go`), living in this directory
|
||||
as its own module (`github.com/sentry/sentry/proto`) that `/ingest` and
|
||||
as its own module (`github.com/cairnobs/cairnobs/proto`) that `/ingest` and
|
||||
`/api` depend on via a local `replace` directive in their `go.mod`. Rust
|
||||
(`/agent`) instead generates its bindings at build time via `tonic-build`
|
||||
(see `agent/sentry-agent/build.rs`) — no checked-in Rust output.
|
||||
(see `agent/cairnobs-agent/build.rs`) — no checked-in Rust output.
|
||||
|
||||
To regenerate the Go bindings after changing either `.proto` file:
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
module github.com/sentry/sentry/proto
|
||||
module github.com/cairnobs/cairnobs/proto
|
||||
|
||||
go 1.25.0
|
||||
|
||||
|
||||
@@ -482,7 +482,7 @@ const file_sentry_agent_v1_agent_control_proto_rawDesc = "" +
|
||||
"\x19AGENT_COMMAND_UNSPECIFIED\x10\x00\x12\x19\n" +
|
||||
"\x15AGENT_COMMAND_RESTART\x10\x012\\\n" +
|
||||
"\fAgentControl\x12L\n" +
|
||||
"\aCheckIn\x12\x1f.sentry.agent.v1.CheckInRequest\x1a .sentry.agent.v1.CheckInResponseB8Z6github.com/sentry/sentry/proto/sentry/agent/v1;agentv1b\x06proto3"
|
||||
"\aCheckIn\x12\x1f.sentry.agent.v1.CheckInRequest\x1a .sentry.agent.v1.CheckInResponseB<Z:github.com/cairnobs/cairnobs/proto/sentry/agent/v1;agentv1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_sentry_agent_v1_agent_control_proto_rawDescOnce sync.Once
|
||||
|
||||
@@ -2,7 +2,7 @@ syntax = "proto3";
|
||||
|
||||
package sentry.agent.v1;
|
||||
|
||||
option go_package = "github.com/sentry/sentry/proto/sentry/agent/v1;agentv1";
|
||||
option go_package = "github.com/cairnobs/cairnobs/proto/sentry/agent/v1;agentv1";
|
||||
|
||||
// AgentControl is the control-plane counterpart to logs.v1.LogIngest's
|
||||
// data-plane PushBatch -- the same mTLS channel/connection an agent
|
||||
|
||||
@@ -332,7 +332,7 @@ const file_sentry_logs_v1_logs_proto_rawDesc = "" +
|
||||
"\x0eSEVERITY_ERROR\x10\x05\x12\x12\n" +
|
||||
"\x0eSEVERITY_FATAL\x10\x062]\n" +
|
||||
"\tLogIngest\x12P\n" +
|
||||
"\tPushBatch\x12 .sentry.logs.v1.PushBatchRequest\x1a!.sentry.logs.v1.PushBatchResponseB6Z4github.com/sentry/sentry/proto/sentry/logs/v1;logsv1b\x06proto3"
|
||||
"\tPushBatch\x12 .sentry.logs.v1.PushBatchRequest\x1a!.sentry.logs.v1.PushBatchResponseB:Z8github.com/cairnobs/cairnobs/proto/sentry/logs/v1;logsv1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_sentry_logs_v1_logs_proto_rawDescOnce sync.Once
|
||||
|
||||
@@ -2,7 +2,7 @@ syntax = "proto3";
|
||||
|
||||
package sentry.logs.v1;
|
||||
|
||||
option go_package = "github.com/sentry/sentry/proto/sentry/logs/v1;logsv1";
|
||||
option go_package = "github.com/cairnobs/cairnobs/proto/sentry/logs/v1;logsv1";
|
||||
|
||||
// LogIngest is the service agents use to ship batched log records to the
|
||||
// ingest service over mTLS. Phase 0: single unary batch push. Streaming
|
||||
|
||||
@@ -147,16 +147,16 @@ var File_sentry_search_v1_search_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_sentry_search_v1_search_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x1dsentry/search/v1/search.proto\x12\x10sentry.search.v1\"X\n" +
|
||||
"\x1dsentry/search/v1/search.proto\x12\x12cairnobs.search.v1\"X\n" +
|
||||
"\rSearchRequest\x12\x14\n" +
|
||||
"\x05query\x18\x01 \x01(\tR\x05query\x12\x14\n" +
|
||||
"\x05limit\x18\x02 \x01(\rR\x05limit\x12\x1b\n" +
|
||||
"\ttenant_id\x18\x03 \x01(\tR\btenantId\"/\n" +
|
||||
"\x0eSearchResponse\x12\x1d\n" +
|
||||
"\n" +
|
||||
"record_ids\x18\x01 \x03(\tR\trecordIds2\\\n" +
|
||||
"\rSearchService\x12K\n" +
|
||||
"\x06Search\x12\x1f.sentry.search.v1.SearchRequest\x1a .sentry.search.v1.SearchResponseB:Z8github.com/sentry/sentry/proto/sentry/search/v1;searchv1b\x06proto3"
|
||||
"record_ids\x18\x01 \x03(\tR\trecordIds2`\n" +
|
||||
"\rSearchService\x12O\n" +
|
||||
"\x06Search\x12!.cairnobs.search.v1.SearchRequest\x1a\".cairnobs.search.v1.SearchResponseB>Z<github.com/cairnobs/cairnobs/proto/sentry/search/v1;searchv1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_sentry_search_v1_search_proto_rawDescOnce sync.Once
|
||||
@@ -172,12 +172,12 @@ func file_sentry_search_v1_search_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_sentry_search_v1_search_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_sentry_search_v1_search_proto_goTypes = []any{
|
||||
(*SearchRequest)(nil), // 0: sentry.search.v1.SearchRequest
|
||||
(*SearchResponse)(nil), // 1: sentry.search.v1.SearchResponse
|
||||
(*SearchRequest)(nil), // 0: cairnobs.search.v1.SearchRequest
|
||||
(*SearchResponse)(nil), // 1: cairnobs.search.v1.SearchResponse
|
||||
}
|
||||
var file_sentry_search_v1_search_proto_depIdxs = []int32{
|
||||
0, // 0: sentry.search.v1.SearchService.Search:input_type -> sentry.search.v1.SearchRequest
|
||||
1, // 1: sentry.search.v1.SearchService.Search:output_type -> sentry.search.v1.SearchResponse
|
||||
0, // 0: cairnobs.search.v1.SearchService.Search:input_type -> cairnobs.search.v1.SearchRequest
|
||||
1, // 1: cairnobs.search.v1.SearchService.Search:output_type -> cairnobs.search.v1.SearchResponse
|
||||
1, // [1:2] is the sub-list for method output_type
|
||||
0, // [0:1] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package sentry.search.v1;
|
||||
package cairnobs.search.v1;
|
||||
|
||||
option go_package = "github.com/sentry/sentry/proto/sentry/search/v1;searchv1";
|
||||
option go_package = "github.com/cairnobs/cairnobs/proto/sentry/search/v1;searchv1";
|
||||
|
||||
// SearchService is the full-text search index (Tantivy-backed) that
|
||||
// `api` calls to resolve a free-text query into matching record_ids,
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
SearchService_Search_FullMethodName = "/sentry.search.v1.SearchService/Search"
|
||||
SearchService_Search_FullMethodName = "/cairnobs.search.v1.SearchService/Search"
|
||||
)
|
||||
|
||||
// SearchServiceClient is the client API for SearchService service.
|
||||
@@ -120,7 +120,7 @@ func _SearchService_Search_Handler(srv interface{}, ctx context.Context, dec fun
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var SearchService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "sentry.search.v1.SearchService",
|
||||
ServiceName: "cairnobs.search.v1.SearchService",
|
||||
HandlerType: (*SearchServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user