It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

[bitbucket] Amazon S3 secret key

Oriane blt Apr 07, 2014


I'm about to use bitbucket, with a team of 6 users, so our project will be public. We are going to use Amazon S3 services, to store images from our database. I would like to now how to process correctly, to hide the AWS credentials (access key, secret key). So that it will never be seen on our public project.

Do we have to rewrite the file everytime we push ? Or is there an existing solution ?


1 answer

1 vote
Seth Apr 07, 2014

I would recommend not versioning the file that stores those credentials, using .gitignore. If you'd like to have a sterile copy of the file versioned for documentation, you might consider a separate .default file.

For example, if your S3 credentials are in "config.ini", then remove that file from the repository, ignore the copy in your working copy, and create and commit a "config.default.ini" without the credentials.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,732 views 1 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you