Skip to content

fix broken project update secret filtering for external logging - #5812

Merged
softwarefactory-delete-me[bot] merged 1 commit into
ansible:develfrom
ryanpetrello:busted-project-update-events
Feb 3, 2020
Merged

softwarefactory-delete-me[bot] merged 1 commit into
ansible:develfrom
ryanpetrello:busted-project-update-events

Conversation

@ryanpetrello

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread awx/main/models/events.py
value = force_text(event_data.get(field, '')).strip()
if value != getattr(self, field):
setattr(self, field, value)
if isinstance(self, JobEvent):

@ryanpetrello ryanpetrello Feb 3, 2020 •

Copy link
Copy Markdown
Contributor Author

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 🤦‍♂

Comment thread awx/main/tasks.py
# 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)

@ryanpetrello ryanpetrello Feb 3, 2020 •

Copy link
Copy Markdown
Contributor Author

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-delete-me

Copy link
Copy Markdown
Contributor

Build succeeded.

@softwarefactory-delete-me

Copy link
Copy Markdown
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