# Recent changes to static.rust-lang.org removed ability to list directory (with updated method)

**URL:** <https://internals.rust-lang.org/t/recent-changes-to-static-rust-lang-org-removed-ability-to-list-directory-with-updated-method/4312>\
**Category:** tools and infrastructure\
**Created:** [November 3, 2016, 4:26pm UTC](https://internals.rust-lang.org/t/recent-changes-to-static-rust-lang-org-removed-ability-to-list-directory-with-updated-method/4312 "2016-11-03T16:26:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shepmaster](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/shepmaster/32/847_2.png) [@shepmaster](https://internals.rust-lang.org/u/shepmaster)\
**Post date:** [November 3, 2016, 4:26pm UTC](https://internals.rust-lang.org/t/recent-changes-to-static-rust-lang-org-removed-ability-to-list-directory-with-updated-method/4312/1 "2016-11-03T16:26:22Z")

</div>

As part of [my playground](http://play.integer32.com/) build environment, I figure out the most recent releases by downloading a file that lists the appropriate date (e.g. `https://static.rust-lang.org/dist/channel-rust-nightly-date.txt`).

I originally figured this out by following the trail from the downloads page to `https://static.rust-lang.org/dist`, which I was able to list. During that listing, I found these “date” files which proved to be amazingly useful (thanks!).

Debugging some recent transient errors, I noticed that I am no longer able to list that directory, I just get

```xml
<Error>
  <Code>NoSuchKey</Code>
  <Message>The specified key does not exist.</Message>
  <Key>dist</Key>
  <RequestId>507363BE05560A95</RequestId>
  <HostId>EfORtQ45I9THHjhRC1Fa+fvmq7WvlfM/D7AlJQvHDzmN+XxTpYA7JGUIabCrpjwkL55WKKWqciQ=</HostId>
</Error>

```

While writing up this post, I just **successfully loaded [https://static.rust-lang.org/dist/index.html](https://static.rust-lang.org/dist/index.html)**, which seems to be a reasonable alternative. Now that I’ve typed all this up, perhaps this post will be more of a heads-up to others with the same train of thought. 😇

Was this a deliberate change, perhaps something for security?

---

<div class="post-metadata">

**Author:** ![alexcrichton](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/alexcrichton/32/4501_2.png) [@alexcrichton](https://internals.rust-lang.org/u/alexcrichton)\
**Post date:** [November 3, 2016, 5:36pm UTC](https://internals.rust-lang.org/t/recent-changes-to-static-rust-lang-org-removed-ability-to-list-directory-with-updated-method/4312/2 "2016-11-03T17:36:12Z")

</div>

Right now [static.rust-lang.org](http://static.rust-lang.org) is a CloudFront shim over the static-rust-lang-org S3 bucket. We discovered awhile ago that the configuration meant that although you connected with SSL to [static.rust-lang.org](http://static.rust-lang.org) it would transmit data from the S3 bucket over HTTP (not HTTPS). In other words, our configuration meant that the traffic you received was still susceptible to MitM (in theory).

In fixing that problem we change the configuration it changed to not work with listing requests (like this) I believe. I think though if you hit the bucket directly it should work? I haven’t tested that out though…

---

<div class="post-metadata">

**Author:** ![jethrogb](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jethrogb](https://internals.rust-lang.org/u/jethrogb)\
**Post date:** [November 3, 2016, 6:16pm UTC](https://internals.rust-lang.org/t/recent-changes-to-static-rust-lang-org-removed-ability-to-list-directory-with-updated-method/4312/3 "2016-11-03T18:16:37Z")

</div>

I also ran into this a few months ago.

Just add /index.html to your URL

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [March 25, 2019, 8:27am UTC](https://internals.rust-lang.org/t/recent-changes-to-static-rust-lang-org-removed-ability-to-list-directory-with-updated-method/4312/4 "2019-03-25T08:27:16Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
