Saltar para o conteúdo
BeryxTechBeryxTech
Voltar ao guia do aplicativo

Documentação do BeryX

A documentação técnica está em português de Portugal.

Dossiê do momento da decisão

O que o BeryX sabia no instante em que um agente registou um consumo: a decisão de confiança que viu, o veredito, a política, a atualidade dos dados, os problemas por resolver e a versão aprovada das métricas. O dossiê é assinado, descarrega-se em JSON e verifica-se aqui.

O que podes fazer

  • Abrir, se és admin e o plano tem a conformidade, o dossiê de um consumo a partir da secção «Dossiês do momento da decisão» da página do dataset ou da página do agente. A secção lista os consumos e as abstenções dos últimos 90 dias, os mais recentes primeiro, com quem consumiu, a decisão vista e se leu. Na página do agente entram os consumos do consumidor que a ficha autoriza e os que os tokens do agente registaram.
  • Ler o estado dos dados no instante do registo, secção a secção. Cada secção diz a origem: captada no registo, reconstituída do histórico ou indisponível, com o motivo. A política não guarda versões, por isso o dossiê leva o estado e as regras violadas desse instante e a última alteração registada na auditoria. O alvo de atualidade é o configurado hoje.
  • Descarregar o JSON assinado em «Descarregar o JSON assinado». É o texto que a API devolveu, sem mudar um carácter. Cada abertura emite um dossiê novo, com outro número e outra data de emissão, e fica na auditoria.
  • Verificar um dossiê, se és admin, em Conformidade → «Verificar um dossiê»: colar o JSON ou carregar o ficheiro .json ou o .html do export, que o traz no bloco signed-dossier. O resultado diz se a assinatura é válida, se o conteúdo mudou depois de assinado ou se foi assinado por outra chave, e se o dossiê é deste workspace. Mostra o SHA-256 do conteúdo recebido ao lado do que a assinatura declara. Com a assinatura válida, o conteúdo aparece por baixo. O PDF leva o JSON em anexo: abre o anexo e carrega o .json.
  • Pela API, listar os consumos em GET /api/v1/trust/consumptions, com dataset_id ou agent_id, pedir o dossiê em GET /api/v1/trust/consumptions/{id}/dossier e verificá-lo em POST /api/v1/trust/dossier/verify.

Ver também

English

Decision-time dossier

What BeryX knew at the moment an agent recorded a consumption: the trust decision it saw, the verdict, the policy, the data freshness, the unresolved issues and the approved version of the metrics. The dossier is signed, downloads as JSON and is verified here.

What you can do

  • Open, if you are an admin and the plan includes compliance, the dossier of a consumption from the «Decision-time dossiers» section of the dataset page or the agent page. The section lists the consumptions and abstentions of the last 90 days, most recent first, with who consumed, the decision seen and whether it read. The agent page shows the consumptions of the consumer its record authorises and those its tokens recorded.
  • Read the state of the data at the moment of the record, section by section. Each section says its source: captured at registration, rebuilt from history or unavailable, with the reason. The policy keeps no versions, so the dossier carries the state and the broken rules at that moment and the last change recorded in the audit trail. The freshness target is the one set today.
  • Download the signed JSON with «Download the signed JSON». It is the text the API returned, without a single character changed. Each opening issues a new dossier, with another number and another issue date, and is recorded in the audit trail.
  • Verify a dossier, if you are an admin, in Compliance → «Verify a dossier»: paste the JSON or upload the export's .json or .html file, which carries it in the signed-dossier block. The result says whether the signature is valid, whether the content changed after it was signed or whether it was signed with another key, and whether the dossier is from this workspace. It shows the SHA-256 of the content received next to the one the signature declares. With a valid signature, the content appears below. The PDF carries the JSON as an attachment: open the attachment and upload the .json.
  • Through the API, list the consumptions at GET /api/v1/trust/consumptions, with dataset_id or agent_id, request the dossier at GET /api/v1/trust/consumptions/{id}/dossier and verify it at POST /api/v1/trust/dossier/verify.

See also