# puppet/sensu dashboard authentication

**URL:** <https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160>\
**Category:** Sensu Classic (EOL)\
**Created:** [March 18, 2014, 8:06pm UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160 "2014-03-18T20:06:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mojo](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@Mojo](https://discourse.sensu.io/u/Mojo)\
**Post date:** [March 18, 2014, 8:06pm UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160/1 "2014-03-18T20:06:05Z")

</div>

Hi,

In my puppet sensu config, I’m setting dashboard\_user and dashboard\_password to an empty string, which effectively turns off the dashboard auth. (I can wrap auth in nginx.)

However the puppet module notices every time:

user changed ‘’ to ‘’  
password changed ‘’ to ‘’

(sensu-dashboard) Triggered ‘refresh’ from 1 events

Anyone have a workaround for that?

Mojo

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [March 23, 2014, 7:24pm UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160/2 "2014-03-23T19:24:12Z")

</div>

[https://github.com/sensu/sensu-puppet/pull/170](https://github.com/sensu/sensu-puppet/pull/170)

As a workaround you can set it to false (the bool):

dashboard\_user =\> false,

dashboard\_password =\> false,

And that will allow it to converge without setting a user or password.

> **···**
>
> On Tue, Mar 18, 2014 at 1:06 PM, Mojo [mojo.la@gmail.com](mailto:mojo.la@gmail.com) wrote:
> 
> > Hi,
> > 
> > In my puppet sensu config, I’m setting dashboard\_user and dashboard\_password to an empty string, which effectively turns off the dashboard auth. (I can wrap auth in nginx.)
> 
> > However the puppet module notices every time:
> > 
> > user changed ‘’ to ‘’  
> > password changed ‘’ to ‘’
> 
> > (sensu-dashboard) Triggered ‘refresh’ from 1 events
> 
> > Anyone have a workaround for that?
> 
> > Mojo

---

<div class="post-metadata">

**Author:** ![Mojo](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@Mojo](https://discourse.sensu.io/u/Mojo)\
**Post date:** [April 22, 2014, 9:02pm UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160/3 "2014-04-22T21:02:01Z")

</div>

I know this is an old thread, but I have this interesting bug. If puppet is recreating the dashboard.json file, and it has dashboard\_user =\> false and dashboard\_password =\> false, they get set in the json file as “false” which disables access. Easy enough fix, but breaks the automation. 😕

> **···**
>
> On Sunday, March 23, 2014 12:24:12 PM UTC-7, Kyle Anderson wrote:
> 
> > [https://github.com/sensu/sensu-puppet/pull/170](https://github.com/sensu/sensu-puppet/pull/170)
> 
> > As a workaround you can set it to false (the bool):
> 
> > 
> 
> > dashboard\_user =\> false,
> 
> > dashboard\_password =\> false,
> 
> > 
> 
> > And that will allow it to converge without setting a user or password.
> 
> > On Tue, Mar 18, 2014 at 1:06 PM, Mojo [moj...@gmail.com](mailto:moj...@gmail.com) wrote:
> > 
> > > Hi,
> > > 
> > > In my puppet sensu config, I’m setting dashboard\_user and dashboard\_password to an empty string, which effectively turns off the dashboard auth. (I can wrap auth in nginx.)
> 
> > > However the puppet module notices every time:
> > > 
> > > user changed ‘’ to ‘’  
> > > password changed ‘’ to ‘’
> 
> > > (sensu-dashboard) Triggered ‘refresh’ from 1 events
> 
> > > Anyone have a workaround for that?
> 
> > > Mojo
> 
> >

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [April 23, 2014, 2:10am UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160/4 "2014-04-23T02:10:33Z")

</div>

Heh, yea.

Does it actually disable access?

Now that the PR is accepted, setting those to the empty string should remove it: [https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu\_dashboard\_config/json.rb#L59](https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu_dashboard_config/json.rb#L59)

> **···**
>
> On Tue, Apr 22, 2014 at 2:02 PM, Morris Jones [mojo.la@gmail.com](mailto:mojo.la@gmail.com) wrote:
> 
> > I know this is an old thread, but I have this interesting bug. If puppet is recreating the dashboard.json file, and it has dashboard\_user =\> false and dashboard\_password =\> false, they get set in the json file as “false” which disables access. Easy enough fix, but breaks the automation. 😕
> > 
> > On Sunday, March 23, 2014 12:24:12 PM UTC-7, Kyle Anderson wrote:
> 
> > > [https://github.com/sensu/sensu-puppet/pull/170](https://github.com/sensu/sensu-puppet/pull/170)
> 
> > > As a workaround you can set it to false (the bool):
> 
> > >
> 
> > > dashboard\_user =\> false,
> 
> > > dashboard\_password =\> false,
> 
> > >
> 
> > > And that will allow it to converge without setting a user or password.
> 
> > > On Tue, Mar 18, 2014 at 1:06 PM, Mojo [moj...@gmail.com](mailto:moj...@gmail.com) wrote:
> > > 
> > > > Hi,
> > > > 
> > > > In my puppet sensu config, I’m setting dashboard\_user and dashboard\_password to an empty string, which effectively turns off the dashboard auth. (I can wrap auth in nginx.)
> 
> > > > However the puppet module notices every time:
> > > > 
> > > > user changed ‘’ to ‘’  
> > > > password changed ‘’ to ‘’
> 
> > > > (sensu-dashboard) Triggered ‘refresh’ from 1 events
> 
> > > > Anyone have a workaround for that?
> 
> > > > Mojo
> 
> > >

---

<div class="post-metadata">

**Author:** ![Mojo](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@Mojo](https://discourse.sensu.io/u/Mojo)\
**Post date:** [April 23, 2014, 4:20am UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160/5 "2014-04-23T04:20:41Z")

</div>

Unfortunately setting it to the empty string means a puppet manifest is executed on ever puppet agent run. That was the first message in the thread. Using false prevents the repetitive execution and restarts, but only after the user/password has been disabled with empty string. 🙂

Mojo

> **···**
>
> On Tue, Apr 22, 2014 at 7:10 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Heh, yea.
> 
> > Does it actually disable access?
> 
> > 
> 
> > Now that the PR is accepted, setting those to the empty string should remove it: [https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu\_dashboard\_config/json.rb#L59](https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu_dashboard_config/json.rb#L59)
> 
> On Tue, Apr 22, 2014 at 2:02 PM, Morris Jones [mojo.la@gmail.com](mailto:mojo.la@gmail.com) wrote:
> 
> > I know this is an old thread, but I have this interesting bug. If puppet is recreating the dashboard.json file, and it has dashboard\_user =\> false and dashboard\_password =\> false, they get set in the json file as “false” which disables access. Easy enough fix, but breaks the automation. 😕
> > 
> > On Sunday, March 23, 2014 12:24:12 PM UTC-7, Kyle Anderson wrote:
> 
> > > [https://github.com/sensu/sensu-puppet/pull/170](https://github.com/sensu/sensu-puppet/pull/170)
> 
> > > As a workaround you can set it to false (the bool):
> 
> > >
> 
> > > dashboard\_user =\> false,
> 
> > > dashboard\_password =\> false,
> 
> > >
> 
> > > And that will allow it to converge without setting a user or password.
> 
> > > On Tue, Mar 18, 2014 at 1:06 PM, Mojo [moj...@gmail.com](mailto:moj...@gmail.com) wrote:
> > > 
> > > > Hi,
> > > > 
> > > > In my puppet sensu config, I’m setting dashboard\_user and dashboard\_password to an empty string, which effectively turns off the dashboard auth. (I can wrap auth in nginx.)
> 
> > > > However the puppet module notices every time:
> > > > 
> > > > user changed ‘’ to ‘’  
> > > > password changed ‘’ to ‘’
> 
> > > > (sensu-dashboard) Triggered ‘refresh’ from 1 events
> 
> > > > Anyone have a workaround for that?
> 
> > > > Mojo
> 
> > >

---

<div class="post-metadata">

**Author:** ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)\
**Post date:** [April 23, 2014, 4:23am UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160/6 "2014-04-23T04:23:33Z")

</div>

Can you confirm that your version of the puppet module has that line in it?  
[https://github.com/sensu/sensu-puppet/pull/170](https://github.com/sensu/sensu-puppet/pull/170)

Should have fixed it so that it converged when set to empty string.

> **···**
>
> On Tue, Apr 22, 2014 at 9:20 PM, Mojo [mojo.la@gmail.com](mailto:mojo.la@gmail.com) wrote:
> 
> > Unfortunately setting it to the empty string means a puppet manifest is executed on ever puppet agent run. That was the first message in the thread. Using false prevents the repetitive execution and restarts, but only after the user/password has been disabled with empty string. 🙂
> 
> > Mojo
> 
> On Tue, Apr 22, 2014 at 7:10 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Heh, yea.
> 
> > Does it actually disable access?
> 
> > 
> 
> > Now that the PR is accepted, setting those to the empty string should remove it: [https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu\_dashboard\_config/json.rb#L59](https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu_dashboard_config/json.rb#L59)
> 
> On Tue, Apr 22, 2014 at 2:02 PM, Morris Jones [mojo.la@gmail.com](mailto:mojo.la@gmail.com) wrote:
> 
> > I know this is an old thread, but I have this interesting bug. If puppet is recreating the dashboard.json file, and it has dashboard\_user =\> false and dashboard\_password =\> false, they get set in the json file as “false” which disables access. Easy enough fix, but breaks the automation. 😕
> > 
> > On Sunday, March 23, 2014 12:24:12 PM UTC-7, Kyle Anderson wrote:
> 
> > > [https://github.com/sensu/sensu-puppet/pull/170](https://github.com/sensu/sensu-puppet/pull/170)
> 
> > > As a workaround you can set it to false (the bool):
> 
> > >
> 
> > > dashboard\_user =\> false,
> 
> > > dashboard\_password =\> false,
> 
> > >
> 
> > > And that will allow it to converge without setting a user or password.
> 
> > > On Tue, Mar 18, 2014 at 1:06 PM, Mojo [moj...@gmail.com](mailto:moj...@gmail.com) wrote:
> > > 
> > > > Hi,
> > > > 
> > > > In my puppet sensu config, I’m setting dashboard\_user and dashboard\_password to an empty string, which effectively turns off the dashboard auth. (I can wrap auth in nginx.)
> 
> > > > However the puppet module notices every time:
> > > > 
> > > > user changed ‘’ to ‘’  
> > > > password changed ‘’ to ‘’
> 
> > > > (sensu-dashboard) Triggered ‘refresh’ from 1 events
> 
> > > > Anyone have a workaround for that?
> 
> > > > Mojo
> 
> > >

---

<div class="post-metadata">

**Author:** ![Mojo](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@Mojo](https://discourse.sensu.io/u/Mojo)\
**Post date:** [April 23, 2014, 2:59pm UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160/7 "2014-04-23T14:59:17Z")

</div>

Quite right, my copy of the sensu puppet module is older than that pull request. Thank you!

Best regards,  
Mojo

> **···**
>
> On Tue, Apr 22, 2014 at 9:23 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Can you confirm that your version of the puppet module has that line in it?  
> > [https://github.com/sensu/sensu-puppet/pull/170](https://github.com/sensu/sensu-puppet/pull/170)
> 
> > Should have fixed it so that it converged when set to empty string.
> 
> On Tue, Apr 22, 2014 at 9:20 PM, Mojo [mojo.la@gmail.com](mailto:mojo.la@gmail.com) wrote:
> 
> > Unfortunately setting it to the empty string means a puppet manifest is executed on ever puppet agent run. That was the first message in the thread. Using false prevents the repetitive execution and restarts, but only after the user/password has been disabled with empty string. 🙂
> 
> > Mojo
> 
> On Tue, Apr 22, 2014 at 7:10 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Heh, yea.
> 
> > Does it actually disable access?
> 
> > 
> 
> > Now that the PR is accepted, setting those to the empty string should remove it: [https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu\_dashboard\_config/json.rb#L59](https://github.com/sensu/sensu-puppet/blob/master/lib/puppet/provider/sensu_dashboard_config/json.rb#L59)
> 
> On Tue, Apr 22, 2014 at 2:02 PM, Morris Jones [mojo.la@gmail.com](mailto:mojo.la@gmail.com) wrote:
> 
> > I know this is an old thread, but I have this interesting bug. If puppet is recreating the dashboard.json file, and it has dashboard\_user =\> false and dashboard\_password =\> false, they get set in the json file as “false” which disables access. Easy enough fix, but breaks the automation. 😕
> > 
> > On Sunday, March 23, 2014 12:24:12 PM UTC-7, Kyle Anderson wrote:
> 
> > > [https://github.com/sensu/sensu-puppet/pull/170](https://github.com/sensu/sensu-puppet/pull/170)
> 
> > > As a workaround you can set it to false (the bool):
> 
> > >
> 
> > > dashboard\_user =\> false,
> 
> > > dashboard\_password =\> false,
> 
> > >
> 
> > > And that will allow it to converge without setting a user or password.
> 
> > > On Tue, Mar 18, 2014 at 1:06 PM, Mojo [moj...@gmail.com](mailto:moj...@gmail.com) wrote:
> > > 
> > > > Hi,
> > > > 
> > > > In my puppet sensu config, I’m setting dashboard\_user and dashboard\_password to an empty string, which effectively turns off the dashboard auth. (I can wrap auth in nginx.)
> 
> > > > However the puppet module notices every time:
> > > > 
> > > > user changed ‘’ to ‘’  
> > > > password changed ‘’ to ‘’
> 
> > > > (sensu-dashboard) Triggered ‘refresh’ from 1 events
> 
> > > > Anyone have a workaround for that?
> 
> > > > Mojo
> 
> > >

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:05am UTC](https://discourse.sensu.io/t/puppet-sensu-dashboard-authentication/160/8 "2018-11-22T02:05:09Z")

</div>

Closed on November 22, 2018, 2:05am UTC


