Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA Cert bundle too large for SSM Parameter #109

Open
jamesthompson26-nhs opened this issue Feb 1, 2024 · 2 comments
Open

CA Cert bundle too large for SSM Parameter #109

jamesthompson26-nhs opened this issue Feb 1, 2024 · 2 comments

Comments

@jamesthompson26-nhs
Copy link
Contributor

SSM Params have a maximum character count of 4096KB. The new CA bundles below are considerably larger than that:

https://github.com/NHSDigital/mesh-client/blob/develop/mesh_client/nhs-int-ca-bundle.pem
https://github.com/NHSDigital/mesh-client/blob/develop/mesh_client/nhs-live-ca-bundle.pem

Need to either store the ca cert in s3 or secrets manager to avoid this limit.

@aidenvaines-bjss
Copy link

https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PutParameter.html#API_PutParameter_RequestSyntax:~:text=Advanced%20parameters%20have%20a%20content%20size%20limit%20of%208%20KB
Advanced parameters support 8k file sizes

as an example using the proposed .pem above and i can do this
image

Adding https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter#tier configured to advanced should solve the issue

However,
SSM Advanced has costs:
https://aws.amazon.com/systems-manager/pricing/#:~:text=monthly%20cost%20%3D%20%24152.64-,Parameter%20Store,-AWS%20Systems%20Manager
which looks remarkably like secrets manager pricing https://aws.amazon.com/secrets-manager/pricing/
we'd need to do some maths for number of secrets + number of requests as it might just be easier to depricate SSM being used for this

@davidhallam4-nhs
Copy link
Contributor

Just to confirm, SSM advanced tier does provide enough storage for both the legacy G1 and new G2 CA cert chains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants