trustee icon indicating copy to clipboard operation
trustee copied to clipboard

AS: accessing configuration from verifiers

Open thomas-fossati opened this issue 9 months ago • 3 comments

I would like to use the AS configuration file to describe the parameters for my verifier.

Something like:

{
  "//": "global AS config"

  "work_dir": "...",

  "//": "per-verifier stanzas"
  "verifiers": {
    "cca": {
      "veraison": {
        "endpoint": "https://veraison.example/challenge-response/v1/newSession",
        "api-token": "/path/to/api/token.jwt"
        "tls-config": {
          "ca-certs": "/path/to/ca.pem",
          "//": "etc."
        }
      }
    }
  }
}

At present, this is not supported. Is that a conscious design decision, or is it because no one had this need before?

A (less intrusive) alternative would be to have a separate configuration file and pass it to my verifier in an environment variable.

Would such an approach be preferable?

thomas-fossati avatar May 10 '24 09:05 thomas-fossati