Skip to content

Tink C++ Google Cloud KMS Extension 2.0.0

Compare
Choose a tag to compare
@morambro morambro released this 03 May 22:12
· 71 commits to main since this release

Tink is a multi-language, cross-platform library that provides simple and misuse-proof APIs for common cryptographic tasks.

This is Tink C++ Google Cloud KMS extension 2.0.0

To get started using Tink, see the setup guide.

Bazel

workspace(name = "example")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "com_github_tink_crypto_tink_cc",
    urls = ["https://github.com/tink-crypto/tink-cc/archive/refs/tags/v2.0.0.zip"],
    strip_prefix = "tink-cc-2.0.0",
    sha256 = "103ddfce800e77f3b3b6b2c808a8611bc734b31ddb12fbcfd8bebc1b96a7e963",
)

http_archive(
    name = "com_github_tink_crypto_tink_cc_gcpkms",
    urls = ["https://github.com/tink-crypto/tink-cc-gcpkms/archive/refs/tags/v2.0.0.zip"],
    strip_prefix = "tink-cc-gcpkms-2.0.0",
    sha256 = "1c01eed55aaa122d34c73c623ba5da7f7855c9bd105d556411e4c70dc0c8caad",
)

load("@com_github_tink_crypto_tink_cc//:tink_cc_deps.bzl", "tink_cc_deps")

tink_cc_deps()

load("@com_github_tink_crypto_tink_cc//:tink_cc_deps_init.bzl", "tink_cc_deps_init")

tink_cc_deps_init()

load("@com_github_tink_crypto_tink_cc_gcpkms//:tink_cc_gcpkms_deps.bzl",
  "tink_cc_gcpkms_deps")

tink_cc_gcpkms_deps()

load("@com_github_tink_crypto_tink_cc_gcpkms//:tink_cc_gcpkms_deps_init.bzl",
  "tink_cc_gcpkms_deps_init")

tink_cc_gcpkms_deps_init(register_go = True)

# ... Your dependencies here ...

NOTE: Different from 1.7.0, labels are now prefixed by tink: for example for example
@tink_cc_gcpkms//integration/gcpkms:gcp_kms_client becomes
@tink_cc_gcpkms//tink/integration/gcpkms:gcp_kms_client.

Bazel users of Tink can use tink-cc's script tools/update_build_files_for_tink_2_0_bazel.sh to apply the necessary Bazel changes to their BUILD files:

git clone https://github.com/tink-crypto/tink-cc.git
cd tink-cc
./tools:update_build_files_for_tink_2_0_bazel <path/to/you/project/root> \
  <tink-cc-gcpkms repository name>

What's new

This is the first release from https://github.com/tink-crypto/tink-cc-gcpkms.

The complete list of changes since 1.7.0 can be found here.

  • Require Bazel 6.0.0
  • Changed minimum C++ version to C++14
  • Changed the structure of the repository adding sources to tink. As a consequence, target labels are now prefixed with tink, for example @tink_cc_gcpkms//integration/gcpkms:gcp_kms_client becomes @tink_cc_gcpkms//tink/integration/gcpkms:gcp_kms_client
  • Minor code refactoring
  • Added/upgraded CI test scripts