# Credentials in remote\_file declaration

**URL:** <https://discourse.chef.io/t/credentials-in-remote-file-declaration/1917>\
**Category:** Chef Infra (archive)\
**Created:** [June 1, 2011, 7:56pm UTC](https://discourse.chef.io/t/credentials-in-remote-file-declaration/1917 "2011-06-01T19:56:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonjwwilliams](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jasonjwwilliams/32/101_2.png) [@jasonjwwilliams](https://discourse.chef.io/u/jasonjwwilliams)\
**Post date:** [June 1, 2011, 7:56pm UTC](https://discourse.chef.io/t/credentials-in-remote-file-declaration/1917/1 "2011-06-01T19:56:14Z")

</div>

Does remote\_file support username/password being spec’d in the URL a la  
"ftp://user:password@host/dir" ?

-J

---

<div class="post-metadata">

**Author:** ![AJ\_Christensen](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/aj_christensen/32/525_2.png) [@AJ\_Christensen](https://discourse.chef.io/u/AJ_Christensen)\
**Post date:** [June 1, 2011, 9:09pm UTC](https://discourse.chef.io/t/credentials-in-remote-file-declaration/1917/2 "2011-06-01T21:09:04Z")

</div>

I don't recall, try it and see!

I seem to remember some http basic auth cookiejar shit. At worst you can  
monkey in a remote file provider that supports it or petition opscode for  
the fix.

—AJ  
On Jun 2, 2011 7:56 AM, "Jason J. W. Williams" [jasonjwwilliams@gmail.com](mailto:jasonjwwilliams@gmail.com)  
wrote:

> Does remote\_file support username/password being spec'd in the URL a la  
> "ftp://user:password@host/dir" ?
> 
> -J

---

<div class="post-metadata">

**Author:** ![jasonjwwilliams](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jasonjwwilliams/32/101_2.png) [@jasonjwwilliams](https://discourse.chef.io/u/jasonjwwilliams)\
**Post date:** [June 1, 2011, 9:37pm UTC](https://discourse.chef.io/t/credentials-in-remote-file-declaration/1917/3 "2011-06-01T21:37:13Z")

</div>

Looks like I've got a more basic issue that FTP isn't supported. Just adding  
a wget call to my script resource for now.

-J

On Wed, Jun 1, 2011 at 3:09 PM, AJ Christensen [aj@junglist.gen.nz](mailto:aj@junglist.gen.nz) wrote:

> I don't recall, try it and see!
> 
> I seem to remember some http basic auth cookiejar shit. At worst you can  
> monkey in a remote file provider that supports it or petition opscode for  
> the fix.
> 
> —AJ  
> On Jun 2, 2011 7:56 AM, "Jason J. W. Williams" [jasonjwwilliams@gmail.com](mailto:jasonjwwilliams@gmail.com)  
> wrote:
> 
> > Does remote\_file support username/password being spec'd in the URL a la  
> > "ftp://user:password@host/dir" ?
> > 
> > -J
