Skip to content

Add CAAIdentities and Website to /directory "meta".#3588

Merged
cpu merged 1 commit into
masterfrom
cpu-complete-meta
Mar 22, 2018
Merged

Add CAAIdentities and Website to /directory "meta".#3588
cpu merged 1 commit into
masterfrom
cpu-complete-meta

Conversation

@cpu

@cpu cpu commented Mar 22, 2018

Copy link
Copy Markdown
Contributor

This commit updates the WFE and WFE2 to have configuration support for
setting a value for the /directory object's "meta" field's
optional "caaIdentities" and "website" fields. The config-next wfe/wfe2
configuration are updated with values for these fields. Unit tests are
updated to check that they are sent when expected and not otherwise.

Bonus content: The test.AssertUnmarshaledEquals function had a bug
where it would consider two inputs equal when the # of keys differed.
This commit also fixes that bug.

There's a little bit of duplication between the WFE and WFE2 but this
isn't a great fit for the web package. In both cases we need to be reading
fields from the config that are package specific. For the WFE we need to use
"terms-of-service" for one meta key, in the WFE2 "termsOfService". Putting
this work into web didn't really make it much cleaner so I left the duplication.

Resolves #2811

This commit updates the WFE and WFE2 to have configuration support for
setting a value for the `/directory` object's "meta" field's
optional "caaIdentities" and "website" fields. The config-next wfe/wfe2
configuration are updated with values for these fields. Unit tests are
updated to check that they are sent when expected and not otherwise.

Bonus content: The `test.AssertUnmarshaledEquals` function had a bug
where it would consider two inputs equal when the # of keys differed.
This commit also fixes that bug.
@cpu cpu self-assigned this Mar 22, 2018
@cpu cpu requested a review from a team as a code owner March 22, 2018 19:40
@cpu cpu merged commit 17922a6 into master Mar 22, 2018
@cpu cpu deleted the cpu-complete-meta branch March 22, 2018 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add caaIdentities entry to /directory endpoint's meta entry

2 participants