GithubHelp home page GithubHelp logo

Comments (1)

a1300 avatar a1300 commented on June 18, 2024

Hi @freak12techno

I had a similar problem. I solved it by encrypting the chat_id with ansible-vault in the repo. If you choose a strong password it should be no problem to store a secret in the repo.

How encrypted strings with ansible-vault look like in your repo:

telegram_chat_id: !vault |
    $ANSIBLE_VAULT;1.1;AES256
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

To create the ansible-vault string I used:

set +o history

echo -n 'nobody_should_see_this' | ansible-vault encrypt_string
New Vault password: 
Confirm New Vault password: 

set -o history

I encrypted -111111111 with demo password mysecretpassword:

user@machine:~$ echo -n '-111111111' | ansible-vault encrypt_string
New Vault password: 
Confirm New Vault password: 
Reading plaintext input from stdin. (ctrl-d to end input, twice if your content does not already have a newline)

Encryption successful
!vault |
          $ANSIBLE_VAULT;1.1;AES256
          36616365666234623530343532303531383033303563646133373730373862633836376461313531
          6333653435383465303830396238343865336138643031380a393933656234356239376638343138
          30663439393334336264303266383266343963383130303936323561373566623130393730326232
          3435346637303065310a646361363833376461396635666233633066336438646138306465306337
          6564

from alertmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.