-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fix broken project update secret filtering for external logging #5812
Conversation
@@ -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): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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).
Build succeeded.
|
Build succeeded (gate pipeline).
|
No description provided.