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

Be able to revoke cspp api keys from the hubot module #34

Open
stahnma opened this issue Feb 8, 2024 · 0 comments
Open

Be able to revoke cspp api keys from the hubot module #34

stahnma opened this issue Feb 8, 2024 · 0 comments
Labels
cspp Collaborative Sh*t Posting Pipeline hubot hubot modules in the monorepo

Comments

@stahnma
Copy link
Owner

stahnma commented Feb 8, 2024

suggested syntax:

hubot cspp api revoke - revoke a specific token (optional)

hubot cspp api revoke all - revoke all tokens assigned to this id


The /api endpoint DELETE requires an API header: "X-API-KEY: $API_KEY"
To do that over slack, you'd have to know your key and paste it in there. I'd like to figure out a secure way to not have to specify the key but somehow use slack for the authentication.

An option would be to send something like X-SLACK-ID in the header, but that is very spoofable. This might mean we need some type of PSK for hubot and it does the header injection based on the slack envelop, but then there's a secret running in the bot that is effectively an admin on cspp.

Trying to think of other secure methods to make DELETE an easy request from the slack API.

Another options: The CSPP DMs you a generated code and you send that over or something?

@stahnma stahnma added cspp Collaborative Sh*t Posting Pipeline hubot hubot modules in the monorepo labels Feb 8, 2024
@stahnma stahnma modified the milestone: CSPP - In production Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cspp Collaborative Sh*t Posting Pipeline hubot hubot modules in the monorepo
Projects
None yet
Development

No branches or pull requests

1 participant