impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-6067: Enable s3 access via IAM roles for EC2 VMs
Date Thu, 09 Nov 2017 02:21:00 GMT
Tim Armstrong has posted comments on this change. ( )

Change subject: IMPALA-6067: Enable s3 access via IAM roles for EC2 VMs

Patch Set 2:

File bin/
PS2, Line 294:   if (set +x; [[ -z ${AWS_ACCESS_KEY_ID-} && -z ${AWS_SECRET_ACCESS_KEY-}
]]); then
> I'm not sure that putting the checks into a separate script would change an
Lines 252-264 seem ok - I don't have a problem with setting environment variables in this
PS2, Line 294:   if (set +x; [[ -z ${AWS_ACCESS_KEY_ID-} && -z ${AWS_SECRET_ACCESS_KEY-}
]]); then
> In most of the use cases the network access is avoided, it happens only if 
Yeah, I'd question whether "aws ls" belongs in this script either.

The performance is one thing but I just generally think we should restrict this script to
doing the minimum possible to set up environment variables. I don't see why it should be extended
to do heavyweight things to validate the configuration - we don't do anything to validate
the vast majority of other variables that are set in this script.

It does appear that people have added validations in an ad-hoc way before so if a majority
of people think that that's a good idea, I can yield to that.

We should also keep in mind that this script is a crappy programming environment, because
it's running in the context of the user's shell and we can't use things like "set -x" and
have to be careful setting variables that we don't intend to leak into the user's shell.

So I think regardless this logic would be more maintainable in a separate script to validate
the AWS config. My preference is that we also run that script from elsewhere to keep
lightweight but if other people feel strongly that should be doing more validation
of configs, etc then that's not the worst thing in the world.
PS2, Line 303: CURL_ARGS
This variable will leak out into the user's shell.

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I14cd9d4453a91baad3c379aa7e4944993fca95ae
Gerrit-Change-Number: 8294
Gerrit-PatchSet: 2
Gerrit-Owner: Laszlo Gaal <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: David Knupp <>
Gerrit-Reviewer: Jim Apple <>
Gerrit-Reviewer: Joe McDonnell <>
Gerrit-Reviewer: Lars Volker <>
Gerrit-Reviewer: Laszlo Gaal <>
Gerrit-Reviewer: Michael Brown <>
Gerrit-Reviewer: Philip Zeyliger <>
Gerrit-Reviewer: Sailesh Mukil <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-Comment-Date: Thu, 09 Nov 2017 02:21:00 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message