This one handles AWS KMS operations in Java applications when you need proper encryption key management instead of rolling your own crypto. It covers the envelope encryption pattern for large data (generate a data key, encrypt locally, store the encrypted key), direct encrypt/decrypt for small payloads under 4KB, and digital signatures with asymmetric keys. The code examples include verification checks after key operations, which is good because KMS calls can fail silently if permissions are misconfigured. Useful if you're building a Spring Boot app that needs to encrypt database fields, sign API tokens, or implement automatic key rotation without managing raw key material yourself.

skills.sh installs
3.8K
GitHub stars
369
last updated
Aug 21, 2026

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-kms --agent claude-code

Installs into .claude/skills of the current project.

Files

AWS SDK for Java 2.x - AWS KMS (Key Management Service)

Overview

Provides AWS KMS patterns using AWS SDK for Java 2.x. Covers key management, encryption/decryption, envelope encryption, digital signatures, and Spring Boot integration.

Instructions

  1. Set Up IAM Permissions - Grant kms:* actions with least privilege
  2. Create KMS Client - Instantiate KmsClient with region and credentials
  3. Create Keys - Use createKey() → Verify key state is ENABLED before proceeding
  4. Set Key Policies - Define key usage permissions → Test access before production
  5. Encrypt Data - Use encrypt() for data <4KB; Verify ciphertext is not empty
  6. Envelope Encryption - For larger data, use generateDataKey() → Verify data key generation succeeded
  7. Digital Signatures - Create signing keys → Verify signatureValid=true after sign/verify
  8. Key Rotation - Enable auto-rotation → Confirm rotation schedule is active

When to Use

Sponsors

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Security, Cloud & Infrastructure, Java & JVM
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 102

Recommended

More Security
1yaklang avataractive-directory-kerberos-attacksyaklang/hack-skillsKerberos attack playbook for Active Directory. Use when targeting AD authentication via AS-REP roasting, Kerberoasting, golden/silver/diamond tickets, delegatio3.8Kskills.sh installs
2dpearson2699 avataralarmkitdpearson2699/swift-ios-skillsImplement AlarmKit alarms and countdown timers for iOS and iPadOS with Lock Screen, Dynamic Island, StandBy, and paired Apple Watch system UI. Covers AlarmManag3.8Kskills.sh installs
3giuseppe-trisciuoglio avatarbetter-authgiuseppe-trisciuoglio/developer-kitProvides Better Auth integration patterns for NestJS backend and Next.js frontend with Drizzle ORM and PostgreSQL. Use when setting up Better Auth with NestJS b3.7Kskills.sh installs
4yaklang avatarntlm-relay-coercionyaklang/hack-skillsNTLM relay and authentication coercion playbook. Use when capturing and relaying NTLM authentication to escalate privileges via SMB, LDAP, HTTP, or MSSQL relay 3.7Kskills.sh installs
5forcedotcom avatargenerating-ui-bundle-featuresforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory and the user wants to add authentication or search to their app. Use this skill when adding3.7Kskills.sh installs
6forcedotcom avatardeploying-ui-bundleforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory or sfdx-project.json and the task involves deploying, pushing to an org, or post-deploy set3.6Kskills.sh installs