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

Add PagerDuty source field (PD-CEF) #3100

Closed
wants to merge 12 commits into from

Conversation

OktarianTB
Copy link
Contributor

@OktarianTB OktarianTB commented Oct 10, 2022

Fix #3079 by adding a new source field to the PagerDuty config. Maintains backward compatibility by defaulting to the client field. Added some tests to ensure behaviour works as expected now and in the future. Updated docs as well.

this is my first ever open source contribution! #hacktoberfest

Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

thanks! @EronWright since you've filed the original issue, does it look like the right approach for you?

Comment on lines 213 to 215
if n.conf.Source != "" {
payloadSource = n.conf.Source
}
Copy link
Member

Choose a reason for hiding this comment

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

The default value could be handled in config/notifiers.go when unmarshaling the YAML data. This would be more explicit when users look at the /api/v2/status endpoint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated 👍

Oktarian Tilney-Bassett added 2 commits October 12, 2022 11:11
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
@simonpasquier
Copy link
Member

Can you sign your commits? the easiest solution is probably to squash all the commits:

git rebase -i main
git amend -s

Oktarian Tilney-Bassett added 7 commits October 13, 2022 11:16
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
Signed-off-by: Oktarian Tilney-Bassett <oktariantilneybassett@improbable.io>
@OktarianTB
Copy link
Contributor Author

I opened a new PR with the signing properly setup: #3106 - sorry!

@simonpasquier
Copy link
Member

No problem!

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.

Feature Request: PagerDuty source field (PD-CEF)
2 participants