Skip to content
Snippets Groups Projects

alternate-mdx

Alternate MDX research project

Usage

  • Create python virtualenv
  • Activate virtualenv (. bin/activate)
  • pip install -r requirements.txt
  • Create (self-signed) metadata signing cert (meta.crt/meta.key)
  • Create output directory (mkdir output)
  • Download metadata file(s)
  • Run one or more of the tools below

mdsigner.py [mdfile] [mdfile] [mdfile] ...

Reads source metadata file(s) and outputs them signed to filesystem

mdserver.py [mdfile] [mdfile] [mdfile] ...

Starts a metadata signer server. Reads source metadata files(s) from mdsigner.yaml configuration, see example. Reloads metadata on inotify CLOSE_WRITE of metadata file. Serves and caches signed by domain signer from memory, on request

mdproxy.py

Caches signed and cached mdserver.py metadata requests

Queries

MDQ Queries can then be pointed at

  • http://mdserver:5001/sign/<entityid>
  • http://mdproxy:5002/cache/<entityid>