The chatops bot of aventer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.yaml.sample 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. # Go-avbot Configuration File
  2. #
  3. # This file provides an alternative way to configure go-avbotwhich does not involve HTTP APIs.
  4. #
  5. # This file can be supplied to go-avbotby the environment variable `CONFIG_FILE=config.yaml`.
  6. # It will force go-avbotto operate in "config" mode. This means:
  7. # - go-avbotwill ONLY use the data contained inside this file.
  8. # - All of Go-NEB's /admin HTTP listeners will be disabled. You will be unable to add new services at runtime.
  9. # - The environment variable `DATABASE_URL` will be ignored and an in-memory database will be used instead.
  10. #
  11. # This file is broken down into 4 sections which matches the following HTTP APIs:
  12. # - /configureClient
  13. # - /configureAuthRealm
  14. # - /configureService
  15. # - /requestAuthSession (redirects not supported)
  16. # The list of clients which go-avbotis aware of.
  17. # Delete or modify this list as appropriate.
  18. # See the docs for /configureClient for the full list of options:
  19. # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ClientConfig
  20. clients:
  21. - UserID: "@goavbot:localhost"
  22. AccessToken: "MDASDASJDIASDJASDAFGFRGER"
  23. HomeserverURL: "http://localhost:8008"
  24. Sync: true
  25. AutoJoinRooms: true
  26. DisplayName: "Go-AVBOT!"
  27. # The list of realms which go-avbotis aware of.
  28. # Delete or modify this list as appropriate.
  29. # See the docs for /configureAuthRealm for the full list of options:
  30. # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureAuthRealmRequest
  31. realms:
  32. - ID: "github_realm"
  33. Type: "github"
  34. Config: {} # No need for client ID or Secret as go-avbotisn't generating OAuth URLs
  35. # The list of *authenticated* sessions which go-avbotis aware of.
  36. # Delete or modify this list as appropriate.
  37. # The full list of options are shown below: there is no single HTTP endpoint
  38. # which maps to this section.
  39. # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#Session
  40. sessions:
  41. - SessionID: "your_github_session"
  42. RealmID: "github_realm"
  43. UserID: "@YOUR_USER_ID:localhost"
  44. Config:
  45. # Populate these fields by generating a "Personal Access Token" on github.com
  46. AccessToken: "YOUR_GITHUB_ACCESS_TOKEN"
  47. Scopes: "admin:org_hook,admin:repo_hook,repo,user"
  48. # The list of services which go-avbotis aware of.
  49. # Delete or modify this list as appropriate.
  50. # See the docs for /configureService for the full list of options:
  51. # https://matrix-org.github.io/go-neb/pkg/github.com/matrix-org/go-neb/api/index.html#ConfigureServiceRequest
  52. services:
  53. - ID: "echo_cmd_service"
  54. Type: "echo"
  55. UserID: "@goavbot:localhost"
  56. Config:
  57. - ID: "invoice_cmd_service"
  58. Type: "invoice"
  59. UserID: "@goavbot:localhost"
  60. Config:
  61. AllowedUsers: "@YOUR_USER_ID:localhost,@ANOTHER_USER_ID:localhost"
  62. - ID: "pentest_cmd_service"
  63. Type: "pentest"
  64. UserID: "@goavbot:localhost"
  65. Config:
  66. OpenVASIP: "127.0.0.1"
  67. OpenVASPort: "9390"
  68. OpenVASUsername: "admin"
  69. OpenVASPassword: "admin"
  70. AllowedUsers: "@YOUR_USER_ID:localhost,@ANOTHER_USER_ID:localhost"
  71. - ID: aws_cmd_service"
  72. Type: "aws"
  73. UserID: "@goavbot:localhost"
  74. Config:
  75. Users:
  76. "@YOUR_USER_ID:localhost":
  77. AccessKey: "YOUR_AWS_ACCESS_KEY"
  78. SecretAccessKey: "YOUR_AWS_SECRET_ACCESS_KEY"
  79. AccessToken: "YOUR_AWS_TOKEN (OPTIONAL)"
  80. Region: "us-west-2"
  81. "@ANOTHER_USER_ID:localhost":
  82. AccessKey: "YOUR_AWS_ACCESS_KEY"
  83. SecretAccessKey: "YOUR_AWS_SECRET_ACCESS_KEY"
  84. AccessToken: "YOUR_AWS_TOKEN (OPTIONAL)"
  85. Region: "us-west-2"
  86. - ID: "github_cmd_service"
  87. Type: "github"
  88. UserID: "@goavbot:localhost" # requires a Syncing client
  89. Config:
  90. RealmID: "github_realm"
  91. # Make sure your BASE_URL can be accessed by Github!
  92. - ID: "github_webhook_service"
  93. Type: "github-webhook"
  94. UserID: "@another_goavbot:localhost"
  95. Config:
  96. RealmID: "github_realm"
  97. ClientUserID: "@YOUR_USER_ID:localhost" # needs to be an authenticated user so go-avbotcan create webhooks.
  98. Rooms:
  99. "!someroom:id":
  100. Repos:
  101. "matrix-org/synapse":
  102. Events: ["push", "issues"]
  103. "matrix-org/dendron":
  104. Events: ["pull_request"]
  105. "!anotherroom:id":
  106. Repos:
  107. "matrix-org/synapse":
  108. Events: ["push", "issues"]
  109. "matrix-org/dendron":
  110. Events: ["pull_request"]
  111. - ID: "travis_webhook_service"
  112. Type: "wekan"
  113. UserID: "@another_goavbot:localhost"
  114. Config:
  115. Rooms:
  116. "!someroom:id":
  117. Boards:
  118. "1":
  119. template: ""
  120. "2":
  121. template: ""
  122. "!someroom:id":
  123. Boards:
  124. "3":
  125. template: ""
  126. "5":
  127. template: ""