Skip to content

Commit 8a81d39

Browse files
authored
Merge pull request #790 from project-kessel/refs
[RHCLOUD-31900] Update refs from redhatinsights to project-kessel
2 parents d872e57 + 8258e8e commit 8a81d39

7 files changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/master.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131

3232
# generate ksil json file
3333
- name: Run Generate V1-Only Permissions Data for stage
34-
uses: RedHatInsights/rbac-config-actions/generate-v1-only-permissions@main
34+
uses: project-kessel/rbac-config-actions/generate-v1-only-permissions@main
3535
with:
3636
ksl: configs/stage/schemas
3737
rbac_permissions: configs/stage/permissions
3838
- name: Run Generate V1-Only Permissions Data for prod
39-
uses: RedHatInsights/rbac-config-actions/generate-v1-only-permissions@main
39+
uses: project-kessel/rbac-config-actions/generate-v1-only-permissions@main
4040
with:
4141
ksl: configs/prod/schemas
4242
rbac_permissions: configs/prod/permissions

.github/workflows/pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@ jobs:
2222
print-valid-files: true
2323
strict: false
2424
- name: Validate Permissions' Dependencies
25-
uses: RedHatInsights/rbac-config-actions/validate-permission-dependencies@main
25+
uses: project-kessel/rbac-config-actions/validate-permission-dependencies@main
2626
with:
2727
permissions_path_pattern: 'configs/*/permissions/*.json'
2828

2929
# Ensure that a proper valid schema is generated
3030

3131
# generate ksil json file
3232
- name: Run Generate V1-Only Permissions Data for stage
33-
uses: RedHatInsights/rbac-config-actions/generate-v1-only-permissions@main
33+
uses: project-kessel/rbac-config-actions/generate-v1-only-permissions@main
3434
with:
3535
ksl: configs/stage/schemas
3636
rbac_permissions: configs/stage/permissions
3737
- name: Run Generate V1-Only Permissions Data for prod
38-
uses: RedHatInsights/rbac-config-actions/generate-v1-only-permissions@main
38+
uses: project-kessel/rbac-config-actions/generate-v1-only-permissions@main
3939
with:
4040
ksl: configs/prod/schemas
4141
rbac_permissions: configs/prod/permissions
4242

