Skip to content

Latest commit

 

History

History
208 lines (154 loc) · 5.85 KB

File metadata and controls

208 lines (154 loc) · 5.85 KB

Key Management Documentation Index

Complete guide to HSM-backed key management for the Oracle service.

🚀 Getting Started

New to HSM key management? Start here:

  1. Quick Start Guide (5 minutes)

    • Environment variable reference
    • Quick setup for AWS KMS and GCP KMS
    • Verification steps
  2. Comprehensive Guide (30 minutes)

    • Detailed architecture overview
    • Step-by-step setup instructions
    • Configuration examples
    • Troubleshooting guide

📋 Planning & Migration

Ready to migrate to production?

  1. Migration Guide (1 hour)

    • Pre-migration checklist
    • Phase-by-phase migration steps
    • Rollback procedures
    • Post-migration monitoring
  2. Deployment Checklist (Reference)

    • Pre-deployment tasks
    • Deployment steps
    • Verification procedures
    • Success criteria

🔧 Technical Details

For developers and architects:

  1. Implementation Summary (15 minutes)
    • Architecture overview
    • Component structure
    • Code changes
    • Performance impact
    • Security improvements

📦 Examples & Templates

Ready-to-use configurations:

  1. IAM Policies

  2. Kubernetes Deployments

🎯 Quick Reference

Environment Variables

Variable Provider Required Description
KEY_PROVIDER All Yes env, aws-kms, or gcp-kms
ORACLE_PRIVATE_KEY env Yes Stellar secret key
AWS_REGION aws-kms Yes AWS region
AWS_KMS_KEY_ID aws-kms Yes KMS key ARN
GCP_PROJECT_ID gcp-kms Yes GCP project ID
GCP_KEY_RING_ID gcp-kms Yes KMS key ring ID
GCP_KEY_ID gcp-kms Yes KMS key ID

Setup Commands

AWS KMS:

npm install @aws-sdk/client-kms
export KEY_PROVIDER=aws-kms
export AWS_REGION=us-east-1
export AWS_KMS_KEY_ID=arn:aws:kms:...

Google Cloud KMS:

npm install @google-cloud/kms
export KEY_PROVIDER=gcp-kms
export GCP_PROJECT_ID=my-project
export GCP_KEY_RING_ID=oracle-keys
export GCP_KEY_ID=oracle-signing-key

Verification

Check logs for:

KeyService initialized with [provider-type] provider for address: G...

🔍 Troubleshooting

Common issues and solutions:

Issue Solution Reference
SDK not installed npm install @aws-sdk/client-kms Guide
Access denied Check IAM permissions Policies
High latency Check network/region Guide
Signing failures Verify key status Migration

📊 Comparison

Security

Aspect Env Provider HSM Provider
Key Storage Environment HSM
Key Exposure In memory Never
Audit Logging None Full
Key Rotation Manual Automated
Compliance

Performance

Provider Latency Throughput Cost
Env <1ms Unlimited $0
AWS KMS 10-50ms 1,200/s ~$3/1M
GCP KMS 10-50ms 60k/min ~$3/1M

🎓 Learning Path

For Operators

  1. Read Quick Start
  2. Review Migration Guide
  3. Use Deployment Checklist
  4. Bookmark Troubleshooting

For Developers

  1. Read Implementation Summary
  2. Review code in oracle/src/keys/
  3. Study Kubernetes Examples
  4. Run tests: npm test

For Architects

  1. Read Comprehensive Guide
  2. Review Implementation Summary
  3. Evaluate Performance Impact
  4. Plan Migration Strategy

🔗 External Resources

AWS KMS

Google Cloud KMS

Cryptography

📞 Support

Documentation Issues

  • Found a typo? Submit a PR
  • Need clarification? Open an issue
  • Have a question? Ask in team chat

Production Issues

✅ Checklist

Before going to production:

  • Read all documentation
  • Test in staging environment
  • Configure monitoring and alerts
  • Set up audit logging
  • Document rollback procedure
  • Train team on new system
  • Schedule deployment window
  • Notify stakeholders

🎉 Success!

Once deployed, you'll have:

✅ Enterprise-grade key management
✅ HSM-backed security
✅ Full audit trail
✅ Automated key rotation
✅ Compliance-ready infrastructure


Last Updated: 2026-04-23
Version: 1.0.0
Maintainer: DevOps Team