# 

**URL:** <https://discourse.chef.io/t/topic/4289>\
**Category:** Chef Infra (archive)\
**Created:** [August 1, 2013, 7:51am UTC](https://discourse.chef.io/t/topic/4289 "2013-08-01T07:51:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Gale](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/andy_gale/32/241_2.png) [@Andy\_Gale](https://discourse.chef.io/u/Andy_Gale)\
**Post date:** [August 1, 2013, 7:51am UTC](https://discourse.chef.io/t/topic/4289/1 "2013-08-01T07:51:58Z")

</div>

Hi all,

I’ve just inherited an old open source Chef server 0.10.8. It’s left  
exposed to the world poor thing and I fear for it’s safety. It would be a  
very good idea to put Nginx in front of it I think.

Does anyone have any howtos? I’d like to do it soon rather than later!

Cheers,

Andy

–  
Andy Gale  
M: +447825661580  
[http://andy-gale.com](http://andy-gale.com)  
[http://twitter.com/andygale](http://twitter.com/andygale)

---

<div class="post-metadata">

**Author:** ![Matt\_Rohrer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/matt_rohrer/32/501_2.png) [@Matt\_Rohrer](https://discourse.chef.io/u/Matt_Rohrer)\
**Post date:** [August 1, 2013, 8:13am UTC](https://discourse.chef.io/t/topic/4289/2 "2013-08-01T08:13:04Z")

</div>

On 08/01, Andy Gale wrote:

> Hi all,
> 
> I've just inherited an old open source Chef server 0.10.8. It's left  
> exposed to the world poor thing and I fear for it's safety. It would be a  
> very good idea to put Nginx in front of it I think.
> 
> Does anyone have any howtos? I'd like to do it soon rather than later!

Hi Andy,

Yes, you definitely want to protect the webui. You can configure nginx  
to proxy to it like any other upstream app.

There's an example at [chef-server/templates/default/chef\_server.nginx.conf.erb at 0.99.12 · chef-cookbooks/chef-server · GitHub](https://github.com/opscode-cookbooks/chef-server/blob/0.99.12/templates/default/chef_server.nginx.conf.erb)

The API calls are all signed and (AFAIK) encrypted so leaving that  
"exposed" isn't a huge issue, though if you can limit access to certain  
IPs that's of course prefered.

Regards,  
Matt

--  
Matt Rohrer // [matt@prognostikos.com](mailto:matt@prognostikos.com)  
[http://finitesoup.com](http://finitesoup.com)

---

<div class="post-metadata">

**Author:** ![Steffen\_Gebert1](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Steffen\_Gebert1](https://discourse.chef.io/u/Steffen_Gebert1)\
**Post date:** [August 1, 2013, 9:51am UTC](https://discourse.chef.io/t/topic/4289/3 "2013-08-01T09:51:14Z")

</div>

Hi,

> The API calls are all signed and (AFAIK) encrypted  
> AFAIK (very sure) they're NOT encrypted, that's why you're advised to  
> setup an HTTPS proxy in front of the chef server.  
> Chef 11 ships an nginx that does the SSL termination.

Yours  
Steffen

On 8/1/13 10:13 AM, Matt Rohrer wrote:

> On 08/01, Andy Gale wrote:
> 
> > Hi all,
> > 
> > I've just inherited an old open source Chef server 0.10.8. It's left  
> > exposed to the world poor thing and I fear for it's safety. It would be a  
> > very good idea to put Nginx in front of it I think.
> > 
> > Does anyone have any howtos? I'd like to do it soon rather than later!
> 
> Hi Andy,
> 
> Yes, you definitely want to protect the webui. You can configure nginx  
> to proxy to it like any other upstream app.
> 
> There's an example at [chef-server/templates/default/chef\_server.nginx.conf.erb at 0.99.12 · chef-cookbooks/chef-server · GitHub](https://github.com/opscode-cookbooks/chef-server/blob/0.99.12/templates/default/chef_server.nginx.conf.erb)
> 
> The API calls are all signed and (AFAIK) encrypted so leaving that  
> "exposed" isn't a huge issue, though if you can limit access to certain  
> IPs that's of course prefered.
> 
> Regards,  
> Matt
> 
> --  
> Matt Rohrer // [matt@prognostikos.com](mailto:matt@prognostikos.com)  
> [http://finitesoup.com](http://finitesoup.com)

---

<div class="post-metadata">

**Author:** ![Jesse\_Campbell](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jesse_campbell/32/251_2.png) [@Jesse\_Campbell](https://discourse.chef.io/u/Jesse_Campbell)\
**Post date:** [August 1, 2013, 1:15pm UTC](https://discourse.chef.io/t/topic/4289/4 "2013-08-01T13:15:08Z")

</div>

If I were you, I'd use a knife download tool to extract all the everything  
from that server, install chef 11, and upload everything back in.

On Thu, Aug 1, 2013 at 5:51 AM, Steffen Gebert [st+gmane@st-g.de](mailto:st+gmane@st-g.de) wrote:

> Hi,
> 
> > The API calls are all signed and (AFAIK) encrypted  
> > AFAIK (very sure) they're NOT encrypted, that's why you're advised to  
> > setup an HTTPS proxy in front of the chef server.  
> > Chef 11 ships an nginx that does the SSL termination.
> 
> Yours  
> Steffen
> 
> On 8/1/13 10:13 AM, Matt Rohrer wrote:
> 
> > On 08/01, Andy Gale wrote:
> > 
> > > Hi all,
> > > 
> > > I've just inherited an old open source Chef server 0.10.8. It's left  
> > > exposed to the world poor thing and I fear for it's safety. It would be  
> > > a  
> > > very good idea to put Nginx in front of it I think.
> > > 
> > > Does anyone have any howtos? I'd like to do it soon rather than later!
> > 
> > Hi Andy,
> > 
> > Yes, you definitely want to protect the webui. You can configure nginx  
> > to proxy to it like any other upstream app.
> > 
> > There's an example at  
> > [chef-server/templates/default/chef\_server.nginx.conf.erb at 0.99.12 · chef-cookbooks/chef-server · GitHub](https://github.com/opscode-cookbooks/chef-server/blob/0.99.12/templates/default/chef_server.nginx.conf.erb)
> > 
> > The API calls are all signed and (AFAIK) encrypted so leaving that  
> > "exposed" isn't a huge issue, though if you can limit access to certain  
> > IPs that's of course prefered.
> > 
> > Regards,  
> > Matt
> > 
> > --  
> > Matt Rohrer // [matt@prognostikos.com](mailto:matt@prognostikos.com)  
> > [http://finitesoup.com](http://finitesoup.com)

---

<div class="post-metadata">

**Author:** ![Andy\_Gale](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/andy_gale/32/241_2.png) [@Andy\_Gale](https://discourse.chef.io/u/Andy_Gale)\
**Post date:** [August 2, 2013, 4:03pm UTC](https://discourse.chef.io/t/topic/4289/5 "2013-08-02T16:03:33Z")

</div>

Jesse + all,

Thanks, yes once I learnt how to put subjects in my emails (oops),  
converting it all to Chef Server 11 seemed the only sensible way to go.  
Looks like I can rescue the immediate situation with Rackspace's isolated  
cloud networks feature.

Cheers,

Andy

On Thu, Aug 1, 2013 at 2:15 PM, Jesse Campbell [hikeit@gmail.com](mailto:hikeit@gmail.com) wrote:

> If I were you, I'd use a knife download tool to extract all the everything  
> from that server, install chef 11, and upload everything back in.
> 
> On Thu, Aug 1, 2013 at 5:51 AM, Steffen Gebert [st+gmane@st-g.de](mailto:st+gmane@st-g.de) wrote:
> 
> > Hi,
> > 
> > > The API calls are all signed and (AFAIK) encrypted  
> > > AFAIK (very sure) they're NOT encrypted, that's why you're advised to  
> > > setup an HTTPS proxy in front of the chef server.  
> > > Chef 11 ships an nginx that does the SSL termination.
> > 
> > Yours  
> > Steffen
> > 
> > On 8/1/13 10:13 AM, Matt Rohrer wrote:
> > 
> > > On 08/01, Andy Gale wrote:
> > > 
> > > > Hi all,
> > > > 
> > > > I've just inherited an old open source Chef server 0.10.8. It's left  
> > > > exposed to the world poor thing and I fear for it's safety. It would  
> > > > be a  
> > > > very good idea to put Nginx in front of it I think.
> > > > 
> > > > Does anyone have any howtos? I'd like to do it soon rather than later!
> > > 
> > > Hi Andy,
> > > 
> > > Yes, you definitely want to protect the webui. You can configure nginx  
> > > to proxy to it like any other upstream app.
> > > 
> > > There's an example at  
> > > [https://github.com/opscode-cookbooks/chef-server/blob/0.99.12/templates/default/chef\_server.nginx.conf.erb](https://github.com/opscode-cookbooks/chef-server/blob/0.99.12/templates/default/chef_server.nginx.conf.erb)
> > > 
> > > The API calls are all signed and (AFAIK) encrypted so leaving that  
> > > "exposed" isn't a huge issue, though if you can limit access to certain  
> > > IPs that's of course prefered.
> > > 
> > > Regards,  
> > > Matt
> > > 
> > > --  
> > > Matt Rohrer // [matt@prognostikos.com](mailto:matt@prognostikos.com)  
> > > [http://finitesoup.com](http://finitesoup.com)

--  
Andy Gale

> **[Andy Gale - Freelance DevOps Consultant, Web Developer & Sys Admin from...](http://andy-gale.com)**
>
> Andy Gale, Web Developer, DevOps, Sys Admin, Bristol, England, UK. I have over 16 years professional full stack experience with the Web and other Internet technologies.

[http://twitter.com/andygale](http://twitter.com/andygale)
