Install this extension from the VS Code marketplace
Configure the certificate path using the command palette: "Set Kubeseal Certificate Path"
📖 Usage
Note: You must have access to your Kubernetes cluster before using the extension. Decryption will not work unless your kubectl is configured and you have the necessary permissions.
🔐 Encrypting Secrets
Create a Kubernetes secret YAML file
Right-click on the file in the explorer or editor
Select "Encrypt with Kubeseal"
The encrypted file will be saved with -sealed suffix
🔓 Decrypting Secrets
Right-click on a sealed secret YAML file
Select "Decrypt Secret"
The extension will retrieve the actual secret from your Kubernetes cluster using kubectl
The decrypted secret will be saved with -unsealed suffix
Note: This requires that:
The sealed secret has been deployed to your cluster
Your kubectl is configured to access the correct cluster
You have permissions to read secrets in the target namespace
🔧 Setting Certificate Path
Use Command Palette: Ctrl+Shift+P → "Set Kubeseal Certificate Path"
Or configure in VS Code settings: kubeseal.certPath
📝 Base64 Encoding/Decoding
The extension provides utilities for working with base64 encoded values in Kubernetes secrets:
Encode Base64 Values
Right-click on a Kubernetes secret YAML file
Select "Encode Base64 Values"
All plain text values in the data field will be base64 encoded
Decode Base64 Values
Right-click on a Kubernetes secret YAML file
Select "Decode Base64 Values"
All base64 encoded values in the data field will be decoded to plain text
⚙️ Configuration
The extension provides the following settings:
kubeseal.certPath: Path to the kubeseal certificate file
kubeseal.kubesealPath: Path to the kubeseal binary (default: "kubeseal")
🎮 Commands
kubeseal.encrypt: Encrypt with Kubeseal
kubeseal.decrypt: Decrypt Secret
kubeseal.setCertPath: Set Kubeseal Certificate Path
kubeseal.encodeBase64: Encode Base64 Values
kubeseal.decodeBase64: Decode Base64 Values
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.