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

Hash custom_data in state storage #12214

Merged
merged 1 commit into from Mar 8, 2017
Merged

Hash custom_data in state storage #12214

merged 1 commit into from Mar 8, 2017

Conversation

sethvargo
Copy link
Contributor

This PR changes custom_data to be hashed in the statefile instead of plain-textified. This reduces the size of the statefile and is more in line with how other providers behave.

This also switches to helpers for b64.

/cc @stack72

This also switches to helpers for b64.
v = base64Encode(v)
}

v = base64Encode(v)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Helper does this check now

data = *osProfile.CustomData
}
result["custom_data"] = data
result["custom_data"] = *osProfile.CustomData
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This I'm not sure about. I tried this with b64 and non-b64 encoded data, and it worked both times. I'm not sure what this code was attempting to do?

@stack72
Copy link
Contributor

stack72 commented Mar 8, 2017

Looks awesome @sethvargo

This is going to be a 0.9 only feature just incase it causes any upgrade issues ;)

@stack72 stack72 merged commit d387860 into master Mar 8, 2017
@stack72 stack72 deleted the sethvargo/long_userdata branch March 8, 2017 21:58
yanndegat pushed a commit to yanndegat/terraform that referenced this pull request Mar 13, 2017
This also switches to helpers for b64.
@ghost
Copy link

ghost commented Apr 15, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants