bosh icon indicating copy to clipboard operation
bosh copied to clipboard

final release creation expects s3 access key, despite env_or_profile being set

Open aristotelesneto opened this issue 10 years ago • 5 comments

When attempting to create a final release, looks like the cli doesn't allow it through unless s3.access_key and secret are present.

https://github.com/cloudfoundry/bosh/blob/master/bosh_cli/lib/cli/release.rb#L76

This is an issue for those using iam profiles (credentials_source: env_or_profile).

Other tasks (for example sync blobs, are able to leverage credentials from the profile).

aristotelesneto avatar Jun 03 '16 08:06 aristotelesneto

@aristotelesneto out of curiosity, does providing a fake access_key and secret and specifying env_or_profile credentials source fix it?

cppforlife avatar Jun 06 '16 17:06 cppforlife

Doesn't I'm afraid - fails here: https://github.com/cloudfoundry/bosh/blob/93a2522b3a6a58cc3d24f6ea10a9dba0a9a421bb/bosh-registry/lib/bosh/registry/instance_manager/aws.rb#L67

aristotelesneto avatar Jun 06 '16 21:06 aristotelesneto

are you sure? thats registry code which is not used by the cli in the finalize release path.

Sent from my iPhone

On Jun 6, 2016, at 2:24 PM, Aristoteles Neto [email protected] wrote:

Doesn't I'm afraid - fails here: https://github.com/cloudfoundry/bosh/blob/93a2522b3a6a58cc3d24f6ea10a9dba0a9a421bb/bosh-registry/lib/bosh/registry/instance_manager/aws.rb#L67

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

cppforlife avatar Jun 06 '16 21:06 cppforlife

Sorry wrong file (i just did a quick search on github for the env_of_profile and picked the first error) - fails with a similar error. IIRC it was on the blobstore, so here: https://github.com/cloudfoundry/bosh/blob/master/blobstore_client/lib/blobstore_client/s3_blobstore_client.rb#L172

aristotelesneto avatar Jun 06 '16 21:06 aristotelesneto

Closing - the new CLI supports the credentials_source setting. The ruby CLI is now frozen, so we won't be making further changes. Feel free to give the new CLI a try and leave feedback/issues in that repo. Thanks, @aristotelesneto!

dpb587-pivotal avatar Nov 22 '16 21:11 dpb587-pivotal