You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesatee.apache.org by GitBox <gi...@apache.org> on 2019/12/10 08:24:46 UTC

[GitHub] [incubator-mesatee] mssun commented on issue #134: Refactoring build time configuration

mssun commented on issue #134: Refactoring build time configuration 
URL: https://github.com/apache/incubator-mesatee/issues/134#issuecomment-563921649
 
 
   According to #135, `mr_signer_path` is useless. Here is an update of the build time config file:
   
   ```toml
   # Service provider's root CA certificate to verify clients
   sp_root_ca_cert = { path = "../cert/ca.crt" }
   
   # Intel Attestation Service root CA certificate to verify attestation report
   ias_root_ca_cert = { path = "../cert/AttestationReportSigningCACert.pem" }
   
   # Auditors' public keys to verify their endorsement signatures
   auditor_public_keys = [
       { path = "../auditors/godzilla/godzilla.public.der" },
       { path = "../auditors/optimus_prime/optimus_prime.public.der" },
       { path = "../auditors/albus_dumbledore/albus_dumbledore.public.der"},
   ]
   
   # RPC max message size
   rpc_max_message_size = 409600
   ```
   
   The corresponding generated code will be like this:
   
   ```
   format!(r#"
       pub struct BuildConfig<'a> {{
           pub sp_root_ca_cert: &'a [u8],
           pub ias_root_ca_cert: &'a [u8],
           pub auditor_public_keys: &'a [&'a [u8];{}],
           pub rpc_max_message_size: u64,
       }}
   
       pub static BUILD_CONFIG: BuildConfig<'static> = BuildConfig {{
           sp_root_ca_cert: {},
           ias_root_ca_cert: {},
           auditor_public_keys: {},
           rpc_max_message_size: {},
       }};"#,
           config.auditor_public_keys.len(),
           sp_root_ca_cert,
           ias_root_ca_cert,
           auditor_public_keys,
           config.rpc_max_message_size
       )
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mesatee.apache.org
For additional commands, e-mail: dev-help@mesatee.apache.org