mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
Sakura Cloud DNS Authenticator (#5701)
Implement an Authenticator which can fulfill a dns-01 challenge using
the Sakura Cloud DNS API.
Applicable only for domains using Sakura Cloud for DNS.
Testing Done:
* `tox -e py27`
* `tox -e lint`
* Manual testing:
* Used `certbot certonly --dns-sakuracloud -d`, specifying a
credentials file as a command line argument. Verified that a
certificate was successfully obtained without user interaction.
* Negative testing:
* Path to non-existent credentials file.
* Credentials file with unsafe permissions (644).
* Domain name not registered to Sakura Cloud account.
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
FROM certbot/certbot
|
||||||
|
|
||||||
|
COPY . src/certbot-dns-sakuracloud
|
||||||
|
|
||||||
|
RUN pip install --no-cache-dir --editable src/certbot-dns-sakuracloud
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
Copyright 2018 Electronic Frontier Foundation and others
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
include LICENSE.txt
|
||||||
|
include README.rst
|
||||||
|
recursive-include docs *
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Sakura Cloud DNS Authenticator plugin for Certbot
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
"""
|
||||||
|
The `~certbot_dns_sakuracloud.dns_sakuracloud` plugin automates the process of completing
|
||||||
|
a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and subsequently
|
||||||
|
removing, TXT records using the Sakura Cloud DNS API.
|
||||||
|
|
||||||
|
|
||||||
|
Named Arguments
|
||||||
|
---------------
|
||||||
|
|
||||||
|
========================================== ======================================
|
||||||
|
``--dns-sakuracloud-credentials`` Sakura Cloud credentials_ INI file.
|
||||||
|
(Required)
|
||||||
|
``--dns-sakuracloud-propagation-seconds`` The number of seconds to wait for DNS
|
||||||
|
to propagate before asking the ACME
|
||||||
|
server to verify the DNS record.
|
||||||
|
(Default: 90)
|
||||||
|
========================================== ======================================
|
||||||
|
|
||||||
|
|
||||||
|
Credentials
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Use of this plugin requires a configuration file containing
|
||||||
|
Sakura Cloud DNS API credentials, obtained from your Sakura Cloud DNS
|
||||||
|
`apikey page <https://secure.sakura.ad.jp/cloud/#!/apikey/top/>`_.
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
:name: credentials.ini
|
||||||
|
:caption: Example credentials file:
|
||||||
|
|
||||||
|
# Sakura Cloud API credentials used by Certbot
|
||||||
|
dns_sakuracloud_api_token = 00000000-0000-0000-0000-000000000000
|
||||||
|
dns_sakuracloud_api_secret = MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw
|
||||||
|
|
||||||
|
The path to this file can be provided interactively or using the
|
||||||
|
``--dns-sakuracloud-credentials`` command-line argument. Certbot records the path
|
||||||
|
to this file for use during renewal, but does not store the file's contents.
|
||||||
|
|
||||||
|
.. caution::
|
||||||
|
You should protect these API credentials as you would the password to your
|
||||||
|
Sakura Cloud account. Users who can read this file can use these credentials
|
||||||
|
to issue arbitrary API calls on your behalf. Users who can cause Certbot to
|
||||||
|
run using these credentials can complete a ``dns-01`` challenge to acquire new
|
||||||
|
certificates or revoke existing certificates for associated domains, even if
|
||||||
|
those domains aren't being managed by this server.
|
||||||
|
|
||||||
|
Certbot will emit a warning if it detects that the credentials file can be
|
||||||
|
accessed by other users on your system. The warning reads "Unsafe permissions
|
||||||
|
on credentials configuration file", followed by the path to the credentials
|
||||||
|
file. This warning will be emitted each time Certbot uses the credentials file,
|
||||||
|
including for renewal, and cannot be silenced except by addressing the issue
|
||||||
|
(e.g., by using a command like ``chmod 600`` to restrict access to the file).
|
||||||
|
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
:caption: To acquire a certificate for ``example.com``
|
||||||
|
|
||||||
|
certbot certonly \\
|
||||||
|
--dns-sakuracloud \\
|
||||||
|
--dns-sakuracloud-credentials ~/.secrets/certbot/sakuracloud.ini \\
|
||||||
|
-d example.com
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
:caption: To acquire a single certificate for both ``example.com`` and
|
||||||
|
``www.example.com``
|
||||||
|
|
||||||
|
certbot certonly \\
|
||||||
|
--dns-sakuracloud \\
|
||||||
|
--dns-sakuracloud-credentials ~/.secrets/certbot/sakuracloud.ini \\
|
||||||
|
-d example.com \\
|
||||||
|
-d www.example.com
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
:caption: To acquire a certificate for ``example.com``, waiting 60 seconds
|
||||||
|
for DNS propagation
|
||||||
|
|
||||||
|
certbot certonly \\
|
||||||
|
--dns-sakuracloud \\
|
||||||
|
--dns-sakuracloud-credentials ~/.secrets/certbot/sakuracloud.ini \\
|
||||||
|
--dns-sakuracloud-propagation-seconds 60 \\
|
||||||
|
-d example.com
|
||||||
|
|
||||||
|
"""
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
"""DNS Authenticator for Sakura Cloud DNS."""
|
||||||
|
import logging
|
||||||
|
|
||||||
|
import zope.interface
|
||||||
|
from lexicon.providers import sakuracloud
|
||||||
|
|
||||||
|
from certbot import interfaces
|
||||||
|
from certbot.plugins import dns_common
|
||||||
|
from certbot.plugins import dns_common_lexicon
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
APIKEY_URL = "https://secure.sakura.ad.jp/cloud/#!/apikey/top/"
|
||||||
|
|
||||||
|
|
||||||
|
@zope.interface.implementer(interfaces.IAuthenticator)
|
||||||
|
@zope.interface.provider(interfaces.IPluginFactory)
|
||||||
|
class Authenticator(dns_common.DNSAuthenticator):
|
||||||
|
"""DNS Authenticator for Sakura Cloud DNS
|
||||||
|
|
||||||
|
This Authenticator uses the Sakura Cloud API to fulfill a dns-01 challenge.
|
||||||
|
"""
|
||||||
|
|
||||||
|
description = 'Obtain certificates using a DNS TXT record ' + \
|
||||||
|
'(if you are using Sakura Cloud for DNS).'
|
||||||
|
ttl = 60
|
||||||
|
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super(Authenticator, self).__init__(*args, **kwargs)
|
||||||
|
self.credentials = None
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def add_parser_arguments(cls, add): # pylint: disable=arguments-differ
|
||||||
|
super(Authenticator, cls).add_parser_arguments(
|
||||||
|
add, default_propagation_seconds=90)
|
||||||
|
add('credentials', help='Sakura Cloud credentials file.')
|
||||||
|
|
||||||
|
def more_info(self): # pylint: disable=missing-docstring,no-self-use
|
||||||
|
return 'This plugin configures a DNS TXT record to respond to a dns-01 challenge using ' + \
|
||||||
|
'the Sakura Cloud API.'
|
||||||
|
|
||||||
|
def _setup_credentials(self):
|
||||||
|
self.credentials = self._configure_credentials(
|
||||||
|
'credentials',
|
||||||
|
'Sakura Cloud credentials file',
|
||||||
|
{
|
||||||
|
'api-token': \
|
||||||
|
'API token for Sakura Cloud API obtained from {0}'.format(APIKEY_URL),
|
||||||
|
'api-secret': \
|
||||||
|
'API secret for Sakura Cloud API obtained from {0}'.format(APIKEY_URL),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
def _perform(self, domain, validation_name, validation):
|
||||||
|
self._get_sakuracloud_client().add_txt_record(
|
||||||
|
domain, validation_name, validation)
|
||||||
|
|
||||||
|
def _cleanup(self, domain, validation_name, validation):
|
||||||
|
self._get_sakuracloud_client().del_txt_record(
|
||||||
|
domain, validation_name, validation)
|
||||||
|
|
||||||
|
def _get_sakuracloud_client(self):
|
||||||
|
return _SakuraCloudLexiconClient(
|
||||||
|
self.credentials.conf('api-token'),
|
||||||
|
self.credentials.conf('api-secret'),
|
||||||
|
self.ttl
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class _SakuraCloudLexiconClient(dns_common_lexicon.LexiconClient):
|
||||||
|
"""
|
||||||
|
Encapsulates all communication with the Sakura Cloud via Lexicon.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self, api_token, api_secret, ttl):
|
||||||
|
super(_SakuraCloudLexiconClient, self).__init__()
|
||||||
|
|
||||||
|
self.provider = sakuracloud.Provider({
|
||||||
|
'auth_token': api_token,
|
||||||
|
'auth_secret': api_secret,
|
||||||
|
'ttl': ttl,
|
||||||
|
})
|
||||||
|
|
||||||
|
def _handle_http_error(self, e, domain_name):
|
||||||
|
if domain_name in str(e) and (str(e).startswith('404 Client Error: Not Found for url:')):
|
||||||
|
return # Expected errors when zone name guess is wrong
|
||||||
|
return super(_SakuraCloudLexiconClient, self)._handle_http_error(e, domain_name)
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
"""Tests for certbot_dns_sakuracloud.dns_sakuracloud."""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
import mock
|
||||||
|
from requests.exceptions import HTTPError
|
||||||
|
|
||||||
|
from certbot.plugins import dns_test_common
|
||||||
|
from certbot.plugins import dns_test_common_lexicon
|
||||||
|
from certbot.plugins.dns_test_common import DOMAIN
|
||||||
|
from certbot.tests import util as test_util
|
||||||
|
|
||||||
|
API_TOKEN = '00000000-0000-0000-0000-000000000000'
|
||||||
|
API_SECRET = 'MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw'
|
||||||
|
|
||||||
|
class AuthenticatorTest(test_util.TempDirTestCase,
|
||||||
|
dns_test_common_lexicon.BaseLexiconAuthenticatorTest):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
super(AuthenticatorTest, self).setUp()
|
||||||
|
|
||||||
|
from certbot_dns_sakuracloud.dns_sakuracloud import Authenticator
|
||||||
|
|
||||||
|
path = os.path.join(self.tempdir, 'file.ini')
|
||||||
|
dns_test_common.write(
|
||||||
|
{"sakuracloud_api_token": API_TOKEN, "sakuracloud_api_secret": API_SECRET},
|
||||||
|
path
|
||||||
|
)
|
||||||
|
|
||||||
|
self.config = mock.MagicMock(sakuracloud_credentials=path,
|
||||||
|
sakuracloud_propagation_seconds=0) # don't wait during tests
|
||||||
|
|
||||||
|
self.auth = Authenticator(self.config, "sakuracloud")
|
||||||
|
|
||||||
|
self.mock_client = mock.MagicMock()
|
||||||
|
# _get_sakuracloud_client | pylint: disable=protected-access
|
||||||
|
self.auth._get_sakuracloud_client = mock.MagicMock(return_value=self.mock_client)
|
||||||
|
|
||||||
|
|
||||||
|
class NS1LexiconClientTest(unittest.TestCase, dns_test_common_lexicon.BaseLexiconClientTest):
|
||||||
|
DOMAIN_NOT_FOUND = HTTPError('404 Client Error: Not Found for url: {0}.'.format(DOMAIN))
|
||||||
|
LOGIN_ERROR = HTTPError('401 Client Error: Unauthorized for url: {0}.'.format(DOMAIN))
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
from certbot_dns_sakuracloud.dns_sakuracloud import _SakuraCloudLexiconClient
|
||||||
|
|
||||||
|
self.client = _SakuraCloudLexiconClient(API_TOKEN, API_SECRET, 0)
|
||||||
|
|
||||||
|
self.provider_mock = mock.MagicMock()
|
||||||
|
self.client.provider = self.provider_mock
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
unittest.main() # pragma: no cover
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/_build/
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# Minimal makefile for Sphinx documentation
|
||||||
|
#
|
||||||
|
|
||||||
|
# You can set these variables from the command line.
|
||||||
|
SPHINXOPTS =
|
||||||
|
SPHINXBUILD = sphinx-build
|
||||||
|
SPHINXPROJ = certbot-dns-sakuracloud
|
||||||
|
SOURCEDIR = .
|
||||||
|
BUILDDIR = _build
|
||||||
|
|
||||||
|
# Put it first so that "make" without argument is like "make help".
|
||||||
|
help:
|
||||||
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
|
||||||
|
.PHONY: help Makefile
|
||||||
|
|
||||||
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||||
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||||
|
%: Makefile
|
||||||
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
=================
|
||||||
|
API Documentation
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:glob:
|
||||||
|
|
||||||
|
api/**
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
:mod:`certbot_dns_sakuracloud.dns_sakuracloud`
|
||||||
|
----------------------------------------------
|
||||||
|
|
||||||
|
.. automodule:: certbot_dns_sakuracloud.dns_sakuracloud
|
||||||
|
:members:
|
||||||
@@ -0,0 +1,180 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# certbot-dns-sakuracloud documentation build configuration file, created by
|
||||||
|
# sphinx-quickstart on Wed May 10 18:30:40 2017.
|
||||||
|
#
|
||||||
|
# This file is execfile()d with the current directory set to its
|
||||||
|
# containing dir.
|
||||||
|
#
|
||||||
|
# Note that not all possible configuration values are present in this
|
||||||
|
# autogenerated file.
|
||||||
|
#
|
||||||
|
# All configuration values have a default; values that are commented out
|
||||||
|
# serve to show the default.
|
||||||
|
|
||||||
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
#
|
||||||
|
import os
|
||||||
|
# import sys
|
||||||
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
|
||||||
|
# -- General configuration ------------------------------------------------
|
||||||
|
|
||||||
|
# If your documentation needs a minimal Sphinx version, state it here.
|
||||||
|
#
|
||||||
|
needs_sphinx = '1.0'
|
||||||
|
|
||||||
|
# Add any Sphinx extension module names here, as strings. They can be
|
||||||
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||||
|
# ones.
|
||||||
|
extensions = ['sphinx.ext.autodoc',
|
||||||
|
'sphinx.ext.intersphinx',
|
||||||
|
'sphinx.ext.todo',
|
||||||
|
'sphinx.ext.coverage',
|
||||||
|
'sphinx.ext.viewcode']
|
||||||
|
|
||||||
|
autodoc_member_order = 'bysource'
|
||||||
|
autodoc_default_flags = ['show-inheritance', 'private-members']
|
||||||
|
|
||||||
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
templates_path = ['_templates']
|
||||||
|
|
||||||
|
# The suffix(es) of source filenames.
|
||||||
|
# You can specify multiple suffix as a list of string:
|
||||||
|
#
|
||||||
|
# source_suffix = ['.rst', '.md']
|
||||||
|
source_suffix = '.rst'
|
||||||
|
|
||||||
|
# The master toctree document.
|
||||||
|
master_doc = 'index'
|
||||||
|
|
||||||
|
# General information about the project.
|
||||||
|
project = u'certbot-dns-sakuracloud'
|
||||||
|
copyright = u'2018, Certbot Project'
|
||||||
|
author = u'Certbot Project'
|
||||||
|
|
||||||
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
|
# |version| and |release|, also used in various other places throughout the
|
||||||
|
# built documents.
|
||||||
|
#
|
||||||
|
# The short X.Y version.
|
||||||
|
version = u'0'
|
||||||
|
# The full version, including alpha/beta/rc tags.
|
||||||
|
release = u'0'
|
||||||
|
|
||||||
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
|
# for a list of supported languages.
|
||||||
|
#
|
||||||
|
# This is also used if you do content translation via gettext catalogs.
|
||||||
|
# Usually you set "language" from the command line for these cases.
|
||||||
|
language = 'en'
|
||||||
|
|
||||||
|
# List of patterns, relative to source directory, that match files and
|
||||||
|
# directories to ignore when looking for source files.
|
||||||
|
# This patterns also effect to html_static_path and html_extra_path
|
||||||
|
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||||
|
|
||||||
|
default_role = 'py:obj'
|
||||||
|
|
||||||
|
# The name of the Pygments (syntax highlighting) style to use.
|
||||||
|
pygments_style = 'sphinx'
|
||||||
|
|
||||||
|
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||||
|
todo_include_todos = True
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for HTML output ----------------------------------------------
|
||||||
|
|
||||||
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
|
# a list of builtin themes.
|
||||||
|
#
|
||||||
|
|
||||||
|
# http://docs.readthedocs.org/en/latest/theme.html#how-do-i-use-this-locally-and-on-read-the-docs
|
||||||
|
# on_rtd is whether we are on readthedocs.org
|
||||||
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||||
|
if not on_rtd: # only import and set the theme if we're building docs locally
|
||||||
|
import sphinx_rtd_theme
|
||||||
|
html_theme = 'sphinx_rtd_theme'
|
||||||
|
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||||
|
# otherwise, readthedocs.org uses their theme by default, so no need to specify it
|
||||||
|
|
||||||
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
|
# further. For a list of options available for each theme, see the
|
||||||
|
# documentation.
|
||||||
|
#
|
||||||
|
# html_theme_options = {}
|
||||||
|
|
||||||
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
|
html_static_path = ['_static']
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for HTMLHelp output ------------------------------------------
|
||||||
|
|
||||||
|
# Output file base name for HTML help builder.
|
||||||
|
htmlhelp_basename = 'certbot-dns-sakuraclouddoc'
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for LaTeX output ---------------------------------------------
|
||||||
|
|
||||||
|
latex_elements = {
|
||||||
|
# The paper size ('letterpaper' or 'a4paper').
|
||||||
|
#
|
||||||
|
# 'papersize': 'letterpaper',
|
||||||
|
|
||||||
|
# The font size ('10pt', '11pt' or '12pt').
|
||||||
|
#
|
||||||
|
# 'pointsize': '10pt',
|
||||||
|
|
||||||
|
# Additional stuff for the LaTeX preamble.
|
||||||
|
#
|
||||||
|
# 'preamble': '',
|
||||||
|
|
||||||
|
# Latex figure (float) alignment
|
||||||
|
#
|
||||||
|
# 'figure_align': 'htbp',
|
||||||
|
}
|
||||||
|
|
||||||
|
# Grouping the document tree into LaTeX files. List of tuples
|
||||||
|
# (source start file, target name, title,
|
||||||
|
# author, documentclass [howto, manual, or own class]).
|
||||||
|
latex_documents = [
|
||||||
|
(master_doc, 'certbot-dns-sakuracloud.tex', u'certbot-dns-sakuracloud Documentation',
|
||||||
|
u'Certbot Project', 'manual'),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for manual page output ---------------------------------------
|
||||||
|
|
||||||
|
# One entry per manual page. List of tuples
|
||||||
|
# (source start file, name, description, authors, manual section).
|
||||||
|
man_pages = [
|
||||||
|
(master_doc, 'certbot-dns-sakuracloud', u'certbot-dns-sakuracloud Documentation',
|
||||||
|
[author], 1)
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for Texinfo output -------------------------------------------
|
||||||
|
|
||||||
|
# Grouping the document tree into Texinfo files. List of tuples
|
||||||
|
# (source start file, target name, title, author,
|
||||||
|
# dir menu entry, description, category)
|
||||||
|
texinfo_documents = [
|
||||||
|
(master_doc, 'certbot-dns-sakuracloud', u'certbot-dns-sakuracloud Documentation',
|
||||||
|
author, 'certbot-dns-sakuracloud', 'One line description of project.',
|
||||||
|
'Miscellaneous'),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Example configuration for intersphinx: refer to the Python standard library.
|
||||||
|
intersphinx_mapping = {
|
||||||
|
'python': ('https://docs.python.org/', None),
|
||||||
|
'acme': ('https://acme-python.readthedocs.org/en/latest/', None),
|
||||||
|
'certbot': ('https://certbot.eff.org/docs/', None),
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
.. certbot-dns-sakuracloud documentation master file, created by
|
||||||
|
sphinx-quickstart on Wed May 10 18:30:40 2017.
|
||||||
|
You can adapt this file completely to your liking, but it should at least
|
||||||
|
contain the root `toctree` directive.
|
||||||
|
|
||||||
|
Welcome to certbot-dns-sakuracloud's documentation!
|
||||||
|
===================================================
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
:caption: Contents:
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
api
|
||||||
|
|
||||||
|
.. automodule:: certbot_dns_sakuracloud
|
||||||
|
:members:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Indices and tables
|
||||||
|
==================
|
||||||
|
|
||||||
|
* :ref:`genindex`
|
||||||
|
* :ref:`modindex`
|
||||||
|
* :ref:`search`
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
@ECHO OFF
|
||||||
|
|
||||||
|
pushd %~dp0
|
||||||
|
|
||||||
|
REM Command file for Sphinx documentation
|
||||||
|
|
||||||
|
if "%SPHINXBUILD%" == "" (
|
||||||
|
set SPHINXBUILD=sphinx-build
|
||||||
|
)
|
||||||
|
set SOURCEDIR=.
|
||||||
|
set BUILDDIR=_build
|
||||||
|
set SPHINXPROJ=certbot-dns-sakuracloud
|
||||||
|
|
||||||
|
if "%1" == "" goto help
|
||||||
|
|
||||||
|
%SPHINXBUILD% >NUL 2>NUL
|
||||||
|
if errorlevel 9009 (
|
||||||
|
echo.
|
||||||
|
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
||||||
|
echo.installed, then set the SPHINXBUILD environment variable to point
|
||||||
|
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
||||||
|
echo.may add the Sphinx directory to PATH.
|
||||||
|
echo.
|
||||||
|
echo.If you don't have Sphinx installed, grab it from
|
||||||
|
echo.http://sphinx-doc.org/
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:help
|
||||||
|
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
||||||
|
|
||||||
|
:end
|
||||||
|
popd
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# readthedocs.org gives no way to change the install command to "pip
|
||||||
|
# install -e .[docs]" (that would in turn install documentation
|
||||||
|
# dependencies), but it allows to specify a requirements.txt file at
|
||||||
|
# https://readthedocs.org/dashboard/letsencrypt/advanced/ (c.f. #259)
|
||||||
|
|
||||||
|
# Although ReadTheDocs certainly doesn't need to install the project
|
||||||
|
# in --editable mode (-e), just "pip install .[docs]" does not work as
|
||||||
|
# expected and "pip install -e .[docs]" must be used instead
|
||||||
|
|
||||||
|
-e acme
|
||||||
|
-e .
|
||||||
|
-e certbot-dns-sakuracloud[docs]
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[bdist_wheel]
|
||||||
|
universal = 1
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
from setuptools import setup
|
||||||
|
from setuptools import find_packages
|
||||||
|
|
||||||
|
|
||||||
|
version = '0.25.0.dev0'
|
||||||
|
|
||||||
|
# Please update tox.ini when modifying dependency version requirements
|
||||||
|
install_requires = [
|
||||||
|
'acme>=0.21.1',
|
||||||
|
'certbot>=0.21.1',
|
||||||
|
'dns-lexicon>=2.1.23',
|
||||||
|
'mock',
|
||||||
|
'setuptools',
|
||||||
|
'zope.interface',
|
||||||
|
]
|
||||||
|
|
||||||
|
docs_extras = [
|
||||||
|
'Sphinx>=1.0', # autodoc_member_order = 'bysource', autodoc_default_flags
|
||||||
|
'sphinx_rtd_theme',
|
||||||
|
]
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name='certbot-dns-sakuracloud',
|
||||||
|
version=version,
|
||||||
|
description="Sakura Cloud DNS Authenticator plugin for Certbot",
|
||||||
|
url='https://github.com/certbot/certbot',
|
||||||
|
author="Certbot Project",
|
||||||
|
author_email='client-dev@letsencrypt.org',
|
||||||
|
license='Apache License 2.0',
|
||||||
|
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
|
||||||
|
classifiers=[
|
||||||
|
'Development Status :: 3 - Alpha',
|
||||||
|
'Environment :: Plugins',
|
||||||
|
'Intended Audience :: System Administrators',
|
||||||
|
'License :: OSI Approved :: Apache Software License',
|
||||||
|
'Operating System :: POSIX :: Linux',
|
||||||
|
'Programming Language :: Python',
|
||||||
|
'Programming Language :: Python :: 2',
|
||||||
|
'Programming Language :: Python :: 2.7',
|
||||||
|
'Programming Language :: Python :: 3',
|
||||||
|
'Programming Language :: Python :: 3.4',
|
||||||
|
'Programming Language :: Python :: 3.5',
|
||||||
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Topic :: Internet :: WWW/HTTP',
|
||||||
|
'Topic :: Security',
|
||||||
|
'Topic :: System :: Installation/Setup',
|
||||||
|
'Topic :: System :: Networking',
|
||||||
|
'Topic :: System :: Systems Administration',
|
||||||
|
'Topic :: Utilities',
|
||||||
|
],
|
||||||
|
|
||||||
|
packages=find_packages(),
|
||||||
|
include_package_data=True,
|
||||||
|
install_requires=install_requires,
|
||||||
|
extras_require={
|
||||||
|
'docs': docs_extras,
|
||||||
|
},
|
||||||
|
entry_points={
|
||||||
|
'certbot.plugins': [
|
||||||
|
'dns-sakuracloud = certbot_dns_sakuracloud.dns_sakuracloud:Authenticator',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
test_suite='certbot_dns_sakuracloud',
|
||||||
|
)
|
||||||
@@ -1438,6 +1438,10 @@ def _plugins_parsing(helpful, plugins):
|
|||||||
default=flag_default("dns_route53"),
|
default=flag_default("dns_route53"),
|
||||||
help=("Obtain certificates using a DNS TXT record (if you are using Route53 for "
|
help=("Obtain certificates using a DNS TXT record (if you are using Route53 for "
|
||||||
"DNS)."))
|
"DNS)."))
|
||||||
|
helpful.add(["plugins", "certonly"], "--dns-sakuracloud", action="store_true",
|
||||||
|
default=flag_default("dns_sakuracloud"),
|
||||||
|
help=("Obtain certificates using a DNS TXT record "
|
||||||
|
"(if you are using Sakura Cloud for DNS)."))
|
||||||
|
|
||||||
# things should not be reorder past/pre this comment:
|
# things should not be reorder past/pre this comment:
|
||||||
# plugins_group should be displayed in --help before plugin
|
# plugins_group should be displayed in --help before plugin
|
||||||
|
|||||||
@@ -109,7 +109,8 @@ CLI_DEFAULTS = dict(
|
|||||||
dns_luadns=False,
|
dns_luadns=False,
|
||||||
dns_nsone=False,
|
dns_nsone=False,
|
||||||
dns_rfc2136=False,
|
dns_rfc2136=False,
|
||||||
dns_route53=False
|
dns_route53=False,
|
||||||
|
dns_sakuracloud=False
|
||||||
|
|
||||||
)
|
)
|
||||||
STAGING_URI = "https://acme-staging-v02.api.letsencrypt.org/directory"
|
STAGING_URI = "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class PluginEntryPoint(object):
|
|||||||
"certbot-dns-nsone",
|
"certbot-dns-nsone",
|
||||||
"certbot-dns-rfc2136",
|
"certbot-dns-rfc2136",
|
||||||
"certbot-dns-route53",
|
"certbot-dns-route53",
|
||||||
|
"certbot-dns-sakuracloud",
|
||||||
"certbot-nginx",
|
"certbot-nginx",
|
||||||
"certbot-postfix",
|
"certbot-postfix",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -165,7 +165,8 @@ def choose_plugin(prepared, question):
|
|||||||
|
|
||||||
noninstaller_plugins = ["webroot", "manual", "standalone", "dns-cloudflare", "dns-cloudxns",
|
noninstaller_plugins = ["webroot", "manual", "standalone", "dns-cloudflare", "dns-cloudxns",
|
||||||
"dns-digitalocean", "dns-dnsimple", "dns-dnsmadeeasy", "dns-google",
|
"dns-digitalocean", "dns-dnsimple", "dns-dnsmadeeasy", "dns-google",
|
||||||
"dns-linode", "dns-luadns", "dns-nsone", "dns-rfc2136", "dns-route53"]
|
"dns-linode", "dns-luadns", "dns-nsone", "dns-rfc2136", "dns-route53",
|
||||||
|
"dns-sakuracloud"]
|
||||||
|
|
||||||
def record_chosen_plugins(config, plugins, auth, inst):
|
def record_chosen_plugins(config, plugins, auth, inst):
|
||||||
"Update the config entries to reflect the plugins we actually selected."
|
"Update the config entries to reflect the plugins we actually selected."
|
||||||
@@ -300,6 +301,8 @@ def cli_plugin_requests(config): # pylint: disable=too-many-branches
|
|||||||
req_auth = set_configurator(req_auth, "dns-rfc2136")
|
req_auth = set_configurator(req_auth, "dns-rfc2136")
|
||||||
if config.dns_route53:
|
if config.dns_route53:
|
||||||
req_auth = set_configurator(req_auth, "dns-route53")
|
req_auth = set_configurator(req_auth, "dns-route53")
|
||||||
|
if config.dns_sakuracloud:
|
||||||
|
req_auth = set_configurator(req_auth, "dns-sakuracloud")
|
||||||
logger.debug("Requested authenticator %s and installer %s", req_auth, req_inst)
|
logger.debug("Requested authenticator %s and installer %s", req_auth, req_inst)
|
||||||
return req_auth, req_inst
|
return req_auth, req_inst
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ PORT=${PORT:-1234}
|
|||||||
|
|
||||||
# subpackages to be released (the way developers think about them)
|
# subpackages to be released (the way developers think about them)
|
||||||
SUBPKGS_IN_AUTO_NO_CERTBOT="acme certbot-apache certbot-nginx"
|
SUBPKGS_IN_AUTO_NO_CERTBOT="acme certbot-apache certbot-nginx"
|
||||||
SUBPKGS_NOT_IN_AUTO="certbot-dns-cloudflare certbot-dns-cloudxns certbot-dns-digitalocean certbot-dns-dnsimple certbot-dns-dnsmadeeasy certbot-dns-google certbot-dns-linode certbot-dns-luadns certbot-dns-nsone certbot-dns-rfc2136 certbot-dns-route53"
|
SUBPKGS_NOT_IN_AUTO="certbot-dns-cloudflare certbot-dns-cloudxns certbot-dns-digitalocean certbot-dns-dnsimple certbot-dns-dnsmadeeasy certbot-dns-google certbot-dns-linode certbot-dns-luadns certbot-dns-nsone certbot-dns-rfc2136 certbot-dns-route53 certbot-dns-sakuracloud"
|
||||||
|
|
||||||
# subpackages to be released (the way the script thinks about them)
|
# subpackages to be released (the way the script thinks about them)
|
||||||
SUBPKGS_IN_AUTO="certbot $SUBPKGS_IN_AUTO_NO_CERTBOT"
|
SUBPKGS_IN_AUTO="certbot $SUBPKGS_IN_AUTO_NO_CERTBOT"
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ fi
|
|||||||
-e certbot-dns-nsone \
|
-e certbot-dns-nsone \
|
||||||
-e certbot-dns-rfc2136 \
|
-e certbot-dns-rfc2136 \
|
||||||
-e certbot-dns-route53 \
|
-e certbot-dns-route53 \
|
||||||
|
-e certbot-dns-sakuracloud \
|
||||||
-e certbot-nginx \
|
-e certbot-nginx \
|
||||||
-e certbot-postfix \
|
-e certbot-postfix \
|
||||||
-e letshelp-certbot \
|
-e letshelp-certbot \
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ fi
|
|||||||
-e certbot-dns-luadns \
|
-e certbot-dns-luadns \
|
||||||
-e certbot-dns-nsone \
|
-e certbot-dns-nsone \
|
||||||
-e certbot-dns-route53 \
|
-e certbot-dns-route53 \
|
||||||
|
-e certbot-dns-sakuracloud \
|
||||||
-e certbot-nginx \
|
-e certbot-nginx \
|
||||||
-e certbot-postfix \
|
-e certbot-postfix \
|
||||||
-e letshelp-certbot \
|
-e letshelp-certbot \
|
||||||
|
|||||||
+3
-1
@@ -9,7 +9,7 @@
|
|||||||
# -e makes sure we fail fast and don't submit coveralls submit
|
# -e makes sure we fail fast and don't submit coveralls submit
|
||||||
|
|
||||||
if [ "xxx$1" = "xxx" ]; then
|
if [ "xxx$1" = "xxx" ]; then
|
||||||
pkgs="certbot acme certbot_apache certbot_dns_cloudflare certbot_dns_cloudxns certbot_dns_digitalocean certbot_dns_dnsimple certbot_dns_dnsmadeeasy certbot_dns_google certbot_dns_linode certbot_dns_luadns certbot_dns_nsone certbot_dns_rfc2136 certbot_dns_route53 certbot_nginx certbot_postfix letshelp_certbot"
|
pkgs="certbot acme certbot_apache certbot_dns_cloudflare certbot_dns_cloudxns certbot_dns_digitalocean certbot_dns_dnsimple certbot_dns_dnsmadeeasy certbot_dns_google certbot_dns_linode certbot_dns_luadns certbot_dns_nsone certbot_dns_rfc2136 certbot_dns_route53 certbot_dns_sakuracloud certbot_nginx certbot_postfix letshelp_certbot"
|
||||||
else
|
else
|
||||||
pkgs="$@"
|
pkgs="$@"
|
||||||
fi
|
fi
|
||||||
@@ -43,6 +43,8 @@ cover () {
|
|||||||
min=99
|
min=99
|
||||||
elif [ "$1" = "certbot_dns_route53" ]; then
|
elif [ "$1" = "certbot_dns_route53" ]; then
|
||||||
min=92
|
min=92
|
||||||
|
elif [ "$1" = "certbot_dns_sakuracloud" ]; then
|
||||||
|
min=97
|
||||||
elif [ "$1" = "certbot_nginx" ]; then
|
elif [ "$1" = "certbot_nginx" ]; then
|
||||||
min=97
|
min=97
|
||||||
elif [ "$1" = "certbot_postfix" ]; then
|
elif [ "$1" = "certbot_postfix" ]; then
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ dns_packages =
|
|||||||
certbot-dns-luadns \
|
certbot-dns-luadns \
|
||||||
certbot-dns-nsone \
|
certbot-dns-nsone \
|
||||||
certbot-dns-rfc2136 \
|
certbot-dns-rfc2136 \
|
||||||
certbot-dns-route53
|
certbot-dns-route53 \
|
||||||
|
certbot-dns-sakuracloud
|
||||||
all_packages =
|
all_packages =
|
||||||
acme[dev] \
|
acme[dev] \
|
||||||
.[dev] \
|
.[dev] \
|
||||||
@@ -52,6 +53,7 @@ source_paths =
|
|||||||
certbot-dns-nsone/certbot_dns_nsone
|
certbot-dns-nsone/certbot_dns_nsone
|
||||||
certbot-dns-rfc2136/certbot_dns_rfc2136
|
certbot-dns-rfc2136/certbot_dns_rfc2136
|
||||||
certbot-dns-route53/certbot_dns_route53
|
certbot-dns-route53/certbot_dns_route53
|
||||||
|
certbot-dns-sakuracloud/certbot_dns_sakuracloud
|
||||||
certbot-nginx/certbot_nginx
|
certbot-nginx/certbot_nginx
|
||||||
certbot-postfix/certbot_postfix
|
certbot-postfix/certbot_postfix
|
||||||
letshelp-certbot/letshelp_certbot
|
letshelp-certbot/letshelp_certbot
|
||||||
|
|||||||
Reference in New Issue
Block a user