---
title: "Discussion on \"Hiding Sensitive Information with Environmental Variables in Ruby\" | Hashnode"
description: "Discussion on \"Hiding Sensitive Information with Environmental Variables in Ruby\". When I learned about user sessions in Sinatra. It involves setting set :sessions, true and assigning a secret key or word to that session.\nWhich had me thinking, what is the purpose of a secret word if it can be seen in a public Github repository? 🤔..."
url: "https://hashnode.com/posts/hiding-sensitive-information-with-environmental-variables-in-ruby/5f545566d6e3120a42378166"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Hiding Sensitive Information with Environmental Variables in Ruby](https://shannoncrabill.hashnode.dev/hiding-sensitive-information-with-environmental-variables-in-ruby?utm_source=hashnode&utm_medium=feed)

When I learned about user sessions in Sinatra. It involves setting set :sessions, true and assigning a secret key or word to that session. Which had me thinking, what is the purpose of a secret word if it can be seen in a public Github repository? 🤔...

Sep 6, 2020 · 3 min read · shannoncrabill.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#ruby](https://hashnode.com/tag/ruby)
-   [#best-practices](https://hashnode.com/tag/best-practices)

## Written by

[Shannon Crabill](https://hashnode.com/@shannoncrabill)

@shannoncrabill · Baltimore, MD

  
[View profile](https://hashnode.com/@shannoncrabill)

Full Stack Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
