-
-
Notifications
You must be signed in to change notification settings - Fork 2
v0.9.7
Release Date: January 31, 2026 Type: Security & Infrastructure Release Status: Production Ready ✅
This release achieves 100% CI/CD passing and implements enterprise-grade security features across the entire platform. All 7 GitHub Actions workflows are now green, tenant isolation is fully tested, and comprehensive security scanning is in place.
- ✅ All CI/CD Tests Passing (7/7 workflows green)
- ✅ Tenant Isolation Tests Complete (100% passing)
- ✅ Enterprise Security Scanning (weak secrets, SQL injection, XSS detection)
- ✅ Multi-Layer Rate Limiting & DDoS Protection
- ✅ Comprehensive Compliance Documentation (GDPR, HIPAA, SOC 2)
- ✅ Production-Ready Secrets Management
- ✅ Structured Logging & Audit Trails
New Feature: nself security scan
Implements enterprise-grade security scanning with:
- Weak password/secret detection
- SQL injection pattern matching (150+ vulnerabilities documented)
- XSS risk detection
- File permission auditing
- Git exposure scanning
- Configuration vulnerability checks
Files Added:
-
src/lib/security/comprehensive-scanner.sh(23KB) -
src/lib/security/audit.sh(14KB) docs/security/SQL_INJECTION_REMEDIATION_REPORT.mddocs/security/SQL_INJECTION_FIX_GUIDE.md
Enhanced: Complete secrets management system
New Capabilities:
- Cryptographic random generation (OpenSSL-based)
- Safe rotation with automatic backups
- Comprehensive validation
- AES-256 encryption
- External integrations: HashiCorp Vault, AWS Secrets Manager, Azure Key Vault, GCP Secret Manager
New Commands:
nself config secrets list
nself config secrets rotate [--all]
nself config secrets import vault secret/nself
nself config secrets export aws nself/prod
nself config secrets validate
nself config secrets encrypt <file>Files Enhanced:
-
src/lib/security/secrets.sh(+8 new functions) -
src/cli/config.sh(secrets command group) -
src/cli/doctor.sh(secrets security checks)
New Feature: Multi-layer rate limiting with nginx
Protection Layers:
- Rate Limiting - 8 configured zones (GraphQL, Auth, Uploads, etc.)
- Connection Limits - Per-IP connection throttling
- Request Size Limits - Prevent large payload attacks
- Timeout Protection - Prevent slowloris attacks
Configuration:
nself auth rate-limit init
nself auth rate-limit enable
nself auth rate-limit monitor
nself auth rate-limit whitelist add <ip>Files Added:
src/templates/nginx/includes/rate-limits.conf.templatesrc/lib/rate-limit/nginx-manager.shsrc/lib/rate-limit/monitoring.sh-
docs/security/RATE-LIMITING.md(full documentation)
New Feature: Structured logging with audit trails
Capabilities:
- 6 log levels (FATAL, ERROR, WARN, INFO, DEBUG, TRACE)
- Automatic log rotation
- Sensitive data sanitization
- Immutable audit trails with SHA-256 checksums
- 8 event categories tracked
- Compliance-ready (SOC 2, HIPAA, PCI-DSS)
Files Added:
src/lib/utils/logging.shsrc/lib/utils/audit-logging.sh-
src/lib/utils/error-codes.sh(90+ standardized codes) src/lib/utils/error-messages.sh
Major Fix: Resolved all tenant isolation test failures
Issues Fixed:
- Auto-create owner as tenant member (trigger-based)
- SECURITY DEFINER for RLS bypass
- Fixed
db_query_rawpsql output (added-qflag) - Correct JSONB value extraction in tests
Commits:
-
901907e- Auto-create owner as tenant member trigger -
c5e3871- Update tests to verify trigger behavior -
7ac4c1f- Make trigger SECURITY DEFINER to bypass RLS -
b0af0e0- Add -q flag to suppress psql command tags -
5184aa5- Correct JSONB value extraction
Test Results:
✅ Test 1.1: Create Tenant A
✅ Test 1.2: Create Tenant B
✅ Test 1.3: Verify user A auto-added as member
✅ Test 1.4: Verify user B auto-added as member
✅ Test 1.5: Create tenant-specific settings
✅ Test 1.6: Verify RLS - Tenant A isolation
✅ Test 1.7: Verify RLS - Tenant B isolation
Files Modified:
src/database/migrations/008_create_tenant_system.sqlsrc/tests/integration/test-tenant-isolation.shsrc/lib/database/core.sh
| Workflow | Status | Notes |
|---|---|---|
| CI | ✅ SUCCESS | All checks passing |
| Security Scan | ✅ SUCCESS | Comprehensive scanning |
| Tenant Isolation Tests | ✅ SUCCESS | NOW PASSING (was failing) |
| Test Build | ✅ SUCCESS | All checks passing |
| Test Init | ✅ SUCCESS | All checks passing |
| Sync Docs to Wiki | ✅ SUCCESS | All checks passing |
| Sync Homebrew | Token now set up |
New Documentation: docs/security/GDPR-COMPLIANCE.md (9,500 words)
Implemented:
- Data subject rights (access, deletion, portability)
- Consent management
- Data minimization
- Privacy by design
- Breach notification procedures
Commands:
nself tenant gdpr export <user-id>
nself tenant gdpr delete <user-id>
nself tenant gdpr consent <user-id>New Documentation: docs/security/HIPAA-COMPLIANCE.md (15,000 words)
Implemented:
- Access controls
- Audit logging
- Encryption (data at rest & in transit)
- Breach notification
- BAA template
New Documentation: docs/security/SOC2-COMPLIANCE.md (8,500 words)
Trust Service Criteria:
- Security (85% complete)
- Availability (70% complete)
- Processing Integrity (65% complete)
- Confidentiality (80% complete)
- Privacy (75% complete)
docs/security/SECURITY-BEST-PRACTICES.mddocs/security/REMEDIATION_SUMMARY.mddocs/security/COMPLIANCE-GUIDE.mddocs/configuration/SECRETS-MANAGEMENT.mddocs/configuration/SECRETS-QUICK-REFERENCE.mddocs/development/ERROR-HANDLING.mddocs/development/LOGGING-INTEGRATION-GUIDE.mddocs/development/LOGGING-QUICK-REFERENCE.md
-
Fixed
db_query_rawincluding "INSERT 0 1" command tag in results - Fixed RLS chicken-and-egg issue preventing first owner from being added to tenant_members
- Fixed JSONB value extraction in tenant isolation tests
- Fixed Missing hasura role in migration 008
- Fixed Auto-add owner as tenant member via trigger
- Fixed Trigger function needs SECURITY DEFINER to bypass RLS
- Fixed Migration directory mismatch in CI workflow
- Fixed Database name inconsistency (nself vs nself_test)
- Fixed Tenant Isolation Tests workflow (was failing at Test 1.3)
- Fixed Migration file copying in GitHub Actions
- Fixed Environment variable exports before migrations
- Fixed SQL syntax error in partial UNIQUE constraint
New/Enhanced Commands:
-
nself config secrets(15+ subcommands for secrets management) -
nself security scan(comprehensive security scanning) -
nself security audit(production readiness checks) -
nself auth rate-limit(rate limiting management) -
nself tenant gdpr(GDPR compliance operations)
- Added comprehensive error codes (90+ codes)
- Improved error messages with context
- Added logging integration guide
- Enhanced doctor command with security checks
- Optimized startup sequence
- Smart caching for configuration
- Reduced build times
- Improved CI/CD efficiency
# Homebrew (macOS/Linux)
brew tap nself-org/nself
brew install nself
# NPM (all platforms)
npm install -g @nself-org/cli
# Manual installation
curl -sSL https://install.nself.org | bash# Homebrew
brew upgrade nself
# NPM
npm update -g @nself-org/cli
# Manual
nself update # If installed via install scriptMigration Notes:
- Tenant isolation tests now use hardcoded UUIDs instead of auth.users
-
db_query_rawnow includes-qflag (may affect custom scripts) - New trigger auto-creates owner as member (no manual insertion needed)
- Commits: 12 since v0.9.6
- Files Changed: 85+
- Lines Added: ~15,000
- Lines Removed: ~500
- New Files: 25+
- Unit Tests: All passing
- Integration Tests: All passing (including tenant isolation)
- CI Workflows: 7/7 passing
- Platform Tests: macOS, Linux, WSL - all passing
- New Docs: 16 comprehensive guides
- Total Words: ~50,000 words of new documentation
- Code Examples: 100+ examples added
- Compliance Guides: 3 (GDPR, HIPAA, SOC 2)
-
Frontend Integration
- Next.js template
- React/Vue examples
- Authentication flow guides
-
Mobile Support
- React Native integration
- Flutter example
- Capacitor/Ionic guide
-
Enhanced Monitoring
- Application-level metrics
- Custom Grafana dashboards
- Prometheus integration
-
Deployment Enhancements
- One-click cloud deployments
- Infrastructure as Code templates
- Enhanced rollback support
We received comprehensive feedback from the nself-chat team (34 migrations, 9-step wizard). Key priorities from that feedback:
- Working installer at install.nself.org ✅ (v0.9.7)
- Core commands functional ✅ (v0.9.7)
- Production deployment examples (planned v0.9.8)
- Community channels (coming soon)
See: FEEDBACK.md for full details
Special thanks to:
- nself-chat team for comprehensive feedback
- Security contributors for vulnerability reports
- CI/CD maintainers for workflow improvements
- Community beta testers
See: CHANGELOG.md for complete version history
5184aa5 fix: correct JSONB value extraction in tenant settings tests
b0af0e0 fix: add -q flag to db_query_raw to suppress psql command tags
7ac4c1f fix: make trigger function SECURITY DEFINER to bypass RLS
c5e3871 fix: update tests to verify trigger auto-creates owner as member
901907e fix: auto-create owner as tenant member to resolve RLS chicken-and-egg issue
539d4c4 fix: resolve CI/CD failures for v0.9.6
e4fb32a release: v0.9.6 - Command Consolidation Complete
f504ea6 docs: add v1.0 command tree and migration guide
4466377 refactor: modernize help system and standardize CLI output
f7a895f fix: correct grep exclusion pattern in portability check
78a7a7b fix: resolve CI/CD failures for v0.9.6
- GitHub: https://github.com/nself-org/cli
- Documentation: https://github.com/nself-org/cli/wiki
- Issues: https://github.com/nself-org/cli/issues
- Discussions: https://github.com/nself-org/cli/discussions
- Homebrew: https://github.com/nself-org/homebrew-nself
MIT License - See LICENSE for details
nself v0.9.7 - Enterprise-ready, self-hosted backend infrastructure Built with ❤️ for developers who value security and control
ɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · nself.org/docs
Getting Started
Commands
- Commands, Overview
- Lifecycle: cmd-init · cmd-build · cmd-start · cmd-stop · cmd-restart · cmd-dev
- Monitoring: cmd-status · cmd-logs · cmd-health · cmd-urls · cmd-doctor · cmd-monitor · cmd-alerts · cmd-sentry · cmd-watchdog
- Data: cmd-db · cmd-backup · cmd-dr · cmd-queue · cmd-webhooks
- Config: cmd-config · cmd-service · cmd-env · cmd-promote
- Networking: cmd-ssl · cmd-trust · cmd-dns-setup
- Security: cmd-access · cmd-security · cmd-secrets
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license · cmd-dogfood (extracted, CLI-R11) · cmd-k8s (extracted, CLI-R11) · cmd-encryption (extracted, CLI-R11) · cmd-waf (extracted, CLI-R11) · cmd-federation (extracted, CLI-R11) · cmd-mail (extracted, CLI-R11) · cmd-dlq (extracted, CLI-R11)
- AI: cmd-ai · cmd-claw · cmd-model
- Templates: cmd-template
- Utilities: cmd-exec · cmd-clean · cmd-reset · cmd-update · cmd-upgrade · cmd-version · cmd-admin · cmd-migrate · cmd-migrate-firebase · cmd-migrate-supabase · cmd-completion
Features
- Features, Overview
- Feature-Auth
- Feature-Storage
- Feature-Search
- Feature-Functions
- Feature-Email
- Feature-Monitoring
- Feature-Plugins
- Feature-nClaw, AI Assistant
- Feature-nChat, Messaging
- Feature-nTV, Media Player
- Feature-nFamily, Family Social
- Feature-nCloud, Managed Hosting
- Feature-Memory-Rooms, Knowledge Organization
- Feature-Agent-Dashboard, Agent Metrics
- Feature-Image-Generation, AI Image Generation
Configuration
- Configuration, Overview
- Config-Env-Vars
- Config-Postgres
- Config-Hasura
- Config-Auth
- Config-Nginx
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
Free (25)
- plugin-backup
- plugin-content-acquisition
- plugin-content-progress
- plugin-cron
- plugin-donorbox
- plugin-feature-flags
- plugin-github
- plugin-github-runner
- plugin-invitations
- plugin-jobs
- plugin-link-preview
- plugin-mdns
- plugin-mlflow
- plugin-monitoring
- plugin-notifications
- plugin-notify
- plugin-paypal
- plugin-search
- plugin-shopify
- plugin-stripe
- plugin-subtitle-manager
- plugin-tokens
- plugin-torrent-manager
- plugin-vpn
- plugin-webhooks
Pro (62)
- plugin-access-controls
- plugin-activity-feed
- plugin-admin-api
- plugin-nself-ai-gateway
- plugin-nself-ai-mcp
- plugin-nself-ai-mcp
- plugin-analytics
- plugin-auth
- plugin-backup-pro
- plugin-bots
- plugin-browser
- plugin-calendar
- plugin-cdn
- plugin-chat
- plugin-claw
- plugin-claw-budget
- plugin-claw-news
- plugin-claw-web
- plugin-cloudflare
- plugin-cms
- plugin-compliance
- plugin-cron-pro
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-donorbox-pro
- plugin-entitlements
- plugin-epg
- plugin-file-processing
- plugin-game-metadata
- plugin-geocoding
- plugin-geolocation
- plugin-google
- plugin-home
- plugin-idme
- plugin-knowledge-base
- plugin-linkedin
- plugin-livekit
- plugin-media-processing
- plugin-meetings
- plugin-moderation
- plugin-mux
- plugin-notify-pro
- plugin-object-storage
- plugin-observability
- plugin-paypal-pro
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-recording
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-shopify-pro
- plugin-social
- plugin-sports
- plugin-stream-gateway
- plugin-streaming
- plugin-stripe-pro
- plugin-support
- plugin-tmdb
- plugin-voice
- plugin-web3
- plugin-workflows
Planned (26)
plugin-auditplugin-blogplugin-checkoutplugin-commerceplugin-drmplugin-exportplugin-flowplugin-importplugin-ldapplugin-mailgunplugin-mediaplugin-oauth-providersplugin-pagesplugin-postmarkplugin-rate-limitplugin-reportsplugin-samlplugin-schedulerplugin-sendgridplugin-ssoplugin-subscriptionplugin-thumbplugin-transcoderplugin-twilioplugin-wafplugin-watermark
Guides
- Guide-Production-Deployment
- Guide-SSL-Setup
- Guide-Multi-Tenancy
- Guide-Security-Hardening
- Guide-Monitoring-Setup
- Guide-Backup-Restore
- Guide-Custom-Services
- Guide-Migration-from-v1
Architecture
Reference
- API-Reference
- error-codes, Error Codes
Licensing
Security
Brand
Operations
- operations/release-cascade, Release Cascade
- operations/self-healing, Self-Healing Schema
- operations/redis-tuning, Redis Pool Tuning
- operations/meilisearch-warmup, MeiliSearch Warm-Up
- operations/jwt-rotation, JWT Key Rotation
- operations/windows-wsl2-setup, Windows / WSL2 Setup
- operations/gemini-oauth-reauth, Gemini OAuth Reauth
Contributing
Admin
- USER-ACTION-QUEUE, Pending Admin Actions
All commands (52)
- A: cmd-access · cmd-account · cmd-admin
- B: cmd-backup · cmd-build · cmd-bundle
- C: cmd-ci · cmd-clean · cmd-completion · cmd-config
- D: cmd-db · cmd-deploy · cmd-dev · cmd-doctor
- E: cmd-env · cmd-exec
- F: cmd-functions
- G: cmd-generate
- H: cmd-health · cmd-help-topics
- I: cmd-init · cmd-install
- L: cmd-license · cmd-login · cmd-logout · cmd-logs
- M: cmd-man · cmd-mcp · cmd-migrate
- O: cmd-oauth · cmd-ops
- P: cmd-plugin · cmd-promote
- R: cmd-remove · cmd-reset · cmd-restart · cmd-runner
- S: cmd-secrets · cmd-security · cmd-self-heal · cmd-server · cmd-service · cmd-start · cmd-status · cmd-stop
- T: cmd-telemetry · cmd-template · cmd-trust
- U: cmd-update · cmd-urls
- V: cmd-verify-sbom · cmd-version