标签: google-cloud-dlp

如何使用DLP扫描BigQuery表寻找敏感数据?

我想使用DLPBigQuery中分析我的表.有可能的 ?怎么做 ?

google-bigquery google-cloud-dlp

3
推荐指数
1
解决办法
176
查看次数

GCP DLP(数据丢失防护)得到“解密失败:密文无效”。

我正在用 Python 实现 Google Cloud Platforms-Data Loss Prevention API 的标准实现,用于去识别文本。这是来自https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/dlp/deid.pydeidentify_with_fpe方法的示例

当我使用下面提到的参数运行代码时,出现以下错误。

有人可以建议如何修复错误吗?

google.api_core.exceptions.InvalidArgument: 400 Received the following error message from Cloud KMS when unwrapping KmsWrappedCryptoKey "projects/xxxx-xxx/locations/global/keyRings/dlp-key-ring-4/cryptoKeys/key9": Decryption failed: the ciphertext is invalid.
Run Code Online (Sandbox Code Playgroud)

整个轨迹是

Last login: Fri Feb 28 15:29:09 on ttys001
Restored session: Fri 28 Feb 2020 15:27:53 AEDT
xxxxs-MacBook-Pro:poc-bucket-flow-dlp xxxxxxxx$ python dlp3.py --verbosity=debug
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 57, in error_remapped_callable
    return callable_(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/grpc/_channel.py", line 826, in __call__
    return _end_unary_response_blocking(state, …
Run Code Online (Sandbox Code Playgroud)

python security google-cloud-platform google-cloud-dlp

0
推荐指数
1
解决办法
424
查看次数