Skip to main content

best-practices

Applies to:
Office 365 Customer KeyAzure Key VaultDuoKey MPCSecurity Operations

Security Best Practices​

Key Management Security​

1. Implement Least Privilege Access​

Access Control Best Practices
  • Grant only minimum required permissions
  • Use separate service principals for different operations
  • Regularly audit access permissions
  • Implement just-in-time (JIT) access for administrative tasks

2. Enable Multi-Factor Authentication (MFA)​

MFA Requirement

Require MFA for all accounts with Key Vault access:

  • Azure administrators
  • Key Vault contributors
  • Security operations team
  • Compliance auditors

3. Secure Key Backups​

Backup Storage

Store backups in encrypted format, use separate encryption keys, maintain in multiple geographic locations, and store offline backups in secure physical locations.

Access Control

Limit backup access to authorized personnel, implement multi-person authorization, log all backup and restoration operations, and regularly test restoration procedures.

Monitoring and Alerting​

Comprehensive Logging

Enable all diagnostic categories for Azure Key Vault including AuditEvent, AllMetrics, and AllLogs. Configure critical alerts for key access failures and unusual access patterns.

Operational Best Practices​

Key Rotation​

Establish Rotation Schedule​

EnvironmentFrequencyTrigger
Production keysAnnuallyScheduled rotation policy
High-security environmentsQuarterlyEnhanced security requirements
After security incidentsImmediatelyIncident response
Upon personnel changesWithin 30 daysEmployee offboarding

Rotation Procedure Checklist​

Prerequisites

  • Notify stakeholders of planned rotation
  • Generate new keys using DuoKey MPC
  • Test new keys in non-production environment
  • Schedule rotation during low-usage period
  • Create DEP with new keys
  • Monitor re-encryption progress
  • Verify encryption completed successfully
  • Archive old keys (do not delete)
  • Update documentation
  • Conduct post-rotation review

Change Management​

Change Log Requirements

Maintain a change log for DEP creations and modifications, key rotations, access policy changes, configuration updates, and incident responses.

Approval Required

Require approval for new DEP creation, key rotation, access policy modifications, and Key Vault configuration changes.

Compliance Best Practices​

Audit and Reporting​

FrequencyActivities
DailyReview key access logs, check for failed operations, monitor encryption status
WeeklyGenerate key usage reports, review access patterns, validate backup integrity
MonthlyComprehensive compliance report, review and update policies, conduct access review
QuarterlyInternal audit of procedures, test disaster recovery, update documentation

Data Sovereignty​

Data Sovereignty Best Practices
  • Store keys in regions that match data residency requirements
  • Use multi-geo Office 365 with region-specific DEPs
  • Document key storage locations for compliance

High Availability and Disaster Recovery​

High Availability Design​

Redundant Vaults

Maintain two Key Vaults in different Azure regions.

Synchronization

Synchronize keys across vaults.

Automatic Failover

Configure automatic failover where possible.

Disaster Recovery​

MetricTargetTest Frequency
RTO (Recovery Time Objective)4 hoursQuarterly
RPO (Recovery Point Objective)1 hourQuarterly

DR Testing Checklist​

Prerequisites

  • Test key restoration from backup
  • Verify failover to secondary Key Vault
  • Practice DEP recreation
  • Test emergency access procedures
  • Validate monitoring and alerting
  • Document lessons learned
  • Update DR procedures

Performance Optimization​

Scheduling Tip

Assign DEPs during off-peak hours. Schedule bulk assignments for evenings or weekends and avoid peak business hours. Monitor system performance during assignments.

Latest API Versions

Use latest API versions for improved performance and features.

Retry Logic

Implement retry logic with exponential backoff for resilience.

Caching

Cache key metadata when possible to reduce API calls.

Load Distribution

Distribute load across Key Vaults for optimal throughput.

DuoKey MPC Best Practices​

MPC Configuration​

EnvironmentThresholdPercentage
Production3-of-560%
High Security4-of-757%
Standard2-of-367%
MPC Node Distribution

Distribute MPC nodes across different cloud regions, data centers, physical locations, and administrative domains.

Node Maintenance

Regularly update MPC node software, monitor node health and availability, test node failover procedures, and maintain spare nodes.

Key Share Management

Store shares in separate secure locations, implement multi-person control, regularly verify share integrity, and test reconstruction procedures.

Cost Optimization​

Licensing Considerations​

ComponentRequirement
Office 365E5 required for Customer Key
AzureSubscription costs for Key Vaults
DuoKeyLicensing based on usage
GrowthPlan for growth in user count
Cost Optimization Tips
  • Remove unused keys after retention period
  • Consolidate Key Vaults where appropriate
  • Use appropriate SKU (Premium for HSM-backed keys)
  • Monitor transaction rates to avoid unnecessary operations

Training and Awareness​

Staff Training​

Prerequisites

  • Customer Key concepts
  • Key management procedures
  • Security best practices
  • Incident response
  • Compliance requirements
  • Tool usage (PowerShell, Azure Portal, DuoKey)

Training Schedule​

Training TypeFrequency
Initial trainingBefore implementation
Refresher trainingQuarterly
Emergency proceduresSemi-annually
New featuresAs released
Compliance updatesAs needed

Compliance Frameworks​

  • Maintain data processing records
  • Implement data protection by design
  • Enable data portability
  • Support right to erasure
  • Document cross-border transfers