google-cloud-secret-manager: duration "Fail to convert to Duration" #13350
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Determine this is the right repository
Summary of the issue
Context
Trying to define a secret duration in "NNx" format (e.g. "300s") fails for latest versions of
protobuf
bundled with secretmanager.Expected Behavior:
(No error)
Actual Behavior:
API client name and version
google-cloud-secret-manager 2.21.1
Reproduction steps: code
file: main.py
Reproduction steps: supporting files
No response
Reproduction steps: actual results
Reproduction steps: expected results
(Successful creation)
OS & version + platform
MacOS 15.1.1 (24B91)
Python environment
Python 3.13.0
Python dependencies
cachetools==5.5.0
certifi==2024.8.30
charset-normalizer==3.4.0
google-api-core==2.24.0
google-auth==2.37.0
google-cloud-secret-manager==2.21.1
googleapis-common-protos==1.66.0
grpc-google-iam-v1==0.13.1
grpcio==1.68.1
grpcio-status==1.68.1
idna==3.10
proto-plus==1.25.0
protobuf==5.29.1
pyasn1==0.6.1
pyasn1_modules==0.4.1
requests==2.32.3
rsa==4.9
urllib3==2.2.3
Additional context
Dependencies based on a current
pip install google-cloud-secret-manager
, which comes withprotobuf==5.29.1
.Manually running
pip install protobuf==5.27.5
, the error does not occur.Error exists from
protobuf==5.28.0
onwards, without any changes to any other dependencies.The text was updated successfully, but these errors were encountered: