Skip to content

Commit 10cec64

Browse files
authored
Merge pull request #1 from redpanda-data/UX-457/sj/impersonation-role-sync-script
Ux 457/sj/impersonation role sync script
2 parents 68a08a2 + bafeccd commit 10cec64

26 files changed

+15893
-1
lines changed

.bunfig.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[install]
2+
# set default registry as a string
3+
registry = "https://registry.npmjs.org"
4+
5+
[install.lockfile]
6+
print = "yarn"
7+
8+
[install.scopes]
9+
# registry for @buf packages
10+
"@buf" = "https://buf.build/gen/npm/v1"

.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Redpanda Cloud API Token (required)
2+
# Get this bearer token from your Redpanda Cloud organization settings
3+
REDPANDA_CLOUD_API_TOKEN=your-cloud-api-bearer-token-here
4+
5+
# Optional: Custom Cloud API URL (defaults to production)
6+
# REDPANDA_CLOUD_API_URL=https://api.redpanda.com
7+
8+
# Optional: Redpanda Dataplane API Token (fallback authentication)
9+
# Only needed if Cloud API token doesn't work for dataplane operations
10+
# REDPANDA_DATAPLANE_TOKEN=your-dataplane-api-token
11+
12+
# Optional: Enable debug logging
13+
# DEBUG=1

.github/workflows/ci.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
biome:
11+
name: Biome
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v5
17+
18+
- name: Run Biome
19+
uses: biomejs/setup-biome@v2
20+
with:
21+
version: latest
22+
23+
- name: Run Biome check
24+
run: biome check .
25+
26+
test:
27+
name: Run Tests
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@v4
33+
34+
- name: Setup Bun
35+
uses: oven-sh/setup-bun@v2
36+
37+
- name: Install dependencies
38+
run: bun install
39+
40+
- name: Run tests
41+
run: bun test
42+
43+
build:
44+
name: Build Check
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- name: Checkout code
49+
uses: actions/checkout@v4
50+
51+
- name: Setup Bun
52+
uses: oven-sh/setup-bun@v2
53+
54+
- name: Install dependencies
55+
run: bun install
56+
57+
- name: Build project
58+
run: bun run build:js
59+
60+
- name: Check for uncommitted changes
61+
run: |
62+
if [ -n "$(git status --porcelain)" ]; then
63+
echo "Build generated uncommitted changes:"
64+
git status --porcelain
65+
git diff
66+
exit 1
67+
fi
68+

.gitignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Dependencies
2+
node_modules/
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Build outputs (keep dist/ for customer distribution)
8+
out/
9+
10+
# Runtime logs
11+
*.log
12+
logs/
13+
14+
# Environment variables
15+
.env
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
# IDE files
22+
.vscode/
23+
.idea/
24+
*.swp
25+
*.swo
26+
*~
27+
28+
# OS files
29+
.DS_Store
30+
.DS_Store?
31+
._*
32+
.Spotlight-V100
33+
.Trashes
34+
ehthumbs.db
35+
Thumbs.db
36+
37+
# Testing
38+
coverage/
39+
.nyc_output/
40+
.jest/
41+
42+
# Temporary files
43+
*.tmp
44+
*.temp
45+
46+
# Nix
47+
result
48+
result-*
49+
.direnv/
50+
51+
# Lock files (keep for reproducibility)
52+
# package-lock.json
53+
# bun.lockb

.npmrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Buf.build registry for generated protobuf packages
2+
@buf:registry=https://buf.build/gen/npm/v1/
3+
4+
# Default npm registry
5+
registry=https://registry.npmjs.org/
6+
7+
# Optional: Configure authentication for private registries if needed
8+
# //buf.build/gen/npm/v1/:_authToken=${BUF_TOKEN}
9+
10+
# Optional: Always use exact versions for generated packages
11+
save-exact=true
12+

0 commit comments

Comments
 (0)