Skip to content
New issue

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

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

Already on GitHub? # to your account

Your access key and secret key are in final.yml #5

Open
dsboulder opened this issue Jan 22, 2014 · 4 comments
Open

Your access key and secret key are in final.yml #5

dsboulder opened this issue Jan 22, 2014 · 4 comments

Comments

@dsboulder
Copy link

They belong in private.yml, not checked into git.

@drnic
Copy link

drnic commented Jan 22, 2014

Dave, you can put the read-only creds in final.yml (or mark the assets public via console); and read-write creds in private.yml. 

Is there a way to setup an s3 bucket to mark all uploaded blobs as public via bosh sync blobs?

Brian, is this what you did?

On Tue, Jan 21, 2014 at 5:48 PM, David Stevenson notifications@github.com
wrote:

They belong in private.yml, not checked into git.

Reply to this email directly or view it on GitHub:
#5

@adamstegman
Copy link

It looks like you can set a bucket policy to allow anonymous downloads of any object in a bucket. Since the object ids are known to bosh it seems like it would work.

@adamstegman
Copy link

Yes, we were able to make that work.

  1. We created an S3 bucket and set the anonymous access permission example as the bucket policy, and uploaded our blobs to that bucket.
  2. We removed the local caches of blobs and changed final.yml to exclude credentials.
  3. We ran bosh create release and it successfully downloaded all the blobs and created a release.

Here's our final.yml:

---
blobstore:
  provider: s3
  options:
    bucket_name: <bucket-name>
min_cli_version: 1.5.0.pre.1117

@BrianMMcClain
Copy link
Owner

@drnic is correct, those are RO credentials, however I'm glad you brought this up @adamstegman, I think this is a good route as well. I havn't followed any recent changes to proper blob management with BOSH recently, but this may be a better route to go.

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

No branches or pull requests

4 participants