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

fix broken project update secret filtering for external logging #5812

Conversation

ryanpetrello
Copy link
Contributor

No description provided.

@@ -360,11 +360,10 @@ def _update_from_event_data(self):
value = force_text(event_data.get(field, '')).strip()
if value != getattr(self, field):
setattr(self, field, value)
if isinstance(self, JobEvent):
Copy link
Contributor Author

@ryanpetrello ryanpetrello Feb 3, 2020

Choose a reason for hiding this comment

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

@chrismeyersfsu @AlanCoding I totally broke external event logging for project updates while refactoring recently 🤦‍♂

# with regex, but project updates don't have many events,
# so it *should* have a negligible performance impact
try:
event_data_json = json.dumps(event_data)
Copy link
Contributor Author

@ryanpetrello ryanpetrello Feb 3, 2020

Choose a reason for hiding this comment

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

Historically, we've filtered this data only on the API side, but I think we should consider doing it here, too, because right now we ship this raw data to external loggers (where it may be unredacted).

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

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.

2 participants