You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which returns list of buckets only from the same account, which obviously lead to failed check because bucket is never included in the returned list.
Would it make sense to fix it with, like, client.listObjects(...), with some random prefix, which will lead to empty result list if the bucket exists and to exception if it doesn't or GoCD has no permissions to list bucket it, which will be required later during polling anyway?
If you're ok with the proposed solution, either me or my colleagues will send a PR. What do you think?
The text was updated successfully, but these errors were encountered:
@algra Sorry you're running into the problem - I think this is a duplicate of #12
To me both client.listObjects(...) and client.doesBucketExist sounds good.
@ajitchahal Would you be able to take a stab at sending the above fix as a PR? The approaches to solving the problem has been laid out in this issue and on #12
Hi guys,
We have GoCD running in one account, and artefacts bucket in another one, but GoCD still can access it because AWS policies are allowing it.
The problem with the s3material plugin is that during connectivity check it executes
client.listBuckets()
:https://github.com/indix/gocd-s3-artifacts/blob/master/utils/src/main/java/com/indix/gocd/utils/store/S3ArtifactStore.java#L100-L106
which returns list of buckets only from the same account, which obviously lead to failed check because bucket is never included in the returned list.
Would it make sense to fix it with, like,
client.listObjects(...)
, with some random prefix, which will lead to empty result list if the bucket exists and to exception if it doesn't or GoCD has no permissions to list bucket it, which will be required later during polling anyway?If you're ok with the proposed solution, either me or my colleagues will send a PR. What do you think?
The text was updated successfully, but these errors were encountered: