jenkins-infra / uplink

A simple telemetry service for Jenkins instances.
https://uplink.jenkins.io/
GNU Affero General Public License v3.0
1 stars 2 forks source link

Process correlator uuid and apply sha 512 transformation #15

Closed rtyler closed 5 years ago

rtyler commented 5 years ago

New events should have a modified correlator id which takes the legacy UUID and concatenates with the event type to create an event-specific correlator./

See also: https://issues.jenkins-ci.org/browse/JENKINS-54136

rtyler commented 5 years ago

This is blocked until the corresponding core change is merged.

daniel-beck commented 5 years ago

Corresponding core PR at https://github.com/jenkinsci/jenkins/pull/3698 -- these need to provide the same output.

rtyler commented 5 years ago

@daniel-beck would you mind including in this ticket an example of a type, original correlator, and the resulting sha256? Just so I can add a unit test for that

daniel-beck commented 5 years ago

@rtyler https://github.com/jenkinsci/jenkins/pull/3698/commits/37f725f5706dddccf235109ff1101405b0fc5bb4#diff-6fc932078349e57bceeeea758fae09dbR77 should do it?

UUID: 00000000-0000-0000-0000-000000000000 Trial: test-data Combined SHA: 90ecf3ce1cd5ba1e5ad3cde7ad08a941e884f2e4d9bd463361715abab8efedc5