4343
- name: Generate & validate schema
44-
uses: RedHatInsights/rbac-config-actions/validate-schema@main
44+
uses: project-kessel/rbac-config-actions/validate-schema@main
4545
with:
4646
token: ${{ secrets.GITHUB_TOKEN }}
4747

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ This project follows the [Red Hat Code of Conduct](https://www.redhat.com/en/abo
1212

1313
- **Go 1.22+** ([download](https://golang.org/dl/))
1414
- **Git** for version control
15-
- **GitHub account** with access to RedHatInsights
15+
- **GitHub account** with access to project-kessel
1616

1717
### Local Setup
1818

1919
```sh
20-
git clone https://github.com/RedHatInsights/rbac-config.git
20+
git clone https://github.com/project-kessel/rbac-config.git
2121
cd rbac-config
2222
make init # Install ksl and generate-v1-only-permissions tools
2323
make check-go-tools # Verify installation
@@ -118,6 +118,6 @@ Detailed guidance is available in dedicated files:
118118

119119
- **Technical questions:** Open a GitHub issue
120120
- **RBAC service questions:** Consult the [RBAC Platform Docs](https://consoledot.pages.redhat.com/docs/dev/services/rbac.html)
121-
- **Service repository:** [insights-rbac](https://github.com/RedHatInsights/insights-rbac)
121+
- **Service repository:** [insights-rbac](https://github.com/project-kessel/insights-rbac)
122122

123123
Thank you for contributing!

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ init:
1111
@HASH=$$(git ls-remote https://github.com/project-kessel/ksl-schema-language.git HEAD | cut -f1) && \
1212
go install github.com/project-kessel/ksl-schema-language/cmd/ksl@$$HASH
1313

14-
@HASH=$$(git ls-remote https://github.com/RedHatInsights/rbac-config-actions.git HEAD | cut -f1) && \
15-
go install github.com/RedHatInsights/rbac-config-actions/generate-v1-only-permissions/cmd/generate-v1-only-permissions@$$HASH
14+
@HASH=$$(git ls-remote https://github.com/project-kessel/rbac-config-actions.git HEAD | cut -f1) && \
15+
go install github.com/project-kessel/rbac-config-actions/generate-v1-only-permissions/cmd/generate-v1-only-permissions@$$HASH
1616

1717
check-go-tools:
1818
@echo "Checking required Go tools..."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ There is no application code here -- only JSON configs, KSL schemas, and CI auto
66

77
| Resource | Link |
88
|----------|------|
9-
| RBAC Service | https://github.com/RedHatInsights/insights-rbac |
9+
| RBAC Service | https://github.com/project-kessel/insights-rbac |
1010
| RBAC Platform Docs | https://consoledot.pages.redhat.com/docs/dev/services/rbac.html |
1111

1212
## Deployment Schedule

docs/integration-guidelines.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This repository defines RBAC (Role-Based Access Control) permissions and roles f
2323
2. The **PR workflow** (`.github/workflows/pr.yml`) validates JSON schemas and SpiceDB schemas
2424
3. After merge to `master`, the **master workflow** (`.github/workflows/master.yml`) automatically:
2525
- Generates V1-only permissions data from KSL schemas
26-
- Converts configs into Kubernetes ConfigMap templates via `RedHatInsights/rbac-config-actions/convert-config`
26+
- Converts configs into Kubernetes ConfigMap templates via `project-kessel/rbac-config-actions/convert-config`
2727
- Validates generated SpiceDB schemas with `authzed/action-spicedb-validate`
2828
- Creates an automated PR on the `configmaps-schema` branch with the title `[GitHub] - Automated ConfigMap & Schema Generation`
2929
4. Once the ConfigMap PR is merged, a separate MR must be created in the **app-interface** GitLab repo to bump the `ref` in the `resourceTemplate` for the target namespace, which triggers actual deployment
@@ -124,27 +124,27 @@ Stage may include additional KSL files not yet in prod (e.g., `subscriptions.ksl
124124

125125
Runs on every PR to `master` with these sequential checks:
126126
1. **JSON Schema validation** via `walbo/validate-json` -- validates all `configs/*/permissions/*.json` against `schemas/permissions.schema` and all `configs/*/roles/*.json` against `schemas/roles.schema` (roles use `strict: false`)
127-
2. **Permission dependency validation** via `RedHatInsights/rbac-config-actions/validate-permission-dependencies` -- checks `requires` field integrity
128-
3. **V1-only permissions generation** via `RedHatInsights/rbac-config-actions/generate-v1-only-permissions` -- for both stage and prod
129-
4. **Schema generation and validation** via `RedHatInsights/rbac-config-actions/validate-schema`
127+
2. **Permission dependency validation** via `project-kessel/rbac-config-actions/validate-permission-dependencies` -- checks `requires` field integrity
128+
3. **V1-only permissions generation** via `project-kessel/rbac-config-actions/generate-v1-only-permissions` -- for both stage and prod
129+
4. **Schema generation and validation** via `project-kessel/rbac-config-actions/validate-schema`
130130
5. **SpiceDB schema validation** via `authzed/action-spicedb-validate` -- validates the generated `.zed` files for both environments
131131

132132
### Master Merge Pipeline (`.github/workflows/master.yml`)
133133

134134
Runs on push to `master`:
135135
1. Generates V1-only permissions for both environments
136-
2. Converts configs to ConfigMaps and generates schemas via `RedHatInsights/rbac-config-actions/convert-config` (pushes to `configmaps-schema` branch)
136+
2. Converts configs to ConfigMaps and generates schemas via `project-kessel/rbac-config-actions/convert-config` (pushes to `configmaps-schema` branch)
137137
3. Validates generated SpiceDB schemas
138138
4. Creates a PR from `configmaps-schema` to `master` using `gh pr create` if changes exist
139139

140140
### External Actions Used
141141

142142
| Action | Purpose |
143143
|--------|---------|
144-
| `RedHatInsights/rbac-config-actions/validate-permission-dependencies@main` | Validates `requires` field references |
145-
| `RedHatInsights/rbac-config-actions/generate-v1-only-permissions@main` | Generates V1 compatibility data from KSL |
146-
| `RedHatInsights/rbac-config-actions/validate-schema@main` | Generates and validates KSL schemas |
147-
| `RedHatInsights/rbac-config-actions/convert-config@main` | Converts JSON configs to K8s ConfigMaps |
144+
| `project-kessel/rbac-config-actions/validate-permission-dependencies@main` | Validates `requires` field references |
145+
| `project-kessel/rbac-config-actions/generate-v1-only-permissions@main` | Generates V1 compatibility data from KSL |
146+
| `project-kessel/rbac-config-actions/validate-schema@main` | Generates and validates KSL schemas |
147+
| `project-kessel/rbac-config-actions/convert-config@main` | Converts JSON configs to K8s ConfigMaps |
148148
| `authzed/action-spicedb-validate@v1` | Validates SpiceDB `.zed` schema files |
149149
| `walbo/validate-json@v1.1.0` | Validates JSON against JSON Schema |
150150

docs/testing-guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ All files matching `configs/*/roles/*.json` are validated against `schemas/roles
2727

2828
### 3. Permission Dependency Validation
2929

30-
Uses `RedHatInsights/rbac-config-actions/validate-permission-dependencies` against `configs/*/permissions/*.json`. This validates that any `requires` array entries reference verbs that actually exist for the same app/resource combination. For example, if `create` requires `["read"]`, then `read` must be defined in the same resource array.
30+
Uses `project-kessel/rbac-config-actions/validate-permission-dependencies` against `configs/*/permissions/*.json`. This validates that any `requires` array entries reference verbs that actually exist for the same app/resource combination. For example, if `create` requires `["read"]`, then `read` must be defined in the same resource array.
3131

3232
### 4. KSL-to-SpiceDB Schema Generation
3333

3434
The pipeline generates V1-only permissions data and then compiles KSL schemas for both environments:
3535

3636
- **V1 permissions generation**: Reads `configs/{stage,prod}/permissions/*.json` and `configs/{stage,prod}/schemas/*.lst` files to produce `configs/{stage,prod}/schemas/src/rbac_v1_permissions.json` (gitignored build artifact)
37-
- **Schema compilation**: Uses `RedHatInsights/rbac-config-actions/validate-schema` to compile `.ksl` source files plus the generated JSON into `configs/{stage,prod}/schemas/schema.zed`
37+
- **Schema compilation**: Uses `project-kessel/rbac-config-actions/validate-schema` to compile `.ksl` source files plus the generated JSON into `configs/{stage,prod}/schemas/schema.zed`
3838

3939
The `.lst` files (`migrated_apps.lst`, `hostsonly_apps.lst`) control which apps get V1-only permission entries in the generated schema.
4040

0 commit comments

Comments
 (0)