Quick Installation of Vault and Consul

Posted by Unknown on

I would like to cover a quick and simple setup of Consul and Vault for learning purpose. These steps short circuit a real world advanced setup options.

Download the proper package for OS and architecture from

Download Consul https://www.consul.io/downloads.html
Download Vault https://www.vaultproject.io/downloads.html

Consul Setup -
write a shell or batch file with following command
E.g. consul_start.bat with following content
consul agent -ui -server -data-dir mydata -advertise 127.0.0.1 -bootstrap-expect 1
Vault Setup -
write a shell or batch file with following command
E.g. consul_start.bat with following content
vault server -config=vault-example.hcl
vault-example.hcl content
backend "consul" {
address="127.0.0.1:8500"
path="vault"
}
listener "tcp" {
  address = "127.0.0.1:8200"
  tls_disable = 1
}
disable_mlock = true
C:\_workarea_\tools\vault_0.9.5_windows_amd64>vault operator init
[0;31mError initializing: Put https://127.0.0.1:8200/v1/sys/init: http: server gave HTTP response to HTTPS client [0m

The default address of the client uses https. Just set the -address parameter or set the VAULT_ADDRESS env var and you'll be good to go.
set VAULT_ADDR=http://127.0.0.1:8200
vault operator init -key-shares=5 -key-threshold=2

-key-threshold - This defines the number of keys required to unseal vault
-key-shares - This defines number of keys that should be generated during initialization

[0;0mUnseal Key 1: 45MbjNghzYmFjaagC5Fcx4qj5E2jOl5ZWYByFctXV+T3 [0m
[0;0mUnseal Key 2: Z/TffCSL0mUw4NbMbHpf0dEjGge5iSZja6C7dEoY1AP1 [0m
[0;0mUnseal Key 3: C5YvqiPS20VgtiPPDuqgEwsAt6+qPE0+qO7P8zyqCEJf [0m
[0;0mUnseal Key 4: WLazf5dhHIQUSnOLLi5z29WFaLwD9ap9XASKbgHXXuc0 [0m
[0;0mUnseal Key 5: O1fgO9aT38klIVemz6q5WCXlpQaFS4jjxByaACco9Ga4 [0m
[0;0m [0m
[0;0mInitial Root Token: 4360d91f-cf9d-a33f-45ca-2bdc699caef1 [0m

Make a note of at least two Unseal keys and your root keys

unseal is a one time process as long as your backend does not change.

Now, let us unseal by running this command twice, provide atleast two unique unseal key from the init operation
vault operator unseal
Unseal Key (will be hidden):
Login, by making use of Root token that was generated during init process


vault login <Root Key>
Now , let us run commands to store and retrieve key/value sercrets
vault.exe write secret/my-app/s3password value=s3qwqwq
vault.exe read secret/my-app/s3password
You may also login from the UI and navigate to view the stored key/values


46 comments:

  1. The Car featured content undergoes a thorough review process to ensure that it meets the highest standards in order to serve as the best car spare parts and fit the goals.

    Car Accessories in OMR

    ReplyDelete
  2. Make Money Online With in Text Advertising
    This advertising network does not require initial investment making it the best option to generate income online. The app is responsive to any mobile device making it convenient for those who are always on the road. Joining the network is easy. You only have to visit their official page and click on the join us option.To know more:https://www.namanmodi.com/infolinks-review/

    ReplyDelete
  3. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.

    Restaurant in OMR
    Apartments in OMR
    Villas in OMR
    Resorts in OMR

    ReplyDelete
  4. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.

    Herbalife in Chennai
    Wellnesscentres in Chennai
    Weight loss in Chennai
    Weight gain in Chennai

    ReplyDelete
  5. The Car featured content undergoes a thorough review process to ensure that it meets the highest standards in order to serve as the best car spare parts and fit the goals. https://topacademictutors.com/write-my-essay/

    ReplyDelete
  6. Your site is amazing and your blogs are informative and knlowledgeble to my websites.This is one of the best tips in my life. I have in quite some time.Nicely written and great info.Thanks to share the more informations.

    Deals in OMR
    Offers in OMR
    Deals in OMR
    Offers in Chennai
    Apartments in OMR
    Car Wash in OMR
    Auto Motors in OMR
    Used Cars in OMR
    Car Accessories in OMR

    ReplyDelete
  7. The Car featured content undergoes a thorough review process to ensure that it meets the highest standards in order to serve as the best car spare parts and fit the goals. https://liveassignmenthelp.com
    https://topacademictutors.com/economics-homework-help/

    ReplyDelete
  8. Your site is amazing and your blogs are informative and knowledgeable to my websites.This is one of the best tips in my life.I have in quite some time.Nicely written and great info.Thanks to share the more information's.

    Seo Experts
    Seo Company
    Web Designing Company
    Digital Marketing
    Web Development Company
    App Development

    ReplyDelete
  9. As you have now understood the usage of ‘Record and Playback’ tool, the following are the different posts using which you can explore the functioning of ‘Selenium IDE’
    selenium Training in chennai

    ReplyDelete

  10. I just see the post i am so happy the post of information's.So I have really enjoyed and reading your blogs for these posts.Any way I’ll be subscribing to your feed and I hope you post again soon.
    best selenium training institute in hyderabad
    best selenium online training institute in hyderabad
    best institute for selenium training in hyderabad
    best selenium training institute in hyderabad

    ReplyDelete
  11. I just see the post i am so happy the post of information's.So I have really enjoyed and reading your blogs for these posts.Any way I’ll be subscribing to your feed and I hope you post again soon.
    best selenium training institute in hyderabad
    best selenium online training institute in hyderabad
    best institute for selenium training in hyderabad
    best selenium training institute in hyderabad

    ReplyDelete
  12. Thanks for such a great article here. I was searching for something like this for quite a long time and at last I’ve found it on your blog. It was definitely interesting for me to read about their market situation nowadays. Well written article Thank You for Sharing with Us pmp training fee | pmp certification course in chennai | best pmp training institute in chennai| | pmp training class in chennai \ pmp training fee

    ReplyDelete
  13. Thanks for your great and helpful presentation I like your good service. I always appreciate your post. That is very interesting I love reading and I am always searching for informative information like this.AngularJS Training in Chennai | Best AngularJS Training Institute in Chennai|

    ReplyDelete
  14. Wow!! Really a nice Article. Thank you so much for your efforts. Definitely, it will be helpful for others. I would like to follow your blog. Share more like this. Thanks Again.
    iot training in Chennai | Best iot Training Institute in Chennai

    ReplyDelete
  15. This article is unique and interesting. thanks for your share. I have been meaning to write something like this on my website and you have given me an idea.

    ReplyDelete
  16. Nice blog..! I really loved reading through this article. Thanks for sharing such a
    amazing post with us and keep blogging... iot training in chennai | iot training in chennai quora | iot training and placement in chennai | iot training center in chennai | best iot training centre in chennai

    ReplyDelete
  17. Nice blog..! I really loved reading through this article. Thanks for sharing such a amazing post with us and keep blogging... best angularjs training institute in chennai | angularjs training in omr | angularjs training in chennai | angularjs training in velachery |

    ReplyDelete
  18. Nice blog..! I really loved reading through this article. Thanks for sharing such a amazing post.

    Custom Packaging Boxes USA

    ReplyDelete
  19. Thanks for sharing such beautiful blog with us. I hope you will share more info something like this. Want more like this visit Best Outsourcing Company in India. I really would like to thank for posting this blog

    ReplyDelete
  20. Unique article and I really enjoyed by reading your blog post.

    ReplyDelete
  21. An amazing web journal I visit this blog, it's unbelievably wonderful. Oddly, in this blog's content made without a doubt and reasonable. The substance of data is informative.
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete
  22. Avg.com/retail - Visit www.avg.com/retail to Download AVG Retail & Activate Online. Check install avg with license number steps with avg activation code.

    For more information: avg.com/retail

    Install your HP printer at 123.hp.com/setup. Quick 123hp wireless setup, airprint, eprint & troubleshooting. Download driver for 123 HP from 123-hp-com.com.

    For more information: 123.hp.com/setup

    ReplyDelete
  23. i really impress your work. Thanks a ton for sharing this information in this article.
    Custom Boxes

    ReplyDelete
  24. thanks for the post...

    We have been passionate about crafting iconic Eurasian circuits specially Caucasus (Armenia, Azerbaijan & Georgia), Central Asia (Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan and Uzbekistan) and Eastern Europe (Russia, Serbia, and Ukraine) for more than 8 years.

    Adventure Tour Packages | Ukraine Tour Package | Trekking Tour Packages | Eastern Europe Tours| Silk Route Tour Packages| Russia Tour Package | Almaty Tour Package | Tashkent Group Packages

    ReplyDelete
  25. Quickbooks enterprise support

    Use QuickBooks Enterprise Support Team to fix QuickBooks Enterprise Issues. Please contact QuickBooks Support Team (+1 (833) 400-1001) for help from a certified QuickBooks specialist.

    ReplyDelete
  26. Quickbooks enterprise support number

    Call +1 (833) 400-1001 to solve QuickBooks Enterprise issues through QuickBook Enterprise Support. Please contact QuickBooks Support Team (+1 (833) 400-1001) for help from a certified QuickBooks specialist.

    ReplyDelete
  27. Quickbooks enterprise support Phone number
    Call the QuickBooks Enterprise phone number for 24 hours support for the Enterprise QuickBook. We are ready to solve QuickBooks Enterprise issues through the QuickBooks Enterprise Support Group. Please contact QuickBook Support Team (+1 (833) 400-1001) for help from a certified QuickBooks specialist.

    ReplyDelete
  28. Canon Printer Tech Support Phone Number - Is it accurate to say that you are hunting down Canon printer bolster? Well you have arrived on the correct page on the grounds that the Canon Printer Support Phone Number is presently accessible to fix all your printer related issues. Canon is a worldwide brand that is generally known for its printer segments at sensible expense.

    Canon fabricates such printers that satisfies all your printing necessities and gives you the best printing arrangements. Yet, here and there it can fall into a few issues and mistakes that can influence your work. To fix the issues, you can call us at our Canon Printer Support Phone Number and the help group will be there to help you in a matter of moments.


    HP Printer Tech Support Phone Number | QuickBooks Tech Support Phone Number | Norton Tech Support Phone Number

    ReplyDelete
  29. This comment has been removed by the author.

    ReplyDelete
  30. Quickbooks is designed specifically for users of any Operating system. Taking into consideration that there is a large group of spectators, QuickBooks has planned to bring QuickBooks clients. For support services, you can get help from Quickbooks Support Phone Number +1-800-901-6679.

    ReplyDelete
  31. Quicken is one amongst the most famous personal finance software across the world. This software is rather old and still enjoys a top position. Launched in the year 1983, Quicken has undergone a tremendous change by now. It’s easy to navigate, allows you to manage your budget and investment details, comes with inbuilt debt reduction tools, and will remind you when your bills are due. Are you considering getting Quicken?Dial +1-855-686-6166 for Quicken support, and they will help you set it up. The Quicken Support Phone Number is 24 hours available to fix your problems regarding quicken, Call at our toll free quicken support number +1-855-686-6166.

    ReplyDelete
  32. QuickBooks Support Phone Number
    QuickBooks is one of the most popular Software – QuickBooks is a personal finance management software, which is developed and designed by QuickBooks Inc. It is the most popular and easy to use budget management and financial tracking software. It allows users to manage their finances flawlessly without any interruption. It offers high-tech advanced security and deluge of top-notch features and it is a global brand which is widely used in USA and Canada. QuickBooks is user-friendly software and easily compatible with desktop and mobile phone applications. It is an appropriate tool for home and businesses. Moreover, it’s helpful for recording and categorizing expenses and incomes by creating detailed reports and can also provide information regarding banks and credit card balances. The main purpose of this software is to provide people with much-needed mechanisms to take care of their finances on their own. Apart from these features, the QuickBooks support number is the center of attraction for users toll free number +1-888-422-3444.

    ReplyDelete