我想使用google cloud kms来加密和解密SON值,我正在使用下面的代码作为示例
try (KeyManagementServiceClient client = KeyManagementServiceClient.create()) {
// The resource name of the cryptoKey
String resourceName = CryptoKeyName.format(projectId, locationId, keyRingId, cryptoKeyId);
// Encrypt the plaintext with Cloud K
我不得不将我的.Net核心应用程序从Google引擎移到引擎,因为我需要静态IP,而且很遗憾,Google没有这个选项。
我成功地制作了一个集群和一些豆荚,但在日志中我看到:
Unhandled exception. Grpc.Core.RpcException: Status(StatusCode=PermissionDenied, Detail="Request had insufficient authentication scopes.")
at Grpc.Core.Internal.AsyncCall`2.UnaryCall(TRequest msg)
a
我正在实现Google平台的标准实现-- Python中的数据丢失预防API (用于非标识文本)。这来自中用于deidentify_with_fpe方法的示例。
当我使用下面提到的参数运行代码时,我会得到以下错误。
有人能建议如何纠正这个错误吗?
google.api_core.exceptions.InvalidArgument: 400 Received the following error message from Cloud KMS when unwrapping KmsWrappedCryptoKey "projects/xxxx-xxx/locations/global/