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

AWS: validate user data doesn't exceed 16kb limit #667

Open
ncdc opened this issue Jul 31, 2018 · 0 comments
Open

AWS: validate user data doesn't exceed 16kb limit #667

ncdc opened this issue Jul 31, 2018 · 0 comments

Comments

@ncdc
Copy link
Contributor

ncdc commented Jul 31, 2018

If the generated user data bootstrap script exceeds 16kb (before being base64 encoded), AWS will reject it like this:

2018-07-31T15:15:12-04:00 [ℹ]  Parsing bootstrap script from filesystem [/Users/andy/code/kubernetes-release/_artifacts/kubicorn/1533064442/centos/master.sh]
2018-07-31T15:15:18-04:00 [✖]  Error during apply of atomic reconciler, attempting clawback: ValidationError: 1 validation error detected: Value 'IyEvdXNyL2Jpbi9lbnYgYmFzaAoKIy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS
[snip]
cKY2hvd24gLVIgY2VudG9zOmNlbnRvcyAvaG9tZS9jZW50b3MvLmt1YmU=' at 'userData' failed to satisfy constraint: Member must have length less than or equal to 21847

It would be nice if Kubicorn validated the size before attempting to talk to AWS.

detiber added a commit that referenced this issue Sep 10, 2019
Add AWS User data 16kb limit validation - Issue #667
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants