Skip to content

Commit 48fb3c7

Browse files
authored
Merge pull request #680 from Ibrahim2595/fix/rossocortex-to-cortex
Refactor: Rename rossocortex → cortex (fix module paths)
2 parents dadd52f + c4df748 commit 48fb3c7

217 files changed

Lines changed: 579 additions & 573 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/demo.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This skill captures knowledge from building, debugging, and running AuthBridge d
44

55
## Repository Context
66

7-
- **Repo:** `rossoctl/rossocortex` (monorepo)
8-
- **Container registry:** `ghcr.io/rossoctl/rossocortex/<image-name>`
7+
- **Repo:** `rossoctl/cortex` (monorepo)
8+
- **Container registry:** `ghcr.io/rossoctl/cortex/<image-name>`
99
- **Agent examples repo:** `rossoctl/examples` (separate repo, images NOT published to GHCR)
1010
- **Demo guides:** `authbridge/demos/<demo-name>/demo-manual.md` (manual kubectl) and `demo-ui.md` (UI-driven)
1111

@@ -35,9 +35,9 @@ docker build -t ghcr.io/rossoctl/examples/<agent>:latest ./a2a/<agent>/
3535
docker build -t ghcr.io/rossoctl/examples/<tool>:latest ./mcp/<tool>/
3636

3737
# Build AuthBridge sidecar images
38-
cd rossocortex/authbridge/authproxy
39-
docker build -f Dockerfile.init -t ghcr.io/rossoctl/rossocortex/proxy-init:latest .
40-
docker build -f Dockerfile.envoy -t ghcr.io/rossoctl/rossocortex/envoy-with-processor:latest .
38+
cd cortex/authbridge/authproxy
39+
docker build -f Dockerfile.init -t ghcr.io/rossoctl/cortex/proxy-init:latest .
40+
docker build -f Dockerfile.envoy -t ghcr.io/rossoctl/cortex/envoy-with-processor:latest .
4141

4242
# Load into Kind
4343
kind load docker-image <image> --name rossoctl

.github/codeql/codeql-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: rossocortex CodeQL config
1+
name: cortex CodeQL config
22

33
queries:
44
- uses: security-extended

CLAUDE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# CLAUDE.md - Rossoctl Extensions
22

3-
This file provides context for Claude (AI assistant) when working with the `rossocortex` monorepo.
3+
This file provides context for Claude (AI assistant) when working with the `cortex` monorepo.
44

55
## AI Assistant Instructions
66

77
- **Use `Assisted-By` for attribution** — never add `Co-Authored-By`, `Generated with Claude Code`, or similar trailers. See [Commit Attribution Policy](#commit-attribution-policy) below.
88

99
## Repository Overview
1010

11-
**rossocortex** contains Kubernetes security extensions for the [Rossoctl](https://github.com/rossoctl/rossoctl) ecosystem. It provides **zero-trust authentication** for Kubernetes workloads through transparent token exchange and dynamic Keycloak client registration using SPIFFE/SPIRE identities.
11+
**cortex** contains Kubernetes security extensions for the [Rossoctl](https://github.com/rossoctl/rossoctl) ecosystem. It provides **zero-trust authentication** for Kubernetes workloads through transparent token exchange and dynamic Keycloak client registration using SPIFFE/SPIRE identities.
1212

1313
The sidecar injection webhook lives in a separate repo: [rossoctl/operator](https://github.com/rossoctl/operator).
1414

15-
**GitHub:** `github.com/rossoctl/rossocortex`
16-
**Container registry:** `ghcr.io/rossoctl/rossocortex/<image-name>`
15+
**GitHub:** `github.com/rossoctl/cortex`
16+
**Container registry:** `ghcr.io/rossoctl/cortex/<image-name>`
1717
**License:** Apache 2.0
1818

1919
## Top-Level Directory Structure
2020

2121
```
22-
rossocortex/
22+
cortex/
2323
├── authbridge/ # Authentication bridge components
2424
│ ├── authlib/ # Shared auth building blocks (Go module)
2525
│ │ ├── validation/ # JWKS-backed JWT verifier
@@ -163,7 +163,7 @@ lowercase prefixes. Use `Fix:` / `Feat:` / `Docs:` in PR titles.
163163

164164
## Container Images
165165

166-
All images are pushed to `ghcr.io/rossoctl/rossocortex/` from
166+
All images are pushed to `ghcr.io/rossoctl/cortex/` from
167167
`.github/workflows/build.yaml`:
168168

169169
| Image | Source | Description |
@@ -271,7 +271,7 @@ cd authbridge && podman build -f cmd/authbridge-proxy/Dockerfile \
271271

272272
1. Add entry to `.github/workflows/build.yaml` matrix (`image_config` array)
273273
2. Provide `name`, `context`, and `dockerfile` fields
274-
3. Image will be pushed to `ghcr.io/rossoctl/rossocortex/<name>`
274+
3. Image will be pushed to `ghcr.io/rossoctl/cortex/<name>`
275275

276276
## Code Style and Conventions
277277

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Comment `/claim` on an issue to have it automatically assigned to you. Issues la
2525

2626
```bash
2727
# Clone the repository
28-
git clone https://github.com/rossoctl/rossocortex.git
29-
cd rossocortex
28+
git clone https://github.com/rossoctl/cortex.git
29+
cd cortex
3030

3131
# Install pre-commit hooks
3232
pre-commit install

LOCAL_TESTING_GUIDE.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Local Testing Guide for JWT-SVID Authentication
22

3-
> **⚠️ This guide is stale after rossocortex#411.** It was written
3+
> **⚠️ This guide is stale after cortex#411.** It was written
44
> for the pre-#411 multi-sidecar shape (separate `client-registration`,
55
> `envoy-with-processor`, and standalone `spiffe-helper` containers) and
66
> several of its YAML examples reference images that no longer publish.
@@ -26,7 +26,7 @@ This guide walks you through testing JWT-SVID authentication using local images
2626
**CRITICAL**: You MUST run the `./local-build-and-test.sh` script to build all required images. Do NOT build images individually with `docker build` or `podman build` commands, as this will miss critical images like `spiffe-idp-setup:local` (located in the rossoctl repo).
2727

2828
The script:
29-
- Builds images from **both** rossoctl and rossocortex repositories
29+
- Builds images from **both** rossoctl and cortex repositories
3030
- Automatically detects Docker vs Podman
3131
- Loads all images into your Kind cluster
3232
- Ensures consistent image tags and pull policies
@@ -35,7 +35,7 @@ The script:
3535

3636
- Docker or Podman running
3737
- Kind CLI installed
38-
- Both `rossoctl` and `rossocortex` repositories cloned
38+
- Both `rossoctl` and `cortex` repositories cloned
3939

4040
## Step 0: Create Kind Cluster
4141

@@ -68,7 +68,7 @@ kubectl cluster-info --context kind-rossoctl-dev
6868
The `local-build-and-test.sh` script is the **only supported way** to build local images for testing. It builds images from both repositories and ensures everything is loaded correctly.
6969

7070
```bash
71-
cd rossocortex
71+
cd cortex
7272

7373
# Make the script executable (first time only)
7474
chmod +x local-build-and-test.sh
@@ -87,10 +87,10 @@ export KIND_EXPERIMENTAL_PROVIDER=podman # Only needed for Podman
8787
**From rossoctl repo** (critical - often missed!):
8888
- `ghcr.io/rossoctl/rossoctl/spiffe-idp-setup:local` - Configures SPIFFE Identity Provider in Keycloak
8989

90-
**From rossocortex repo**:
91-
- `ghcr.io/rossoctl/rossocortex/client-registration:local` - Registers agents as Keycloak clients
92-
- `ghcr.io/rossoctl/rossocortex/envoy-with-processor:local` - Envoy proxy with token exchange
93-
- `ghcr.io/rossoctl/rossocortex/proxy-init:local` - iptables initialization
90+
**From cortex repo**:
91+
- `ghcr.io/rossoctl/cortex/client-registration:local` - Registers agents as Keycloak clients
92+
- `ghcr.io/rossoctl/cortex/envoy-with-processor:local` - Envoy proxy with token exchange
93+
- `ghcr.io/rossoctl/cortex/proxy-init:local` - iptables initialization
9494

9595
### Common Mistakes to Avoid:
9696

@@ -105,7 +105,7 @@ export KIND_EXPERIMENTAL_PROVIDER=podman # Only needed for Podman
105105

106106
## Step 2: Install Rossoctl with Ansible
107107

108-
**IMPORTANT:** For federated-JWT testing with local images, use the unified `federated-jwt-values.yaml` overlay file from rossocortex.
108+
**IMPORTANT:** For federated-JWT testing with local images, use the unified `federated-jwt-values.yaml` overlay file from cortex.
109109

110110
The ansible installer will detect the existing `rossoctl-dev` cluster and install into it:
111111

@@ -116,7 +116,7 @@ cd rossoctl
116116
# Install with dev base values + TWO overlays (deps local images + extensions federated-jwt)
117117
# --env dev → Loads dev_values.yaml (base Kind development config)
118118
# --env-file deployments/envs/... → Local images for rossoctl-deps (SPIRE, Keycloak, etc.)
119-
# --env-file ../rossocortex/... → Federated-jwt + local images for rossocortex
119+
# --env-file ../cortex/... → Federated-jwt + local images for cortex
120120
deployments/ansible/run-install.sh --env dev \
121121
--env-file deployments/envs/dev_values_local_images.yaml \
122122
--env-file deployments/envs/dev_values_federated-jwt.yaml
@@ -158,7 +158,7 @@ This installation will:
158158
## Step 3: Verify SPIRE and Keycloak
159159

160160
```bash
161-
cd rossocortex
161+
cd cortex
162162

163163
chmod +x verify-spire-keycloak.sh
164164
./verify-spire-keycloak.sh
@@ -246,7 +246,7 @@ spec:
246246
- name: certs
247247
mountPath: /opt
248248
- name: client-registration
249-
image: ghcr.io/rossoctl/rossocortex/client-registration:local
249+
image: ghcr.io/rossoctl/cortex/client-registration:local
250250
imagePullPolicy: Never
251251
command:
252252
- /bin/sh

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Root Makefile for rossocortex monorepo
1+
# Root Makefile for cortex monorepo
22
# Orchestrates linting and formatting across all sub-projects
33

44
.PHONY: lint fmt pre-commit build-proxy-init help

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ See the [AuthBridge README](./authbridge/README.md) for architecture details and
2020

2121
## Container Images
2222

23-
All images are published to `ghcr.io/rossoctl/rossocortex/`. After
24-
rossocortex#411 the unified binary was split into three
23+
All images are published to `ghcr.io/rossoctl/cortex/`. After
24+
cortex#411 the unified binary was split into three
2525
mode-specific combined images, and the per-component sidecars
2626
(`client-registration`, standalone `spiffe-helper`) were retired:
2727

aiac/docs/specs/demo/github-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RFC-8693 token exchange, and the `github-tool` MitM swaps the exchanged token fo
4242
- Existing (issue-only) agent card: [`../../analysis/github-agent-card.json`](../../analysis/github-agent-card.json)
4343
- `github-tool` MCP tool catalog (44 tools): [`../../analysis/github-mcp-tools-summary.json`](../../analysis/github-mcp-tools-summary.json)
4444
- Reference agent: `agent-examples/a2a/git_issue_agent/`
45-
- Reference deployment: `rossocortex/authbridge/demos/github-issue/k8s/`
45+
- Reference deployment: `cortex/authbridge/demos/github-issue/k8s/`
4646
- **Sibling tool spec (UC-1 onboarding fixture):** [`github-tool.md`](github-tool.md) — a simplified
4747
4-tool stub (`source-read`, `source-write`, `issues-read`, `issues-write`) deployed as Service
4848
`github-tool`. **This is not the tool this agent connects to.** The agent connects to the production

aiac/docs/specs/demo/github-tool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Phase 1 only discovers and evaluates them.
6868
- Scenario fixture (`TOOL_SCOPES`): [`../../../test/integration/scenario.py`](../../../test/integration/scenario.py)
6969
- Scenario spec: [`../integration-test/policy-pipeline.md`](../integration-test/policy-pipeline.md)
7070
- Sibling agent spec: [`github-agent.md`](github-agent.md)
71-
- Reference deployment: `rossocortex/authbridge/demos/github-issue/k8s/`
71+
- Reference deployment: `cortex/authbridge/demos/github-issue/k8s/`
7272

7373
---
7474

authbridge/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The shared auth library at [`authlib/`](./authlib/) contains the building blocks
2626

2727
## Architecture (Operator-Injected)
2828

29-
The following describes the operator-injected sidecar deployment. After rossocortex#411 each mode is served by its own combined image (one container per pod, with `spiffe-helper` bundled inside and gated by `SPIRE_ENABLED`). The legacy `authbridge-unified`, `authbridge-light`, `envoy-with-processor`, and standalone `client-registration` / `spiffe-helper` sidecars are gone.
29+
The following describes the operator-injected sidecar deployment. After cortex#411 each mode is served by its own combined image (one container per pod, with `spiffe-helper` bundled inside and gated by `SPIRE_ENABLED`). The legacy `authbridge-unified`, `authbridge-light`, `envoy-with-processor`, and standalone `client-registration` / `spiffe-helper` sidecars are gone.
3030

3131
### What AuthBridge Does
3232

@@ -149,7 +149,7 @@ flowchart TB
149149

150150
### Workload Pod
151151

152-
After rossocortex#411 a workload pod has the application
152+
After cortex#411 a workload pod has the application
153153
container plus a single combined AuthBridge sidecar. In
154154
envoy-sidecar mode it also has a one-shot `proxy-init` init
155155
container; in proxy-sidecar mode (the cluster default) it does
@@ -432,7 +432,7 @@ To make a plugin excludable:
432432
433433
package main
434434
435-
import _ "github.com/rossoctl/rossocortex/authbridge/authlib/plugins/<name>"
435+
import _ "github.com/rossoctl/cortex/authbridge/authlib/plugins/<name>"
436436
```
437437

438438
2. Remove the corresponding `_ "...plugins/<name>"` import from that binary's `main.go`.

0 commit comments

Comments
 (0)