AWS Secret insufficient size
Closed this issue · 0 comments
venc-gy commented
When creating config and secrets with docker-config-init, it throws the following error due to AWS Secrets Manager secret size limit (at the moment 64K):
INFO - config-init - 2023-02-01 07:21:41,542 - Saving secret to backend
Traceback (most recent call last):
File "/app/scripts/entrypoint.py", line 1086, in <module>
cli(prog_name="config-init")
. . .
File "/usr/lib/python3.10/site-packages/pygluu/containerlib/manager.py", line 153, in set_all
return self.adapter.set_all(data)
. . .
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the UpdateSecret operation: 1 validation error detected: Value at 'secretBinary' failed to satisfy constraint: Member must have length less than or equal to 65536
This only happens with the secrets, the compressed binary value is almost 4 times larger than this size limit.
Maybe it would be adequate to store the compressed binary in multiple secrets.