Mattermost-server: Expose unsanitized configuration to plugins

Created on 20 Aug 2019  路  1Comment  路  Source: mattermost/mattermost-server

The GetConfig plugin API currently sanitizes the config (https://github.com/mattermost/mattermost-server/blob/master/app/plugin_api.go#L81), removing database credentials, etc.

Let's expose a GetUnsanitizedConfig that does not have this restriction. Note that it would be unsafe to change the behaviour of GetConfig as it exists today, in case plugins happen to forward this data to clients, hence the proposal for a new API.

Looking to expand Plugin API here: https://github.com/mattermost/mattermost-server/blob/master/plugin/api.go#L16

Notes: Jira ticket


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

AreIntegrations Easy Good First Issue Help Wanted PR Exists TecGo

Most helpful comment

I have a little time so I'd like to take this task

>All comments

I have a little time so I'd like to take this task

Was this page helpful?
0 / 5 - 0 ratings