cta-wave / common-media-server-data

A repository to collect discussion and feedback on the Common Media Server Data proposal.
21 stars 1 forks source link

CMSD header compliance/validator reference example #17

Open kevleyski opened 2 years ago

kevleyski commented 2 years ago

Would be good to include a reference that validates the CMSD data

Spec is moving around a bit, but an online validator and maybe some open source code would be good as a reference

kevleyski commented 2 years ago

As a Rust engineer more than happy to contribute some super slim parser/validator library (libcmsd crate maybe)

Though what in reality is useful for testing?

Something you can proxy pass to via nginx/Apache for example? Web site form copy and paste Charlse proxy data maybe at it picks out the issues Wireshark module, etc...

wilaw commented 2 years ago

I think a simple page based script might be useful, with two modes of operation:

  1. You enter a URL. The test page makes a GET request and then parses and validate any CMSD headers it receives in the response.
  2. You have a form field in which someone can paste a set of headers, such as are obtained by the browser network panels, or charles proxy HAR etc. The script would then parse and validate the received CMSD information.
wilaw commented 2 years ago

@kevleyski - checking in on this. Any progress/interest on a validation concept, now that spec is in TWG review?

kevleyski commented 2 years ago

Ah yes, I started something, but my original plan was a bit of open source Rust code that worked as a library that could be included in intermediary servers as well as validators

I’ll get a sponsor and try and finish it off as it will be useful in internal projects too

Will get back to you soon

Kev

On 18 Oct 2022, at 4:40 am, Will Law @.***> wrote:



@kevleyskihttps://github.com/kevleyski - checking in on this. Any progress/interest on a validation concept, now that spec is in TWG review?

— Reply to this email directly, view it on GitHubhttps://github.com/cta-wave/common-media-server-data/issues/17#issuecomment-1281226533, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIPJHZB2EB3235RWOMZOATWDWFPBANCNFSM5WKL4HNQ. You are receiving this because you were mentioned.Message ID: @.***>