Make ClientQuery available to certificate provider

Summary:
CertificateProvider is intrinsically related to a client query, make it available to it.

This becomes the optional 'context' of shell executions. When these are recorded, the context is provider to the recorder which can then link an ongoing certificate exchange process with the success or failure of said command.

Reviewed By: antonk52

Differential Revision: D47295894

fbshipit-source-id: 9469d18bda02793d71a6a8b29c93f4af1db23569
This commit is contained in:
Lorenzo Blasa
2023-07-10 05:52:07 -07:00
committed by Facebook GitHub Bot
parent 60b3ff99ce
commit e20d723ac0
8 changed files with 244 additions and 37 deletions

View File

@@ -13,6 +13,7 @@ import CertificateProvider from '../app-connectivity/certificate-exchange/Certif
export default class WWWCertificateProvider extends CertificateProvider {
name = 'WWWCertificateProvider';
medium = 'WWW' as const;
constructor(private keytarManager: KeytarManager) {
super();
}