Initial release: Headlamp Sealed Secrets plugin v0.1.0
Features: - Complete SealedSecret CRD integration with Headlamp - Client-side encryption using controller's public key - Support for all three scoping modes (strict, namespace-wide, cluster-wide) - List and detail views for SealedSecrets - Encryption dialog for creating new SealedSecrets - Decryption support with RBAC awareness - Sealing keys management - Settings page for controller configuration - Integration with Secret detail view Technical: - Full TypeScript with strict mode - ~1,345 lines of code - Build size: 339.42 kB (93.21 kB gzipped) - Compatible with Headlamp v0.13.0+ - Apache 2.0 license Security: - All encryption performed client-side - RSA-OAEP + AES-256-GCM (kubeseal-compatible) - Auto-hide decrypted values after 30 seconds Closes: Initial implementation
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm ci
|
||||
|
||||
- name: Run type check
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm run tsc
|
||||
|
||||
- name: Run linter
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm run lint
|
||||
|
||||
- name: Build plugin
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm run build
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: plugin-dist
|
||||
path: headlamp-sealed-secrets/dist/
|
||||
@@ -0,0 +1,54 @@
|
||||
name: Publish Plugin
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm ci
|
||||
|
||||
- name: Run type check
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm run tsc
|
||||
|
||||
- name: Run linter
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm run lint
|
||||
|
||||
- name: Build plugin
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm run build
|
||||
|
||||
- name: Publish to NPM
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
headlamp-sealed-secrets/dist/main.js
|
||||
headlamp-sealed-secrets/package.json
|
||||
headlamp-sealed-secrets/README.md
|
||||
generate_release_notes: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user