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

Hide sensitive information in webhook urls #84

Closed
eclipse-csi-bot opened this issue Jul 25, 2023 · 1 comment
Closed

Hide sensitive information in webhook urls #84

eclipse-csi-bot opened this issue Jul 25, 2023 · 1 comment

Comments

@eclipse-csi-bot
Copy link
Contributor

In GitLab by @netomi on Jul 25, 2023, 09:14

Currently, the webhook url is used as key for associating a webhook defined in the configuration to available live webhooks.
In some cases, the webhook url might contains tokens, e.g. as query parameter, that we do not want to expose to the public as these tokens might be misused. We need to find a way to store the query parameters in a separate field that can be resolved using a credential provider to avoid exposing this information. Example: adoptium/.eclipsefdn#13

@eclipse-csi-bot
Copy link
Contributor Author

In GitLab by @netomi on Dec 11, 2023, 09:48

One idea would be to add a url_part field that would be appended to the url if not empty.
This field would contain the sensitive parts of the url and could be resolved e.g. with pass.

I tested this out locally, and it would work, however it is in the responsibility of the user to setup this correctly after an import as the import will have the full url including any sensitive parts:

This is how it would look like:

  orgs.newRepoWebhook('https://hooks.slack.com/services/') {
     url_part: "pass:bots/ecd.theia/slack/webhook-token-fragment",
     ...

@fgurr

@netomi netomi closed this as completed in 47d085c Mar 1, 2024
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

No branches or pull requests

1 participant