{"id":18446449,"url":"https://github.com/ovh/okms-sdk-go","last_synced_at":"2025-10-13T16:36:14.339Z","repository":{"id":258159845,"uuid":"864095970","full_name":"ovh/okms-sdk-go","owner":"ovh","description":"The Golang SDK to interact with your OVHcloud KMS services.","archived":false,"fork":false,"pushed_at":"2025-09-18T09:11:44.000Z","size":225,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-09-18T11:37:23.709Z","etag":null,"topics":["crypto","go","golang","keys","kms","ovh","sdk"],"latest_commit_sha":null,"homepage":"https://help.ovhcloud.com/csm/en-ie-kms-quick-start?id=kb_article_view\u0026sysparm_article=KB0063362","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ovh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":"MAINTAINERS","copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-27T13:38:29.000Z","updated_at":"2025-09-18T09:09:33.000Z","dependencies_parsed_at":"2024-12-02T09:29:34.306Z","dependency_job_id":"d020ce32-97bc-477b-9ed0-c482ba3b877b","html_url":"https://github.com/ovh/okms-sdk-go","commit_stats":null,"previous_names":["ovh/okms-sdk-go"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ovh/okms-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovh%2Fokms-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovh%2Fokms-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovh%2Fokms-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovh%2Fokms-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ovh","download_url":"https://codeload.github.com/ovh/okms-sdk-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ovh%2Fokms-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016092,"owners_count":26085802,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["crypto","go","golang","keys","kms","ovh","sdk"],"created_at":"2024-11-06T07:09:20.042Z","updated_at":"2025-10-13T16:36:14.333Z","avatar_url":"https://github.com/ovh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# okms-sdk-go\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/ovh/okms-sdk-go.svg)](https://pkg.go.dev/github.com/ovh/okms-sdk-go) [![license](https://img.shields.io/badge/license-Apache%202.0-red.svg?style=flat)](https://raw.githubusercontent.com/ovh/okms-sdk-go/master/LICENSE) [![test](https://github.com/ovh/okms-sdk-go/actions/workflows/test.yaml/badge.svg)](https://github.com/ovh/okms-sdk-go/actions/workflows/test.yaml) [![Go Report Card](https://goreportcard.com/badge/github.com/ovh/okms-sdk-go)](https://goreportcard.com/report/github.com/ovh/okms-sdk-go)\n\nThe Golang SDK to interact with your [OVHcloud KMS](https://help.ovhcloud.com/csm/en-ie-kms-quick-start?id=kb_article_view\u0026sysparm_article=KB0063362) services.\n\n\u003e **NOTE:** THIS PROJECT IS CURRENTLY UNDER DEVELOPMENT AND SUBJECT TO BREAKING CHANGES.\n\n## How to use\nAdd it to your project by running\n```bash\ngo get github.com/ovh/okms-sdk-go@latest\n```\n\nThen you can connect to your KMS service\n```go\ncert, err := tls.LoadX509KeyPair(os.Getenv(\"OKMS_CLIENT_CERT_FILE\"), os.Getenv(\"OKMS_CLIENT_KEY_FILE\"))\nif err != nil {\n    panic(err)\n}\nhttpClient := http.Client{\n    Transport: \u0026http.Transport{TLSClientConfig: \u0026tls.Config{\n        Certificates: []tls.Certificate{cert},\n        MinVersion:   tls.VersionTLS12,\n    }},\n}\n\nokmsIdString := os.Getenv(\"OKMS_ID\")\nokmsId, err := uuid.Parse(okmsIdString)\nif err != nil {\n    panic(err)\n}\n\nkmsClient, err := okms.NewRestAPIClientWithHttp(\"https://eu-west-rbx.okms.ovh.net\", \u0026httpClient)\nif err != nil {\n    panic(err)\n}\n\n// Then start using the kmsClient\n// Create a new AES 256 key\nrespAes, err := okmsClient.GenerateSymmetricKey(ctx, okmsId, types.N256, \"AES key example\", \"\", types.Encrypt, types.Decrypt, types.WrapKey, types.UnwrapKey)\nif err != nil {\n    panic(err)\n}\nfmt.Println(\"AES KEY:\", respAes.Id)\n```\n\nSee [examples](./examples) for more.\n\nIf you don't have any KMS service yet, you can follow the [OVHcloud KMS quick start guide](https://help.ovhcloud.com/csm/en-ie-kms-quick-start?id=kb_article_view\u0026sysparm_article=KB0063362).\n\n## Features\nCurrent SDK allows you to manipulate and consume keys through the KMS REST API. Implemented operations are\n- Keys and Key Pairs lifecycle:\n    - Create keys and key pairs\n    - Import keys and key pairs\n    - Activate and Deactivate keys and key pairs\n    - Update keys and key pairs\n    - Destroy keys and key pairs\n    - Update keys and key pairs metadata\n    - List keys and key pairs\n    - Export key pair's public keys\n    - Read keys and key pairs metadata\n- Symmetric Key operations\n    - Encrypt / Decrypt data\n    - Generate data keys\n    - Decrypt data keys\n- Assymetric Key Pair operations\n    - Sign / Verify data","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovh%2Fokms-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovh%2Fokms-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovh%2Fokms-sdk-go/lists"}