azure-keyvault-keys-ts
Manage Azure Key Vault Keys
Need to create, encrypt, sign, or rotate cryptographic keys in Azure? This skill provides ready-to-use code snippets for the Azure Key Vault Keys SDK to handle key management securely.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "azure-keyvault-keys-ts". Create an EC key named 'signing-key' using P-256 curve
Expected outcome:
```typescript
const ecKey = await keyClient.createEcKey('signing-key', {
curve: 'P-256',
enabled: true,
keyOps: ['sign', 'verify']
});
console.log('Created key:', ecKey.name);
```
Using "azure-keyvault-keys-ts". Encrypt the string 'secret-data' using RSA-OAEP
Expected outcome:
```typescript
const cryptoClient = new CryptographyClient(key, credential);
const encrypted = await cryptoClient.encrypt({
algorithm: 'RSA-OAEP',
plaintext: Buffer.from('secret-data')
});
console.log('Encrypted:', encrypted.result.toString('base64'));
```
Security Audit
SafeStatic analysis flagged 47 potential issues, but all are false positives. The file is legitimate Azure SDK documentation containing example code blocks (not actual executables), placeholder URLs (not real endpoints), and standard environment variable patterns (Azure best practice). No malicious behavior detected.
Critical Issues (1)
Medium Risk Issues (3)
Quality Score
What You Can Build
Cloud Application Developer
Implement encryption for data at rest in cloud applications using Azure Key Vault for secure key storage and management.
DevOps Engineer
Manage key rotation policies and automate cryptographic key lifecycle operations in Azure environments.
Security Engineer
Implement proper key management workflows including backup, restore, and access controls for compliance.
Try These Prompts
Create a new RSA key named 'my-encryption-key' in Azure Key Vault with 2048-bit size. Enable the key and set an expiration date.
Show me how to encrypt a user password using the Azure Key Vault cryptography client with RSA-OAEP algorithm.
Configure automatic rotation for 'my-rotation-key' so it rotates every 90 days. Show the rotation policy setup.
How do I backup a key from one Azure Key Vault and restore it to a different vault? Include the backup and restore operations.
Best Practices
- Use DefaultAzureCredential for automatic authentication across dev and production environments
- Enable soft-delete on vaults to protect against accidental key deletion
- Set expiration dates on keys and implement rotation policies for security compliance
Avoid
- Hardcoding connection strings or secrets in source code - use Azure Key Vault or environment variables
- Using keys without expiration dates - always set validity periods
- Disabling key operations logging - audit trail is critical for security compliance
Frequently Asked Questions
What authentication methods does this skill support?
Can this skill work with on-premises key vaults?
Is this skill compatible with browser applications?
How do I handle key rotation in production?
What key types are supported?
Can I restore a key to a different vault?
Developer Details
Author
sickn33License
MIT
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-keyvault-keys-tsRef
main
File structure
📄 SKILL.md