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

[MM-57194] Mark confidential settings as secrets #811

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

hanzei
Copy link
Contributor

@hanzei hanzei commented Aug 15, 2024

Summary

Make use of mattermost/mattermost#27986 by marking the following config settings as secrets:

  • GitHubOAuthClientSecret
  • WebhookSecret
  • EncryptionKey

The other changes are needed due to the breaking changes in mattermost/mattermost#26471.

GitHubOAuthClientID is shown in plain text in the GitHub UI, so I don't think it needs to be obfuscated.

Screenshot from 2024-08-15 13-09-18

Ticket Link

https://mattermost.atlassian.net/browse/MM-57194

@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Aug 15, 2024
@hanzei hanzei requested a review from wiggin77 as a code owner August 15, 2024 11:27
@hanzei hanzei force-pushed the MM-57194_support-packet_plugin-secrets branch from f3d7ee4 to 65fa789 Compare August 15, 2024 11:46
server/plugin/flows.go Outdated Show resolved Hide resolved
Copy link
Member

@wiggin77 wiggin77 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@hanzei
Copy link
Contributor Author

hanzei commented Sep 10, 2024

Copy link

@AayushChaudhary0001 AayushChaudhary0001 left a comment

Choose a reason for hiding this comment

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

This PR has been tested with the help of mattermost/mattermost#27986 as it requires some changes in the server.
All the secrets and keys are shown encrypted in the plugin settings, LGTM. Approved.

@hanzei hanzei added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Sep 12, 2024
@hanzei hanzei added this to the v2.4.0 milestone Sep 12, 2024
@hanzei hanzei merged commit 41ddb70 into master Sep 12, 2024
9 checks passed
@hanzei hanzei deleted the MM-57194_support-packet_plugin-secrets branch September 12, 2024 17:23
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.

3 participants