Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

add slack verification #224

Merged
merged 3 commits into from
Dec 14, 2021
Merged

add slack verification #224

merged 3 commits into from
Dec 14, 2021

Conversation

itsthejoker
Copy link
Member

Relevant issue: N/a

Description:

Need to actually verify that requests coming in on the slack endpoint actually come from slack. This is a security hole and also since I'm about to implement a command that modifies data, we need to be extra sure. The actual process for verifying is a pain in the butt, but I think that this is accurate.

Checklist:

  • Code Quality
  • Pep-8
  • Tests (if applicable)
  • Success Criteria Met (I hope)
  • Inline Documentation
  • Wiki Documentation (if applicable)

@itsthejoker itsthejoker requested a review from a team as a code owner December 14, 2021 01:18
@itsthejoker
Copy link
Member Author

Update: this does appear to actually work

Copy link
Contributor

@TimJentzsch TimJentzsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the replay attack prevention works, but otherwise it should be good

api/tests/test_slack.py Show resolved Hide resolved
api/views/slack_helpers.py Show resolved Hide resolved
@itsthejoker
Copy link
Member Author

The replay prevention is straight from Slack's documentation, so it's something we can add a test for but beyond that I'm taking their word.

@itsthejoker itsthejoker merged commit 149997b into master Dec 14, 2021
@itsthejoker itsthejoker deleted the secure-slack branch December 14, 2021 16:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants