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

Support creation of custom API endpoints to execute commands #118

Open
clockworksoul opened this issue Oct 13, 2021 · 0 comments
Open

Support creation of custom API endpoints to execute commands #118

clockworksoul opened this issue Oct 13, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@clockworksoul
Copy link
Member

clockworksoul commented Oct 13, 2021

Cog had a really nifty feature that allowed privileged users to create custom API endpoints -- additions to the Cog REST API -- that could be used to trigger commands (Cog called them triggers, but they’re just custom API endpoints). This allowed Cog to be integrated into CI pipelines or other workflows without having to send text to Slack to trigger commands.

  • Important question: how would security for these endpoints work? (At the very least they'll require an API key)
  • Cog triggers were defined on the command line, with the command to execute. We’d require them to be defined via config (including the command to be triggered, and where to direct the output).
    • Should we allow the base config to define a default output chat+channel?
  • The executed command would have its own environment variables
@clockworksoul clockworksoul added the enhancement New feature or request label Oct 13, 2021
@clockworksoul clockworksoul changed the title Support creation of custom API webhooks to execute commands Support creation of custom API endpoints to execute commands Oct 13, 2021
@clockworksoul clockworksoul added this to the 0.10.0 milestone Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant