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

Add google cloud storage samples using gcloud. #397

Merged
merged 3 commits into from
Jun 30, 2016

Conversation

hohaichi
Copy link
Contributor

Simple upload and download samples using python gcloud.

Simple upload and download samples using python gcloud.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 30, 2016

# You can (and should) generate your own encryption key. os.urandom(32) is a
# good way to accomplish this with Python.
# Although these keys are provided here for simplicity, please remember
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix weird indentation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@theacodes theacodes self-assigned this Jun 30, 2016
@theacodes
Copy link
Contributor

I would prefer that we update all of the cloud storage samples at once to use gcloud-python, however, this would need better coordination.

@hohaichi
Copy link
Contributor Author

Thank you for the super quick turnaround. I incorporated your suggestions to the change. PTAL.

#
# Although these keys are provided here for simplicity, please remember
# that it is a bad idea to store your encryption keys in your source code.
ENCRYPTION_KEY = os.urandom(32)
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth pointing out explicitly that it MUST be exactly 256 bits.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@hohaichi
Copy link
Contributor Author

Updated with improvements per feedback. PTAL.

@theacodes
Copy link
Contributor

LGTM

@theacodes theacodes merged commit 86b6ed8 into GoogleCloudPlatform:master Jun 30, 2016
@hohaichi
Copy link
Contributor Author

Thanks. Do you know what the Travis-ci error means?

Quoted:
The command "openssl aes-256-cbc -k "$secrets_password" -in secrets.tar.enc -out secrets.tar -d" failed and exited with 1 during .

@theacodes
Copy link
Contributor

Travis doesn't succeed for outside pull requests, it's expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants