# Discourse-setup generates malformed YAML if password contains ':'

**URL:** <https://meta.discourse.org/t/discourse-setup-generates-malformed-yaml-if-password-contains/45247>\
**Category:** Bug\
**Created:** [4 Giugno 2016, 1:41pm UTC](https://meta.discourse.org/t/discourse-setup-generates-malformed-yaml-if-password-contains/45247 "2016-06-04T13:41:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [4 Giugno 2016, 10:49pm UTC](https://meta.discourse.org/t/discourse-setup-generates-malformed-yaml-if-password-contains/45247/2 "2016-06-04T22:49:06Z")

</div>

Yes, excellent point! I was afraid to put this in the raw YAML file to avoid the implied “who’s on first” problem of whether double quotes are part of the password or not. This came up before and we discussed it, but decided to leave it as a comment.

https://www.youtube.com/embed/kTcRRaXV-fg?feature=oembed&wmode=opaque

But within `discourse-setup` adding double quotes around the `DISCOURSE_SMTP_PASSWORD` is a no-brainer and can be automated, so I’ve done that:

[https://github.com/discourse/discourse\_docker/commit/6a9f41e996d3c2b10f1151159b54bfd4f649e10d](https://github.com/discourse/discourse_docker/commit/6a9f41e996d3c2b10f1151159b54bfd4f649e10d)

(I don’t think the other fields will typically contain any unusual characters and thus don’t benefit from this kind of protection like password field does.)

---

_[View the full topic](https://meta.discourse.org/t/discourse-setup-generates-malformed-yaml-if-password-contains/45247)._
