Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: clazzor/certbot-dns-wedos
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.3
Choose a base ref
...
head repository: clazzor/certbot-dns-wedos
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Jul 1, 2024

  1. Copy the full SHA
    766733b View commit details
  2. Copy the full SHA
    8a1751e View commit details
  3. Copy the full SHA
    b4ac693 View commit details
  4. Copy the full SHA
    4d935f0 View commit details
  5. Copy the full SHA
    c4c017a View commit details
  6. Copy the full SHA
    c2f9d6f View commit details
  7. feat(snapcraft.yaml) ..

    clazzor authored Jul 1, 2024
    Copy the full SHA
    1cd39a8 View commit details
  8. feat(snapcraft.yaml): ...

    clazzor authored Jul 1, 2024
    Copy the full SHA
    115c710 View commit details
  9. Copy the full SHA
    6194614 View commit details
  10. feat(snapcraft.yaml): ..

    clazzor authored Jul 1, 2024
    Copy the full SHA
    2fa86a8 View commit details
  11. feat(snapcraft.yaml) ...

    clazzor authored Jul 1, 2024
    Copy the full SHA
    8e02b04 View commit details
  12. feat(snapcraft.yaml): ...

    clazzor authored Jul 1, 2024
    Copy the full SHA
    ed3c4f8 View commit details
  13. Update snapcraft.yaml

    clazzor authored Jul 1, 2024
    Copy the full SHA
    6977db4 View commit details
  14. feat(snapcraft.yaml): ...

    clazzor authored Jul 1, 2024
    Copy the full SHA
    b1b330e View commit details
  15. Update snapcraft.yaml

    clazzor authored Jul 1, 2024
    Copy the full SHA
    adea0df View commit details
  16. feat(snapcraft.yaml): ...

    clazzor authored Jul 1, 2024
    Copy the full SHA
    e1d9e45 View commit details
  17. feat(snapcraft.yaml) ..

    clazzor authored Jul 1, 2024
    Copy the full SHA
    0baee0d View commit details

Commits on Jul 2, 2024

  1. feat(snapcraft.yaml): ..

    clazzor authored Jul 2, 2024
    Copy the full SHA
    7132594 View commit details
  2. feat(snapcraft.yml): ..

    clazzor authored Jul 2, 2024
    Copy the full SHA
    be7a272 View commit details
  3. feat(snapcraft.yml): ..

    clazzor authored Jul 2, 2024
    Copy the full SHA
    9b7cbba View commit details
  4. feat(snapcraft.yml): ..

    clazzor authored Jul 2, 2024
    Copy the full SHA
    f2546f0 View commit details
  5. feat(snapcraft.yml): ..

    clazzor authored Jul 2, 2024
    Copy the full SHA
    3ae4520 View commit details
  6. feat(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    e69e865 View commit details
  7. feat(snapcraft.yaml): ..

    clazzor authored Jul 2, 2024
    Copy the full SHA
    88a69ab View commit details
  8. feat(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    9ec3bc4 View commit details
  9. feat(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    a94cc2a View commit details
  10. feat(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    3c9b07f View commit details
  11. feat(snapcraft.yaml): ....

    clazzor authored Jul 2, 2024
    Copy the full SHA
    17c8107 View commit details
  12. feat(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    43863c5 View commit details
  13. feat(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    253946f View commit details
  14. feat(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    5dfbc05 View commit details
  15. feat(snapcraft.yaml): ..

    clazzor authored Jul 2, 2024
    Copy the full SHA
    91ca322 View commit details
  16. feat(snapcraft.yaml): ..

    clazzor authored Jul 2, 2024
    Copy the full SHA
    cf1948e View commit details
  17. feat(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    f83299c View commit details
  18. feat:(snapcraft.yaml): ...

    clazzor authored Jul 2, 2024
    Copy the full SHA
    068c13e View commit details

Commits on Jul 4, 2024

  1. feat(snapcraft.yaml): ...

    clazzor authored Jul 4, 2024
    Copy the full SHA
    cfd4e5f View commit details
  2. Copy the full SHA
    ca536c3 View commit details
  3. Copy the full SHA
    d38d2ac View commit details

Commits on Nov 8, 2024

  1. Added more descriptive error message

    Signed-off-by: Dusan Cervenka <cervenka.dusan@gmail.com>
    Hadatko committed Nov 8, 2024
    Copy the full SHA
    839da4b View commit details

Commits on Nov 18, 2024

  1. Merge pull request #6 from Hadatko/feature/response

    Added more descriptive error message + Lint
    clazzor authored Nov 18, 2024
    Copy the full SHA
    3720ac2 View commit details
Showing with 21 additions and 10 deletions.
  1. +3 −0 .gitignore
  2. +4 −3 certbot_dns_wedos/dns_wedos.py
  3. +0 −5 setup.py
  4. +14 −2 snap/snapcraft.yaml
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build
*.egg-info
dist
7 changes: 4 additions & 3 deletions certbot_dns_wedos/dns_wedos.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import hashlib, pytz, re
from datetime import datetime
from datetime import datetime

import requests, json
from typing import Any, Callable, Optional

import logging
import logging
from certbot import errors
from certbot.plugins.dns_common import CredentialsConfiguration, DNSAuthenticator

@@ -58,6 +58,7 @@ def _handlerResponse(self, response: requests.post) -> dict:
if response['response']['code'] >= 2000:
raise errors.PluginError('Error code received from Wedos API, The error '
f'code is {response["response"]["code"]}, '
f'details {response["response"]}'
f'you can find what the code mean here: {WEDOS_CODE}')
return response

@@ -133,7 +134,7 @@ def _validate_credentials(self, credentials: CredentialsConfiguration) -> None:
if not auth:
raise errors.PluginError('Missing parameter AUTH (password) for the Wedos API.'
' [dns_wedos_auth=ExamplePassword]')
if propagation_seconds < 300:
if propagation_seconds < 300:
raise errors.PluginError('Propagation seconds cannot be lower than 300 seconds.'
' (Recommended propagation time is 420 seconds)')
if '@' not in user:
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -45,11 +45,6 @@
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
],
options={
'bdist_wheel': {
'universal':'1'
}
},
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
16 changes: 14 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: certbot-dns-wedos
version: '2.3.0'
summary: Wedos DNS Authenticator plugin for Certbot
description: Wedos DNS Authenticator plugin for Certbot
website: https://github.com/clazzor/certbot-dns-wedos
license: Apache-2.0
base: core20
base: core22
grade: stable
confinement: strict
adopt-info: certbot-dns-wedos
@@ -14,6 +13,13 @@ architectures:
- build-on: armhf

parts:
install-dependencies:
plugin: nil
override-pull: |
if [ "$SNAP_ARCH" = "armhf" ]; then
apt update
apt -y install libffi-dev libssl-dev cargo pkg-config
fi
certbot-dns-wedos:
plugin: python
source: .
@@ -22,6 +28,12 @@ parts:
snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d '"[:space:]'`
build-environment:
- SNAP_BUILD: "True"
# build-packages:
# - libffi-dev
# - libssl-dev
# - cargo
# - pkg-config
after: [install-dependencies]
certbot-metadata:
plugin: dump
source: .