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

Remove HTML form to record missing deployment #1376

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

theseanything
Copy link
Contributor

@theseanything theseanything commented Jan 26, 2024

This is rarely used, if ever, as we record deployments automatically. Removing this feature to:

  • save on maintenance
  • to simplify the use case for POST "/deployments" endpoint.

We use that endpoint also as an API to record deployments from Argo. Since fixing our CSRF protection, we've broken that endpoint as we don't include csrf protection token with API requests. If we make it solely used as an API endpoint, we can remove the need to authenticate via a session, which makes CSRF no longer an attack vector and remove the need to verify csrf protection tokens.

This is rarely used, if ever, as we record deployments automatically and
never need to manaually do this. Removing this feature to save on
maintenance and to simplify the use case for POST "/deploymenents"
endpoint. We use that endpoint also as an API to record deployments from
Argo. Since fixing our CSRF protection, we've broken that endpoint as we
don't include csrf protection token with API requests. If we make it
solely used as an API endpoint, we can remove the need to authenticate
via a session, which make CSRF no longer a attack vector and remove the
need to verify requests.
@theseanything theseanything requested a review from sengi January 26, 2024 13:37
As we no longer need to handle form submissions, we can remove logic to
handle those submissions.
@theseanything theseanything merged commit 232d17b into main Jan 26, 2024
11 checks passed
@theseanything theseanything deleted the remove-missing-deployments branch January 26, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants