mirror of
https://github.com/nextcloud/hackerone_bot.git
synced 2025-10-26 18:08:22 +01:00
No description
|
|
||
|---|---|---|
| .gitignore | ||
| hackerone.php | ||
| hackerone.sample.json | ||
| LICENSE | ||
| README.md | ||
HackerOne Nextcloud Talk bot
A bot that posts HackerOne reports into a Nextcloud Talk chat room.
Setup
-
Create the conversation for your security team
-
Deploy
hackerone.phpinside the webroot on a server -
Deploy
hackerone.sample.jsonrenamed tohackerone.jsonoutside of the webroot on a server- Use the parent directory or
- Adjust the line
$configData = file_get_contents('../hackerone.json');inhackerone.php
-
Populate
hackerone.json:- Generate a 64 character long secrets and store as:
nextcloud-secret - Generate a 64 character long different secrets and store as:
hackerone-secret - Add your Nextcloud server URL as
server - Add your conversation token from step 1. as
conversation
- Generate a 64 character long secrets and store as:
-
Navigate to your HackerOne program webhooks: https://hackerone.com/nextcloud/webhooks
-
Configure a webhook:
- Webhook name: Talk bot
- Payload URL: Pointing to the
hackerone.phpfrom step 2. - Secret:
hackerone-secretfrom step 4.2 - Which events should trigger this webhook? - Select:
- Report created
- Report new
-
Install the bot:
occ talk:bot:install \ --no-setup \ --feature=response \ 'HackerOne' \ '<nextcloud-secret from step 4.1>' \ '<Payloard URL from step 5.2>' -
Find out the bot ID:
occ talk:bot:list -
Configure the bot for your conversation from step 1.:
occ talk:bot:setup \ '<id from step 8.>' \ '<token from step 4.4>'