Commit Graph

1472 Commits

Author SHA1 Message Date
e411bc9f19 Enable CAPTCHA 2023-01-30 22:46:59 +00:00
c5b9e24604 Merge pull request #1366 from Ssshafi/master
Use SITE_NAME as title
2023-01-26 18:21:33 -05:00
91c1907486 Update login.html
Use SITE_NAME for login box title on login page (with default value).
This can be useful when using multiple powerdns admin in an organization.
2023-01-26 00:02:08 +01:00
b607c1b7ff Update base.html
Use SITE_NAME for upper left title on base page.
This can be useful when using multiple powerdns admin in an organization.
2023-01-25 23:59:35 +01:00
d50d57bc70 Merge pull request #1357 from pneb/patch-6
fix: Potential fix for a regex bug
2023-01-25 16:19:27 -05:00
04ee128161 Merge branch 'master' of github.com:PowerDNS-Admin/PowerDNS-Admin 2023-01-24 05:46:15 -05:00
51249aecd3 Merge pull request #1212 from corubba/feature/privacy-first
Privacy first
2023-01-24 05:34:30 -05:00
948973ac83 Merge branch 'feature/privacy-first' 2023-01-24 05:32:38 -05:00
0c42bdad5f Merge pull request #1359 from Metrax/issue-1358
Fixing Wrapping in History Details Modal in Dashboard
2023-01-14 12:04:43 -05:00
246ad7f7d2 Fixing Wrapping in History Details Modal in Dashboard
resolves #1358
2023-01-13 10:05:20 +01:00
18bc336d7a Potential fix 2023-01-11 18:21:40 +08:00
bb29c27430 Merge pull request #1354 from Metrax/support-pdns4.7
Support pdns4.7
2023-01-10 08:01:17 -05:00
debeda5b74 Merge pull request #1340 from pneb/patch-5
patch(lib/utils.py): Fixes pretty_domain_name issue
2023-01-10 08:00:28 -05:00
c02cb3b7fe Model change: Changing domain model type variable to 8 chars
PowerDNS 4.7 is supporting 2 new zone types: "producer" & "consumer"
Due to the domain type variable is limited to 6 chars, PDA Zone update will fail if producer or cusomer zones exist.
To solve this problem, this commit increases the lenght of the domain model type variable to 8 chars.
2023-01-10 13:51:04 +01:00
9088f93233 Upgrade Database: Changing domain table type column to 8 chars
PowerDNS 4.7 is supporting 2 new zone types: "producer" & "consumer"
Due to the domain type column is limited to 6 chars, PDA Zone update will fail if producer or cusomer zones exist.
To solve this problem, this commit increases the lenght of the domain type column to 8 chars.
2023-01-10 13:49:16 +01:00
b163e517bb Update utils.py 2023-01-09 11:10:22 +08:00
53f6f3186e Merge pull request #1343 from trappiz/master
Bump alpine to 3.17 in dockerfile
2023-01-07 19:28:31 -05:00
4de7bbe354 Use alpine 3.17 as base + pip fix to remove warnings 2023-01-06 16:43:48 +01:00
7e973c7219 bump alpine to 3.15 2022-12-23 12:18:00 +01:00
c7eaec27d8 Update utils.py 2022-12-23 08:23:14 +08:00
1d885278d4 Cosmetic 2022-12-22 22:55:05 +01:00
7d153932b3 Fix back_populate relationships 2022-12-22 22:50:01 +01:00
8dd03a4d85 Update tests fix
Fix migration init_db 'id'
Handle app context when needed
Fix conftest fixtures
Rearrange test Dockerfiles
Hide DeprecationWarning during pytest execution
Upgrade all python packages
2022-12-22 22:47:02 +01:00
33ec2acd3f Added a GitHub labels configuration file. 2022-12-22 07:20:02 -05:00
eb16353476 Testing new GitHub Dependabot configuration. 2022-12-22 06:20:12 -05:00
32e19777cc Updating GitHub stale automation configuration to match new label schema. 2022-12-22 06:00:06 -05:00
8d849ee2a1 Cleanup
The `unit/apikey` directory is removed because it does not contain any
tests. Same for `unit/test_decorators.py`.
The `fixture` module is renamed to the special-name `conftest` [0] so
they are available in all tests without the need to import them. With
that in place, I removed all now unneeded or previously already unused
imports from the tests.
Also removed that wierd `sys.path` bit from `unit/zone/test_admin_apikey.py`,
no idea what that was originally intended for.

[0] https://docs.pytest.org/en/6.2.x/fixture.html#conftest-py-sharing-fixtures-across-multiple-files
2022-12-19 09:37:01 +01:00
e920bf5009 Fix broken code
PR #1089 is the culprit, as was already predicted in the review.
2022-12-19 09:37:01 +01:00
b9eb593acd Fix tests
Increased the version of pytest to make it work with py 3.10 [0].
The GET calls no longer return list but the object itself, fixed the
tests and assertions to account for that. The tests did not account for
the later added `allow_user_remove_domain` setting. And there were
issues with missing and non-stopped patchers/mocks.

Now all tests are at least passing.

[0] https://github.com/pytest-dev/pytest/pull/8540
2022-12-19 09:37:01 +01:00
44cf98a159 Fix test docker
The Dockerfile did not work as is, because the dependencies in
requirements.txt are newer than the stretch-image with its python v3.5
can support/run. Use stable debian with the lts nodejs instead, plus
had to add some libs to make the wheel build succeed.
jsonschema v4 breaks things, so its version needs to be pinned until
bravado is fixed [0].

[0] https://github.com/Yelp/bravado-core/pull/385/files#r731674447
2022-12-19 09:37:01 +01:00
0404748e6e Merge pull request #1333 from pneb/master
enhancement: Added 2 new files (auto-setup)
2022-12-15 06:40:32 -05:00
3aa6d1f258 Create setup_win.bat 2022-12-15 12:54:31 +08:00
644be65495 Create setup_linux.sh 2022-12-15 12:53:53 +08:00
3a6d173d05 Merge pull request #1332 from PowerDNS-Admin/revert-1331-patch-4
Revert "enhancement(routes/index.py): OIDC supports HTTP Scheme now"
2022-12-14 20:38:15 -05:00
89f3d4d01a Revert "enhancement(routes/index.py): OIDC supports HTTP Scheme now" 2022-12-14 20:37:30 -05:00
96a88d918c Merge pull request #1331 from pneb/patch-4
enhancement(routes/index.py): OIDC supports HTTP Scheme now
2022-12-14 19:01:27 -05:00
f6c49c379d Update index.py 2022-12-15 06:13:27 +08:00
30ed68471e Merge pull request #1322 from Metrax/master
Fixing Validation problem on LDAP form
2022-12-13 20:59:22 -05:00
8373363c4d Merge pull request #1323 from jbe-dw/fixLDAPDeprecatedOpt
Draft: Fix pyhton-ldap upgrade
2022-12-13 20:56:03 -05:00
1a05518018 Merge pull request #1330 from caraar12345/aaroncarson/fix/1329
Fix #1329
2022-12-13 20:54:26 -05:00
ff671ebabe Fix 1329 2022-12-14 00:34:12 +00:00
9a38e1758f Merge pull request #1328 from Ssshafi/patch-1
Update login.html
2022-12-13 09:04:40 -05:00
c03f799c4a Merge pull request #1327 from dmcken/docs-updates
Docs updates
2022-12-13 08:20:27 -05:00
d0290ac469 Update login.html
Use SITE_NAME for login box title on login page.
This can be useful when using multiple powerdns admin in an organization.
2022-12-13 09:10:21 +01:00
4d529ec1d6 Linted the main menu. 2022-12-13 02:29:05 -04:00
b0159beaec Add SQLite as a supported database. 2022-12-12 23:12:03 -04:00
dcbc4c3f7e Add PostgreSQL install documentation. 2022-12-12 22:50:26 -04:00
94ce26eaad Minor cleanup of MySQL docs. 2022-12-12 22:49:51 -04:00
cc63d069f6 Fill in MySQL server installation directions. 2022-12-12 22:41:41 -04:00
6f450457ef Update env docs from legal_envvars 2022-12-12 22:06:44 -04:00