{"id":20532329,"url":"https://github.com/unitvectory-labs/lockboxkms","last_synced_at":"2026-03-05T00:03:17.586Z","repository":{"id":258719553,"uuid":"872694800","full_name":"UnitVectorY-Labs/lockboxkms","owner":"UnitVectorY-Labs","description":"A simple web interface for encrypting text using Google Cloud KMS.","archived":false,"fork":false,"pushed_at":"2026-02-28T13:27:45.000Z","size":506,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-28T15:37:16.178Z","etag":null,"topics":["docker","gcp","htmx","kms"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UnitVectorY-Labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-14T22:48:41.000Z","updated_at":"2026-02-28T13:27:48.000Z","dependencies_parsed_at":"2026-01-15T07:03:08.140Z","dependency_job_id":null,"html_url":"https://github.com/UnitVectorY-Labs/lockboxkms","commit_stats":null,"previous_names":["unitvectory-labs/lockboxkms"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/UnitVectorY-Labs/lockboxkms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Flockboxkms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Flockboxkms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Flockboxkms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Flockboxkms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnitVectorY-Labs","download_url":"https://codeload.github.com/UnitVectorY-Labs/lockboxkms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnitVectorY-Labs%2Flockboxkms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30101697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T23:59:36.199Z","status":"ssl_error","status_checked_at":"2026-03-04T23:56:48.556Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","gcp","htmx","kms"],"created_at":"2024-11-16T00:14:21.607Z","updated_at":"2026-03-05T00:03:17.533Z","avatar_url":"https://github.com/UnitVectorY-Labs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub release](https://img.shields.io/github/release/UnitVectorY-Labs/lockboxkms.svg)](https://github.com/UnitVectorY-Labs/lockboxkms/releases/latest) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Active](https://img.shields.io/badge/Status-Active-green)](https://guide.unitvectorylabs.com/bestpractices/status/#active) [![Go Report Card](https://goreportcard.com/badge/github.com/UnitVectorY-Labs/lockboxkms)](https://goreportcard.com/report/github.com/UnitVectorY-Labs/lockboxkms)\n\n# lockboxkms\n\nA simple web interface for encrypting text using Google Cloud KMS.\n\n## Overview\n\n`LockboxKMS` is a web application that provides a user-friendly interface to encrypt text data using Google Cloud Key Management Service (KMS). It supports multiple encryption keys and offers flexible key management, ensuring one-way data protection by focusing solely on encryption.\n\nThis application provides an extremely simple web interface for encrypting data using Google Cloud KMS providing the options for selecting a key in the KMS key ring and encrypting the data using that key.\n\n![Application Interface](./assets/interface.png)\n\nThe encrypted data is returned to the user base64 encoded, and can be decrypted using the same key in the KMS key ring, but this interface intentionally does not provide a decryption option.  The intent here is to provide a simple way to encrypt data using KMS, and then store the encrypted data somewhere so that a separate process can later use the same key to decrypt the data.\n\n## Usage\n\nThe latest `lockboxkms` Docker image is available for deployment from GitHub Packages at [ghcr.io/unitvectory-labs/lockboxkms](https://github.com/UnitVectorY-Labs/lockboxkms/pkgs/container/lockboxkms).\n\n## Configuration\n\nThe application is configurable through environment variables. Below are the available configurations:\n\n- `GOOGLE_CLOUD_PROJECT`: Your Google Cloud project ID. (required, application will not start without it)\n- `KMS_LOCATION`: The location of your KMS resources (default: us).\n- `KMS_KEY_RING`: The name of the KMS key ring to use (default: lockboxkms).\n- `GOOGLE_APPLICATION_CREDENTIALS`: (Optional) The path to your Google Cloud service account key file. If not provided, the application will use the default service account credentials which is recommended when deploying to GCP.\n- `PORT`: The port on which the server listens (default: 8080).\n\n## Permissions\n\nThe service account used by the application must have the following permissions that should be granted to the specific **key ring** to the service account used by `lockboxkms`:\n\n- `roles/cloudkms.cryptoKeyEncrypter`\n- `roles/cloudkms.viewer`\n\nFor example, these permissions can be granted using the following commands:\n\n```bash\ngcloud kms keyrings add-iam-policy-binding [KEYRING_NAME] \\\n    --location [LOCATION] \\\n    --member serviceAccount:[SERVICE_ACCOUNT_EMAIL] \\\n    --role roles/cloudkms.cryptoKeyEncrypter\ngcloud kms keyrings add-iam-policy-binding [KEYRING_NAME] \\\n    --location [LOCATION] \\\n    --member serviceAccount:[SERVICE_ACCOUNT_EMAIL] \\\n    --role roles/cloudkms.viewer\n```\n\nFor the app decrypting the `roles/cloudkms.cryptoKeyDecrypter` role should be granted on the specific **key** that will be used to decrypt the data.\n\n## Limitations\n\n- The application does not provide a decryption option. It is intended to be used for encrypting data only as the intended feature.\n- This application does not provide any form of authentication or authorization. It is recommended to deploy this application behind a reverse proxy that provides authentication and authorization such as [Identity Aware Proxy](https://cloud.google.com/iap)\n- KMS can encrypt data up to 64 KiB in size.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitvectory-labs%2Flockboxkms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funitvectory-labs%2Flockboxkms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitvectory-labs%2Flockboxkms/lists"}