Skip to content

Deploy Bot #1

Open
Open

Description

@NishkarshRaj

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

Activity

  1. kudoabhijeet commented on Mar 30, 2020

    @kudoabhijeet
    Contributor

    Which cloud platform would you recommend?

  2. NishkarshRaj commented on Mar 30, 2020

    @NishkarshRaj
    MemberAuthor

    @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.

  3. kudoabhijeet commented on Apr 4, 2020

    @kudoabhijeet
    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

  4. MonitK commented on Apr 5, 2020

    @MonitK

    @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.

  5. NishkarshRaj commented on Apr 5, 2020

    @NishkarshRaj
    MemberAuthor

    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.

  6. kudoabhijeet commented on Apr 5, 2020

    @kudoabhijeet
    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

  7. NishkarshRaj commented on Apr 5, 2020

    @NishkarshRaj
    MemberAuthor

    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 :(

  8. kudoabhijeet commented on Apr 5, 2020

    @kudoabhijeet
    Contributor

    Okay! :)

  9. kshitizsaini113 commented on Apr 8, 2020

    @kshitizsaini113
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions