Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy Bot #1

Open
NishkarshRaj opened this issue Mar 29, 2020 · 9 comments
Open

Deploy Bot #1

NishkarshRaj opened this issue Mar 29, 2020 · 9 comments

Comments

@NishkarshRaj
Copy link
Member

Deploy the bot so that it is always running and does not need manual execution.

@kudoabhijeet
Copy link
Contributor

Which cloud platform would you recommend?

@NishkarshRaj
Copy link
Member Author

@kudoabhijeet AWS for two reasons

  1. We get free credits for AWS with our PRO Git tag due to our college ID
  2. AWS is compatible to be automated with GitHub Actions.

If you guys complete the code for the bot with access keys here (Ik thats not recommended but we have to) I can help setup actions for this repo.

@kudoabhijeet
Copy link
Contributor

For Access keys, we can export keys from a virtual env such as EC2 instance and receive them in configuration file in the repo. Please revert if it is feasible. @NishkarshRaj @MonitK

@MonitK
Copy link

MonitK commented Apr 5, 2020

@kudoabhijeet yes it is doable, but I think instance that you launch for bot, might use up entire free credits. There has to be an alternative way to do it.

@NishkarshRaj
Copy link
Member Author

The easiest way to make keys secure and the best way to do so here would be to encrypt them.
Let's take it to the next step #DevSecOps
Store the encrypted keys in a file in same directory as the source code and whenever the bot is running, it would first fetch them via file handling (create function 1) and then decrypt it (create function 2).
Only the bot must be deployed on the cloud. As @MonitK said, keys should not be.
Only executables and applications to be deployed.

@kudoabhijeet
Copy link
Contributor

Got it!. We decrypt the keys after fetching it from an encrypted file and then pass it to the OAuthHandler. Am I going in the right direction? @NishkarshRaj @MonitK :)
#DevSecOps

@NishkarshRaj
Copy link
Member Author

Yes @kudoabhijeet you are!
But make sure you don't hard carry the project. DevOps means collaboration. Ask others to help as well or else even if we build an excellent project, it won't be considered as a DevOps project :(

@kudoabhijeet
Copy link
Contributor

Okay! :)

@kshitizsaini113
Copy link
Member

The encryption program for the bot is complete and a pull request is generated for the same.
You may have a look @NishkarshRaj @MonitK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants