goofys icon indicating copy to clipboard operation
goofys copied to clipboard

fails to mount when using instance profile role and requiring Metadata v2.0

Open jonjohnston opened this issue 4 years ago • 4 comments

I have discovered that when enabling Amazons new Metadata version 2 to be required instead of optional, goofys fails to mount if using instance profile role because the access key id, secret, and token are retrieved from the metadata but version 2.0 requires generating a token before making the metadata call. Please add compatibility for this.

jonjohnston avatar Feb 26 '20 16:02 jonjohnston

for reference that's https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html . I think all that's needed is probably update aws-sdk-go

kahing avatar Mar 17 '20 06:03 kahing

@kahing is this something that you will update in the next release or is there a way for me to update my linux box to do it?

jonjohnston avatar Apr 14 '20 13:04 jonjohnston

@kahing can this please be implemented in next release? This is restricting our progress to move to metadata version 2

jonjohnston avatar Jul 31 '20 16:07 jonjohnston

I was looking for a similar bugfix. Stumbled on https://github.com/kahing/goofys/issues/671

It looks like it's been implemented but there isn't a pre-built release including it yet so currently requires 'build it yourself' to enable. I also have not tested it yet, but worth looking at. I suspect this ticket can probably be closed in favor of that one (or related).

drobert avatar Jan 18 '24 22:01 drobert