]> dgit.raspbian.org Git - git-annex.git/blob
2e632930a16a31e8a160d02ba6624183c55c0ee8
[git-annex.git] /
1 [[!comment format=mdwn
2  username="joey"
3  subject="""comment 1"""
4  date="2021-03-16T18:57:55Z"
5  content="""
6 git-annex initremote caches the AWS creds locally in a file
7 (.git/annex/creds/uuid) and that caching must be what's happening.
8 I suppose with an autoinit of this particular repo.
9
10 It may be that autoinit should avoid sucking in such information, since the
11 user may not expect it. And also what if two S3 repos were auto-initted,
12 probably the creds would only work for one. There is support in the API
13 that remotes could use to avoid such behavior during auto-init, but not
14 in the external special remote protocol.
15
16 The S3 remote currently always uses S3 protocol when there are creds,
17 even for read operations; when there are no creds it goes on to check if
18 it can determinte a public url, and uses that instead. If it instead 
19 preferred public urls, your use case would work even with the creds. 
20 Could break other use cases though, eg if there was a public url
21 recorded but it didn't work and the API did, also versioned repos maybe.
22
23 So not sure I like that second approach, it seems better to use the creds, 
24 so long as the user knowingly provided them.
25 """]]