Skip to content

List the C Programming Concepts#14

Merged
nadimtuhin merged 9 commits intomainfrom
claude/list-the-c-011CUrKETzp7MJosHDrThiAU
Nov 6, 2025
Merged

List the C Programming Concepts#14
nadimtuhin merged 9 commits intomainfrom
claude/list-the-c-011CUrKETzp7MJosHDrThiAU

Conversation

@nadimtuhin
Copy link
Owner

No description provided.

nadimtuhin and others added 7 commits August 5, 2025 17:09
- Add comprehensive K8s secret parsing and analysis utilities
- Implement Base64SecretDecoder component with rich UI
- Support real-time YAML validation and base64 decoding
- Include security analysis for common token types (OpenAI, GitHub, AWS)
- Add type detection for URLs, certificates, JSON, YAML, etc.
- Provide interactive value revelation with privacy controls
- Include 100% test coverage for utility functions (35 tests)
- Component added as disabled by default (isEnabled: false)

Key features:
- Client-side processing for privacy
- Interactive table with key details and previews
- Security warnings for embedded credentials
- Copy-to-clipboard functionality
- Comprehensive error handling and validation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Change from default import to named import
- Fix onChange prop to match expected interface signature
- Resolves Rollup build error in production deployment

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Change isEnabled from false to true
- Makes the Kubernetes Base64 Secret Decoder available to users
- Tool is production-ready with comprehensive testing and validation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…view

- Add Math.max(0, ...) guards to prevent negative repeat counts
- Handle edge cases for very short strings (length < 3)
- Add comprehensive tests for edge cases including single/double char strings
- Resolves RangeError: Invalid count value runtime error

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Redesigned component with right sidebar interface for editing
- Added real-time YAML generation that updates as users edit
- Implemented Add/Edit/Delete operations for secret keys
- Added split view showing Input YAML and Generated YAML side by side
- Enhanced UI with slide-in sidebar for key details and editing forms
- Fixed unused import warning in Base64SecretDecoder component
- All security analysis and privacy features maintained

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…ubernetes Secret Decoder

Security improvements:
- Replace simple string-based YAML parser with js-yaml library for robust parsing
- Add DOMPurify for XSS protection on decoded secret values
- Enhance token detection patterns (25+ token types including OpenAI, GitHub, AWS, Stripe, Slack, etc.)
- Add comprehensive security warnings for detected sensitive tokens

Performance improvements:
- Add memoization for secret analysis to prevent recalculation on every render
- Add size limits for secrets (1MB max) to prevent memory issues
- Add key count limit warnings (100 keys max)

Code organization:
- Extract magic numbers to named constants (CONSTANTS object)
- Create ErrorBoundary component for better error handling
- Sanitize all decoded values before display to prevent XSS
- Update component to use sanitized utility functions

Dependencies:
- Add dompurify@3.3.0 for XSS protection
- Add @types/dompurify@3.2.0 for TypeScript support

Tests:
- Update all tests to pass with new functionality
- Fix test mocks for TextAreaWithCopy component
- Update test expectations for improved token detection
- Add proper error handling tests

All tests pass (55/55)
@sherpa-sh
Copy link

sherpa-sh bot commented Nov 6, 2025

Latest status for build:
a9948dcb-83db-4dcd-96d2-8c5cc1ba3a36

Status Output Updated (UTC)
Building ⏳ View Logs ↗︎ 2025-11-06T08:45:10.221Z

Learn more: sherpa.sh docs ↗︎

@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
devutils Ready Ready Preview Comment Nov 6, 2025 9:41am

@claude
Copy link
Contributor

claude bot commented Nov 6, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@sherpa-sh
Copy link

sherpa-sh bot commented Nov 6, 2025

Latest status for build:
a9948dcb-83db-4dcd-96d2-8c5cc1ba3a36

Status Output Updated (UTC) Visit
Complete ✅ View Logs ↗︎ 2025-11-06T08:46:13.894Z Visit ↗︎

Learn more: sherpa.sh docs ↗︎

The reveal button (eye icon) was changing the icon state but not actually
showing the decoded value in the Preview column. Now when clicked:
- Eye icon changes to EyeOff (and vice versa)
- Preview column shows full decoded value when revealed
- Preview column shows masked value (e.g., 'use***') when hidden

Also added break-all CSS class to handle long values that could overflow.
@sherpa-sh
Copy link

sherpa-sh bot commented Nov 6, 2025

Latest status for build:
190275b9-a10d-42c4-93bd-101236b33640

Status Output Updated (UTC)
Building ⏳ View Logs ↗︎ 2025-11-06T09:34:03.059Z

Learn more: sherpa.sh docs ↗︎

@claude
Copy link
Contributor

claude bot commented Nov 6, 2025

Claude encountered an error —— View job


I'll analyze this and get back to you.

@sherpa-sh
Copy link

sherpa-sh bot commented Nov 6, 2025

Latest status for build:
190275b9-a10d-42c4-93bd-101236b33640

Status Output Updated (UTC) Visit
Complete ✅ View Logs ↗︎ 2025-11-06T09:34:46.672Z Visit ↗︎

Learn more: sherpa.sh docs ↗︎

Fixed two issues with the Edit button and sidebar:

1. Edit button now opens the sidebar
   - Previously clicking Edit button did nothing visible
   - Now properly opens sidebar with edit form when clicked
   - Sets selectedKey and sidebarOpen states correctly

2. Fixed sidebar title logic
   - Before: showed "Edit: keyname" even when just viewing details
   - After: shows correct title based on mode:
     * "Add New Key" when adding
     * "Edit: keyname" when editing
     * "Key Details" when viewing

All other action buttons verified working:
- Copy button: copies decoded value to clipboard
- Delete button: removes key and updates YAML
- Add Key button: opens sidebar with add form
- Reset button: clears all form data

All 18 tests passing
@sherpa-sh
Copy link

sherpa-sh bot commented Nov 6, 2025

Latest status for build:
1e556ec8-1b81-4179-b41b-ebfeb411af4c

Status Output Updated (UTC)
Building ⏳ View Logs ↗︎ 2025-11-06T09:41:24.911Z

Learn more: sherpa.sh docs ↗︎

@claude
Copy link
Contributor

claude bot commented Nov 6, 2025

Claude Code is working…

I'll analyze this and get back to you.

View job run

@sherpa-sh
Copy link

sherpa-sh bot commented Nov 6, 2025

Latest status for build:
1e556ec8-1b81-4179-b41b-ebfeb411af4c

Status Output Updated (UTC) Visit
Complete ✅ View Logs ↗︎ 2025-11-06T09:42:10.367Z Visit ↗︎

Learn more: sherpa.sh docs ↗︎

@nadimtuhin nadimtuhin merged commit 475682a into main Nov 6, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants