Skip to content

Commit

Permalink
Redact not required properties
Browse files Browse the repository at this point in the history
  • Loading branch information
aperez-worklytics committed Jan 27, 2025
1 parent edc6422 commit eb91971
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@
"created_at":1737730851061,
"operation_type":"remove",
"data":{
"job":"MigrationDestroyFileJob",
"active_job_id":"some-job-id",
"aqueduct_job_id":"some-aqueduct-job-id",
"catalog_service":"github/unknown",
"migration_id":2,
"public_repo":true,
"started_by":"{\"hash\":\"IAUEqSLLtP3EjjkzslH-S1ULJZRLQnH9hT54jiI1gbM\"}",
"started_by_id":42,
Expand Down
10 changes: 10 additions & 0 deletions docs/sources/github/github-enterprise-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ endpoints:
- "$..transport_protocol_name"
- "$..pull_request_title"
- "$..user_agent"
- "$..job"
- "$..active_job_id"
- "$..aqueduct_job_id"
- "$..catalog_service"
- "$..migration_id"
- !<pseudonymize>
jsonPaths:
- "$..actor"
Expand All @@ -287,6 +292,11 @@ endpoints:
- "$..transport_protocol_name"
- "$..pull_request_title"
- "$..user_agent"
- "$..job"
- "$..active_job_id"
- "$..aqueduct_job_id"
- "$..catalog_service"
- "$..migration_id"
- !<pseudonymize>
jsonPaths:
- "$..actor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ public class PrebuiltSanitizerRules {
.jsonPath("$..transport_protocol_name")
.jsonPath("$..pull_request_title")
.jsonPath("$..user_agent")
.jsonPath("$..job")
.jsonPath("$..active_job_id")
.jsonPath("$..aqueduct_job_id")
.jsonPath("$..catalog_service")
.jsonPath("$..migration_id")
.build())
.transform(Transform.Pseudonymize.builder()
.jsonPath("$..actor")
Expand All @@ -162,6 +167,11 @@ public class PrebuiltSanitizerRules {
.jsonPath("$..transport_protocol_name")
.jsonPath("$..pull_request_title")
.jsonPath("$..user_agent")
.jsonPath("$..job")
.jsonPath("$..active_job_id")
.jsonPath("$..aqueduct_job_id")
.jsonPath("$..catalog_service")
.jsonPath("$..migration_id")
.build())
.transform(Transform.Pseudonymize.builder()
.jsonPath("$..actor")
Expand Down

0 comments on commit eb91971

Please sign in to comment.