{"id":17088381,"url":"https://github.com/atotto/cloudkms","last_synced_at":"2025-07-17T22:36:22.911Z","repository":{"id":57494494,"uuid":"175396532","full_name":"atotto/cloudkms","owner":"atotto","description":"Google Cloud KMS golang signer","archived":false,"fork":false,"pushed_at":"2023-03-06T23:32:10.000Z","size":28,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T15:17:44.238Z","etag":null,"topics":["google-cloud-kms","google-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/atotto.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}},"created_at":"2019-03-13T10:17:12.000Z","updated_at":"2019-04-12T02:02:25.000Z","dependencies_parsed_at":"2024-11-30T14:23:38.388Z","dependency_job_id":"81244b8f-3583-4b96-ba26-97a5df4b23d6","html_url":"https://github.com/atotto/cloudkms","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/atotto/cloudkms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atotto%2Fcloudkms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atotto%2Fcloudkms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atotto%2Fcloudkms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atotto%2Fcloudkms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atotto","download_url":"https://codeload.github.com/atotto/cloudkms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atotto%2Fcloudkms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265672372,"owners_count":23808845,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["google-cloud-kms","google-kms"],"created_at":"2024-10-14T13:37:20.166Z","updated_at":"2025-07-17T22:36:22.873Z","avatar_url":"https://github.com/atotto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudkms\n\ncloud kms signer\n\nexample:\n\n```go\n\tctx := context.Background()\n\n\tclient, err := kms.NewKeyManagementClient(ctx)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tsigner, err := cloudkms.NewSigner(client, \"projects/\u003cproject\u003e/locations/\u003clocation\u003e/keyRings/\u003ckeyRing\u003e/cryptoKeys/\u003ckey\u003e/cryptoKeyVersions/\u003cversion\u003e\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\trootCa := \u0026x509.Certificate{\n\t\tSerialNumber: big.NewInt(1),\n\t\t// TODO: fill\n\t}\n\n\tdata, _ := x509.CreateCertificate(rand.Reader, rootCa, rootCa, signer.Public(), signer)\n\tcert, _ := x509.ParseCertificate(data)\n\n\t// Sign\n\tmsg := \"hello, world\"\n\th := signer.HashFunc().New()\n\th.Write([]byte(msg))\n\tdigest := h.Sum(nil)\n\tsignature, err := signer.Sign(rand.Reader, digest, crypto.SHA256)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Verify Signature\n\tif err := cert.CheckSignature(cert.SignatureAlgorithm, []byte(msg), signature); err != nil {\n\t\tlog.Fatal(err)\n\t}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatotto%2Fcloudkms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatotto%2Fcloudkms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatotto%2Fcloudkms/lists"}