Skip to content

Remove check for client secret length#419

Merged
mickmister merged 5 commits intomasterfrom
client-secret-length
Jan 17, 2024
Merged

Remove check for client secret length#419
mickmister merged 5 commits intomasterfrom
client-secret-length

Conversation

@mickmister
Copy link
Copy Markdown
Contributor

Summary

According to #412, GitLab is now providing client secrets greater than 64 characters. This PR makes it so we don't check the length anymore. The requirements in the external system could change at any point, so we should probably leave that validation out of our system.

Ticket Link

Fixes #412

@mickmister mickmister added the 2: Dev Review Requires review by a core committer label Dec 13, 2023
@mickmister mickmister changed the title Support client secret values longer than 64 characters Remove check for client secret length Dec 13, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (98fdf4f) 33.40% compared to head (cf308d3) 33.40%.

Files Patch % Lines
server/flow.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #419   +/-   ##
=======================================
  Coverage   33.40%   33.40%           
=======================================
  Files          22       22           
  Lines        3979     3979           
=======================================
  Hits         1329     1329           
  Misses       2519     2519           
  Partials      131      131           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Collaborator

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

Relaxing the validation is fine, but there should some minimal checks

@mickmister mickmister requested a review from hanzei December 14, 2023 19:04
@mickmister mickmister requested a review from hanzei December 14, 2023 19:29
@mickmister
Copy link
Copy Markdown
Contributor Author

/update-branch

Copy link
Copy Markdown

@raghavaggarwal2308 raghavaggarwal2308 left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏽

@mickmister mickmister added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Jan 17, 2024
@mickmister mickmister merged commit b729b66 into master Jan 17, 2024
@mickmister mickmister deleted the client-secret-length branch January 17, 2024 15:54
This was referenced Jan 24, 2024
@hanzei hanzei added this to the v1.8.1 milestone Jan 25, 2024
raghavaggarwal2308 pushed a commit to Brightscout/mattermost-plugin-gitlab that referenced this pull request Feb 14, 2024
* support client secrets longer than 64 chars

* remove length check

* change client secret length check to assume at least 64 chars

* change wording of error message
mickmister added a commit that referenced this pull request Feb 20, 2024
* Remove check for client secret length (#419)

* support client secrets longer than 64 chars

* remove length check

* change client secret length check to assume at least 64 chars

* change wording of error message

* [GH-321]:Fixed issue #321 'Wrong notification in case of assigned prs' (#395)

Co-authored-by: Abhishek Verma <abhishek.verma@brightscout.com>
Co-authored-by: ayusht2810 <ayush.thakur@brightscout.com>

* [MI-3405] Fix issues #271: Sidebar header MR count should show assigned MRs instead of opened MRs (#39) (#394)

* [MI-3405] Get proper data in sidebar buttons:
1. Get assigned PRs instead of the user's PRs.
2. Updated the name of sidebar buttons.
3. Updated API path.
4. Updated the name of API functions.
5. Updated the name of unreads to todos in the code.

* [MI-3405] Updated name of variables and functions

* [MI-3405] Updated icons in sidebar

* [MI-3405] Updated documentation

* [MI-3405] Reverted package-lock file changes

* [MI-3405] Review fixes

* [MM-42] Fix CI error: implicit memory aliasing (#429)

* [MI-3588] Fix issue: Image attachment breaking in comment notification (#406)

* [MI-3719] Send the users an ephemeral message if they try to connect their account via MM desktop app (#416)

* [MI-3719] Send the users an ephemeral message if they try to connect their account via MM desktop app

* [MI-3713] Handles the following cases as well for desktop app:
1. Connecting using the button from the teams sidebar.
2. Connecting using the button from RHS.

* [MI-3719] Review fixes

* [MI-3719] Review fixes

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* [MI-3719] Fix lint error

---------

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>

* Fix lint errors

* Update plugin version

---------

Co-authored-by: Michael Kochell <6913320+mickmister@users.noreply.github.com>
Co-authored-by: kshitij katiyar <90389917+Kshitij-Katiyar@users.noreply.github.com>
Co-authored-by: Abhishek Verma <abhishek.verma@brightscout.com>
Co-authored-by: ayusht2810 <ayush.thakur@brightscout.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4: Reviews Complete All reviewers have approved the pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gitlab OAuth Application secrets are now longer than 64 characters

3 participants