Skip to content

Commit

Permalink
Merge pull request #47 from maykinmedia/feature/46-use-django-simple-…
Browse files Browse the repository at this point in the history
…certmanager-library

Feature/46 use django simple certmanager library
  • Loading branch information
sergei-maertens committed Aug 31, 2022
2 parents 6cd56ba + f5ada3c commit 3fcc230
Show file tree
Hide file tree
Showing 29 changed files with 146 additions and 950 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Changes
=======

0.20.0 (2022-08-23)
0.21.0 (2022-8-30)
-------------------

* Moving TLS certificate management to another library called``django-simple-certmanager``. Managing Certificates with this library remains possible for now, but please consider to update your project.

0.20.0 (2022-8-22)
-------------------

* Added database field ServiceUrlField
Expand Down
1 change: 0 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Features
========

* Store services with their configuration in the database
* Manage (mutual) TLS certificates
* Integrate with OpenAPI 3.0 specifications
* NLX support
* Declare data/domain objects as modern Python dataclasses
Expand Down
8 changes: 0 additions & 8 deletions docs/commands.rst

This file was deleted.

4 changes: 1 addition & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Features
--------

* Store services with their configuration in the database
* Manage (mutual) TLS certificates
* Integrate with OpenAPI 3.0 specifications
* NLX support
* Declare data/domain objects as modern Python dataclasses
Expand All @@ -20,7 +19,7 @@ Developed for use in Dutch government software where data exchange with external
services is run of the mill, this library provides flexibility in configuring your
environment(s).

ZGW Consumers allows you to centralize the location, credentials, TLS certificate... to
ZGW Consumers allows you to centralize the location, credentials, API schema information... to
connect to HTTP-based services. There is first class support for OpenAPI 3
specifications, but you are not limited to "modern" RESTful services! SOAP/XML services
can still leverage the utilities offered by ZGW Consumers.
Expand All @@ -33,7 +32,6 @@ can still leverage the utilities offered by ZGW Consumers.
settings
models
model_fields
commands
drf
testing

Expand Down
10 changes: 0 additions & 10 deletions docs/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ specification. It supports:
.. automethod:: get_auth_header


**Certificate**

The ``Certificate`` model holds your TLS certificates. Files on disk are deleted when
model instances are deleted.

.. autoclass:: zgw_consumers.models.Certificate
:members:
:exclude-members: DoesNotExist, MultipleObjectsReturned, clean, save


Abstract
--------

Expand Down
6 changes: 2 additions & 4 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ Installation
2. Add ``zgw_consumers`` to the ``INSTALLED_APPS`` setting.
3. Run ``python src/manage.py migrate`` to create the necessary database tables
4. Configure `django-privates <https://django-privates.readthedocs.io/en/latest/quickstart.html>`_
correctly - the TLS certificates and keys are stored outside of ``settings.MEDIA_ROOT``
for security reasons.
4. Configure `django-simple-certmanager <https://django-simple-certmanager.readthedocs.io/en/latest/quickstart.html>`_
correctly


Usage
Expand All @@ -28,7 +27,6 @@ Usage
In the Django admin, you can create:

* ``Service`` instances to define your external APIs.
* ``Certificate`` instances to (re-)use (mutual) TLS configuration
* ``NLXConfig`` configuration for your `NLX <https://nlx.io/>`_ outway.

Constructing an OpenAPI 3 client
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ packages = find:
install_requires =
django
django-choices
django-privates
django-relativedelta
django-solo
gemma-zds-client>=0.14.0
django-simple-certmanager
requests
pyopenssl
# test package
Expand Down
1 change: 1 addition & 0 deletions testapp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"django.contrib.messages",
"django.contrib.admin",
"zgw_consumers",
"simple_certmanager",
"testapp",
]

Expand Down
14 changes: 0 additions & 14 deletions tests/data/Readme.md

This file was deleted.

1 change: 0 additions & 1 deletion tests/data/invalid.certificate

This file was deleted.

31 changes: 0 additions & 31 deletions tests/data/test.certificate

This file was deleted.

52 changes: 0 additions & 52 deletions tests/data/test.key

This file was deleted.

31 changes: 0 additions & 31 deletions tests/data/test2.certificate

This file was deleted.

52 changes: 0 additions & 52 deletions tests/data/test2.key

This file was deleted.

Loading

0 comments on commit 3fcc230

Please sign in to comment.