Integrate BACKBEAT SDK and resolve KACHING license validation
Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,7 @@ The main orchestrator that coordinates between all storage layers:
|
||||
|
||||
### 2. Encrypted Storage (`encrypted_storage.go`)
|
||||
Role-based encrypted storage with enterprise-grade security:
|
||||
- **Per-role encryption** using the existing BZZZ crypto system
|
||||
- **Per-role encryption** using the existing CHORUS crypto system
|
||||
- **Key rotation** with automatic re-encryption
|
||||
- **Access control validation** with audit logging
|
||||
- **Encryption metrics** tracking for performance monitoring
|
||||
@@ -184,16 +184,16 @@ type ContextStoreOptions struct {
|
||||
- **Timeout values**: Set appropriate timeouts for your network
|
||||
- **Background intervals**: Balance between performance and resource usage
|
||||
|
||||
## Integration with BZZZ Systems
|
||||
## Integration with CHORUS Systems
|
||||
|
||||
### DHT Integration
|
||||
The distributed storage layer integrates seamlessly with the existing BZZZ DHT system:
|
||||
The distributed storage layer integrates seamlessly with the existing CHORUS DHT system:
|
||||
- Uses existing node discovery and communication protocols
|
||||
- Leverages consistent hashing algorithms
|
||||
- Integrates with leader election for coordination
|
||||
|
||||
### Crypto Integration
|
||||
The encryption layer uses the existing BZZZ crypto system:
|
||||
The encryption layer uses the existing CHORUS crypto system:
|
||||
- Role-based key management
|
||||
- Shamir's Secret Sharing for key distribution
|
||||
- Age encryption for data protection
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/robfig/cron/v3"
|
||||
"chorus.services/bzzz/pkg/crypto"
|
||||
"chorus/pkg/crypto"
|
||||
)
|
||||
|
||||
// BackupManagerImpl implements the BackupManager interface
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/ucxl"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// BatchOperationsImpl provides efficient batch operations for context storage
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/crypto"
|
||||
"chorus.services/bzzz/pkg/dht"
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/crypto"
|
||||
"chorus/pkg/dht"
|
||||
"chorus/pkg/ucxl"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// ContextStoreImpl is the main implementation of the ContextStore interface
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/dht"
|
||||
"chorus.services/bzzz/pkg/types"
|
||||
"chorus/pkg/dht"
|
||||
"chorus/pkg/types"
|
||||
)
|
||||
|
||||
// DistributedStorageImpl implements the DistributedStorage interface
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
//
|
||||
// This package implements the storage layer for context data, providing both local
|
||||
// and distributed storage capabilities with encryption, caching, and efficient
|
||||
// retrieval mechanisms. It integrates with the BZZZ DHT for distributed context
|
||||
// retrieval mechanisms. It integrates with the CHORUS DHT for distributed context
|
||||
// sharing while maintaining role-based access control.
|
||||
//
|
||||
// Key Features:
|
||||
// - Local context storage with efficient indexing and retrieval
|
||||
// - Distributed context storage using BZZZ DHT infrastructure
|
||||
// - Distributed context storage using CHORUS DHT infrastructure
|
||||
// - Role-based encryption for secure context sharing
|
||||
// - Multi-level caching for performance optimization
|
||||
// - Backup and recovery capabilities for data durability
|
||||
@@ -55,7 +55,7 @@
|
||||
// Storage Architecture:
|
||||
// The storage system uses a layered approach with local caching, distributed
|
||||
// replication, and role-based encryption. Context data is stored locally for
|
||||
// fast access and replicated across the BZZZ cluster for availability and
|
||||
// fast access and replicated across the CHORUS cluster for availability and
|
||||
// collaboration. Encryption ensures that only authorized roles can access
|
||||
// sensitive context information.
|
||||
//
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/crypto"
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/crypto"
|
||||
"chorus/pkg/ucxl"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// EncryptedStorageImpl implements the EncryptedStorage interface
|
||||
|
||||
@@ -13,8 +13,8 @@ import (
|
||||
"github.com/blevesearch/bleve/v2/analysis/analyzer/standard"
|
||||
"github.com/blevesearch/bleve/v2/analysis/lang/en"
|
||||
"github.com/blevesearch/bleve/v2/mapping"
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/ucxl"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// IndexManagerImpl implements the IndexManager interface using Bleve
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
"chorus.services/bzzz/pkg/crypto"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/ucxl"
|
||||
"chorus/pkg/crypto"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// ContextStore provides the main interface for context storage and retrieval
|
||||
|
||||
@@ -410,7 +410,7 @@ func (ls *LocalStorageImpl) compress(data []byte) ([]byte, error) {
|
||||
// Create gzip writer with best compression
|
||||
writer := gzip.NewWriter(&buf)
|
||||
writer.Header.Name = "storage_data"
|
||||
writer.Header.Comment = "BZZZ SLURP local storage compressed data"
|
||||
writer.Header.Comment = "CHORUS SLURP local storage compressed data"
|
||||
|
||||
// Write data to gzip writer
|
||||
if _, err := writer.Write(data); err != nil {
|
||||
|
||||
@@ -3,9 +3,9 @@ package storage
|
||||
import (
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
"chorus.services/bzzz/pkg/crypto"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/ucxl"
|
||||
"chorus/pkg/crypto"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// DatabaseSchema defines the complete schema for encrypted context storage
|
||||
|
||||
@@ -3,9 +3,9 @@ package storage
|
||||
import (
|
||||
"time"
|
||||
|
||||
"chorus.services/bzzz/pkg/ucxl"
|
||||
"chorus.services/bzzz/pkg/crypto"
|
||||
slurpContext "chorus.services/bzzz/pkg/slurp/context"
|
||||
"chorus/pkg/ucxl"
|
||||
"chorus/pkg/crypto"
|
||||
slurpContext "chorus/pkg/slurp/context"
|
||||
)
|
||||
|
||||
// ListCriteria represents criteria for listing contexts
|
||||
|
||||
Reference in New Issue
Block a user