Chengyu Fan | b25835b | 2015-04-28 17:09:35 -0600 | [diff] [blame] | 1 | ; The catalog section contains settings of catalog |
Chengyu Fan | 9244016 | 2015-07-09 14:43:31 -0600 | [diff] [blame] | 2 | general: |
Chengyu Fan | b25835b | 2015-04-28 17:09:35 -0600 | [diff] [blame] | 3 | { |
| 4 | ; Set the catalog prefix, so that adapters can extend it as their own prefix |
| 5 | ; e.g., suppose that the catalog has the prefix "ndn:/cmip5", so QueryAdapter has the prefix |
| 6 | ; "ndn:/cmip5/catalog/query" and "ndn:/cmip5/catalog/query-results", |
| 7 | ; PublishAdapter has the prefix "ndn:/cmip5/catalog/publish" |
| 8 | |
| 9 | prefix /catalog/myUniqueName |
Chengyu Fan | 9244016 | 2015-07-09 14:43:31 -0600 | [diff] [blame] | 10 | |
| 11 | ; name fileds conatin name components for the scientifi data, for example, the climate data |
| 12 | ; contains name fileds like activity, ..., time |
| 13 | nameFields activity,product,organization,model,experiment,frequency,modeling_realm,variable_name,ensemble,time |
Chengyu Fan | b25835b | 2015-04-28 17:09:35 -0600 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | ; The queryAdapter section contains settings of queryAdapter |
| 17 | queryAdapter |
| 18 | { |
| 19 | ; signingId ndn:/cmip5/test/query/identity; Set the Identity that signs data that respond |
| 20 | ; the queries |
| 21 | |
| 22 | ; The database section contains settings of database for QueryAdapter |
| 23 | database |
| 24 | { |
| 25 | dbServer 127.0.0.1 ; Specify the database server |
| 26 | dbName testdb ; Specify the database name |
| 27 | dbUser testuser1 ; Specify the database user name |
| 28 | dbPasswd test123 ; Specify the associated password for the dbUser |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | ; The publishAdapter section contains settings of publishAdapter |
| 33 | publishAdapter |
| 34 | { |
| 35 | ; ; Set the identity that signs published data |
| 36 | ; signingId ndn:/cmip5/test/publish/identity |
| 37 | |
Chengyu Fan | c7b87ad | 2015-07-09 16:44:37 -0600 | [diff] [blame] | 38 | ; ; The security section contains the rules for the adapter to verify the |
Chengyu Fan | b25835b | 2015-04-28 17:09:35 -0600 | [diff] [blame] | 39 | ; ; published files indeed come from a valid publisher. |
Chengyu Fan | c7b87ad | 2015-07-09 16:44:37 -0600 | [diff] [blame] | 40 | ; security |
Chengyu Fan | b25835b | 2015-04-28 17:09:35 -0600 | [diff] [blame] | 41 | ; { |
Chengyu Fan | c7b87ad | 2015-07-09 16:44:37 -0600 | [diff] [blame] | 42 | ; rule |
| 43 | ; { |
| 44 | ; id "NDN Hierarchy Test Rule" |
| 45 | ; for data ; rule for Data (to validate NDN certificates) |
| 46 | ; filter |
| 47 | ; { |
| 48 | ; type name ; condition on data name |
| 49 | ; regex ^(<>*)$ |
| 50 | ; } |
| 51 | ; checker |
| 52 | ; { |
| 53 | ; type hierarchical ; the certificate name of the signing key and |
| 54 | ; ; the data name must follow the hierarchical model |
| 55 | ; sig-type rsa-sha256 ; data must have a rsa-sha256 signature |
| 56 | ; } |
| 57 | ; } |
| 58 | ; trust-anchor |
| 59 | ; { |
| 60 | ; type file |
| 61 | ; file-name /directory/to/the/root.ndncert ; the file name, by default this file should be |
| 62 | ; ; in same folder as this config file. |
| 63 | ; } |
Chengyu Fan | b25835b | 2015-04-28 17:09:35 -0600 | [diff] [blame] | 64 | ; } |
| 65 | |
| 66 | ; The database section contains settings of database |
| 67 | ; The user in publishAdapter may differ from the one in queryAdapter, to provide different |
| 68 | ; access control |
| 69 | database |
| 70 | { |
| 71 | dbServer 127.0.0.1 ; Specify the database server |
| 72 | dbName testdb ; Specify the database name |
| 73 | dbUser testuser2 ; Specify the database user name |
| 74 | dbPasswd test123 ; Specify the associated password for the dbUser |
| 75 | } |
| 76 | |
| 77 | ; The sync section contains settings of ChronoSync |
| 78 | sync |
| 79 | { |
| 80 | ; Set the prefix for sync messages, default 'ndn:/ndn/broadcast' |
| 81 | prefix ndn:/ndn/broadcast |
| 82 | |
| 83 | ; ; The sync_data_security section contains the rules that are required for ChronoSync nodes to |
| 84 | ; ; verify published data by other ChronoSync nodes. |
| 85 | ; ; The ChronoSync validator will be disabled when sync_data_security section is missing. |
| 86 | ; sync_data_security |
| 87 | ; { |
| 88 | ; ; ; This section defines the trust model for the ChronoSync data Management. It consists of |
| 89 | ; ; ; rules and trust-anchors, which are briefly defined in this file. Multiple rules can be |
| 90 | ; ; ; included |
| 91 | ; ; rule |
| 92 | ; ; { |
| 93 | ; ; id "ChronoSync Update Messages Rule" |
| 94 | ; ; for data ; rule for Data (to validate NDN certificates) |
| 95 | ; ; filter |
| 96 | ; ; { |
| 97 | ; ; type name ; condition on data name |
| 98 | ; ; regex ^[^<KEY>]*<KEY><>*<ksk-.*><ID-CERT><>$ |
| 99 | ; ; } |
| 100 | ; ; checker |
| 101 | ; ; { |
| 102 | ; ; type hierarchical ; the certificate name of the signing key and |
| 103 | ; ; ; the data name must follow the hierarchical model |
| 104 | ; ; sig-type rsa-sha256 ; data must have a rsa-sha256 signature |
| 105 | ; ; } |
| 106 | ; ; } |
| 107 | ; ; trust-anchor |
| 108 | ; ; { |
| 109 | ; ; type file |
| 110 | ; ; file-name keys/default.ndncert ; the file name, by default this file should be placed in |
| 111 | ; ; ; the same folder as this config file. |
| 112 | ; ; } |
| 113 | ; } |
| 114 | } |
| 115 | } |