aboutsummaryrefslogtreecommitdiff
path: root/rpkid
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2013-06-03 18:06:35 +0000
committerRob Austein <sra@hactrn.net>2013-06-03 18:06:35 +0000
commitbc50feb5647f224d329eb41bcf62c3dac3c2213f (patch)
tree2c196560c5ac8a46d1743af86facf343d740e494 /rpkid
parent758898ffef27ca6d955f2744889dfba58bd54eb8 (diff)
Merge wiki doc for rpki.conf options into XML master.
svn path=/trunk/; revision=5347
Diffstat (limited to 'rpkid')
-rwxr-xr-xrpkid/rpki-confgen13
-rw-r--r--rpkid/rpki-confgen.xml97
2 files changed, 90 insertions, 20 deletions
diff --git a/rpkid/rpki-confgen b/rpkid/rpki-confgen
index cc5527d2..58758208 100755
--- a/rpkid/rpki-confgen
+++ b/rpkid/rpki-confgen
@@ -107,13 +107,12 @@ class Section(object):
o.to_wiki(f)
def to_conf(self, f, width):
- f.write('''
-################################################################################
-
-[''' + self.name + ''']
-''')
- for d in self.doc:
- f.write("\n%s\n" % conf_wrapper.fill(d))
+ f.write("\n" + "#" * 78 + "\n\n[" + self.name + "]\n")
+ if self.doc:
+ f.write("\n##")
+ for i, d in enumerate(self.doc):
+ f.write("%s\n%s\n" % ("" if i == 0 else "#", conf_wrapper.fill(d)))
+ f.write("##\n")
for o in self.options:
o.to_conf(f, width)
diff --git a/rpkid/rpki-confgen.xml b/rpkid/rpki-confgen.xml
index b1e844c8..c964a40c 100644
--- a/rpkid/rpki-confgen.xml
+++ b/rpkid/rpki-confgen.xml
@@ -340,6 +340,13 @@
<section name = "rpkid">
+ <doc>
+ rpkid's default config file is the system `rpkid.conf` file.
+ Start rpkid with `-c filename` to choose a different config
+ file. All options are in the section `[rpkid]`. BPKI
+ Certificates and keys may be in either DER or PEM format.
+ </doc>
+
<option name = "sql-database"
value = "${myrpki::rpkid_sql_database}">
<doc>
@@ -387,8 +394,10 @@
<option name = "bpki-ta"
value = "${myrpki::bpki_servers_directory}/ca.cer">
<doc>
- Where rpkid should look for the BPKI trust anchor. Don't change
- this unless you really know what you are doing.
+ Where rpkid should look for the BPKI trust anchor. All BPKI
+ certificate verification within rpkid traces back to this
+ trust anchor. Don't change this unless you really know what
+ you are doing.
</doc>
</option>
@@ -430,6 +439,19 @@
<section name = "irdbd">
+ <doc>
+ irdbd's default configuration file is the system `rpki.conf` file.
+ Start irdbd with `-c filename` to choose a different configuration
+ file. All options are in the section `[irdbd]`.
+ </doc>
+
+ <doc>
+ Since irdbd is part of the back-end system, it has direct access to
+ the back-end's SQL database, and thus is able to pull its own BPKI
+ configuration directly from the database, and thus needs a bit less
+ configuration than the other daemons.
+ </doc>
+
<option name = "sql-database"
value = "${myrpki::irdbd_sql_database}">
<doc>
@@ -465,10 +487,24 @@
</doc>
</option>
+ <option name = "startup-message">
+ <doc>
+ String to log on startup, useful when debugging a collection
+ of irdbd instances at once.
+ </doc>
+ </option>
+
</section>
<section name = "pubd">
+ <doc>
+ pubd's default configuration file is the system `rpki.conf`
+ file. Start pubd with `-c filename` to choose a different
+ configuration file. All options are in the section `[pubd]`.
+ BPKI certificates and keys may be either DER or PEM format.
+ </doc>
+
<option name = "sql-database"
value = "${myrpki::pubd_sql_database}">
<doc>
@@ -520,8 +556,10 @@
<option name = "bpki-ta"
value = "${myrpki::bpki_servers_directory}/ca.cer">
<doc>
- Where pubd should look for the BPKI trust anchor. Don't change
- this unless you really know what you are doing.
+ Where pubd should look for the BPKI trust anchor. All BPKI
+ certificate verification within pubd traces back to this
+ trust anchor. Don't change this unless you really know what
+ you are doing.
</doc>
</option>
@@ -554,23 +592,52 @@
</section>
<section name = "rootd">
+
<doc>
You don't need to run rootd unless you're IANA, are certifying
private address space, or are an RIR which refuses to accept IANA as
the root of the public address hierarchy.
</doc>
+
+ <doc>
+ Ok, if that wasn't enough to scare you off: rootd is a mess, and
+ needs to be rewritten, or, better, merged into rpkid. It
+ doesn't use the publication protocol, and it requires far too
+ many configuration parameters.
+ </doc>
+
+ <doc>
+ rootd was originally intended to be a very simple program which
+ simplified rpkid enormously by moving one specific task (acting
+ as the root CA of an RPKI certificate hierarchy) out of rpkid.
+ As the specifications and code (mostly the latter) have evolved,
+ however, this task has become more complicated, and rootd would
+ have to become much more complicated to keep up.
+ </doc>
+
+ <doc>
+ Don't run rootd unless you're sure that you need to do so.
+ </doc>
+
+ <doc>
+ Still think you need to run rootd? OK, but remember, you have
+ been warned....
+ </doc>
+
<doc>
- Ok, if that wasn't enough to scare you off: rootd is a kludge, and
- needs to be rewritten, or, better, merged into rpkid. It does a
- number of things wrong, and requires far too many configuration
- parameters. You have been warned....
+ rootd's default configuration file is the system `rpki.conf` file.
+ Start rootd with `-c filename` to choose a different configuration
+ file. All options are in the section `[rootd]`. Certificates and
+ keys may be in either DER or PEM format.
</doc>
<option name = "bpki-ta"
value = "${myrpki::bpki_servers_directory}/ca.cer">
<doc>
- BPKI trust anchor. Don't change this unless you really know what
- you are doing.
+ Where rootd should look for the BPKI trust anchor. All BPKI
+ certificate verification within rootd traces back to this
+ trust anchor. Don't change this unless you really know what
+ you are doing.
</doc>
</option>
@@ -601,8 +668,9 @@
<option name = "child-bpki-cert"
value = "${myrpki::bpki_servers_directory}/child.cer">
<doc>
- BPKI certificate for rootd's one and only up-down child. Don't
- change this unless you really know what you are doing.
+ BPKI certificate for rootd's one and only up-down child (RPKI
+ engine to which rootd issues an RPKI certificate). Don't
+ change this unless you really know what you are doing.
</doc>
</option>
@@ -624,7 +692,8 @@
value = "${myrpki::publication_base_directory}">
<doc>
Where rootd should write its output. Yes, rootd should be using
- pubd instead of publishing directly, but it doesn't.
+ pubd instead of publishing directly, but it doesn't. This
+ needs to match pubd's configuration.
</doc>
</option>
@@ -707,6 +776,7 @@
</section>
<section name = "web_portal">
+
<doc>
Glue to allow the Django application to pull user configuration
from this file rather than directly editing settings.py.
@@ -742,6 +812,7 @@
</section>
<section name = "autoconf">
+
<doc>
rpki-confgen --autoconf records the current autoconf settings
here, so that other options can refer to them. The section name