Commit Graph

71 Commits

Author SHA1 Message Date
e7547ff8d3 fix: fix for CVE-2023-0286 & CVE-2023-23931 - cryptography update to 39.0.2 2023-03-18 23:56:22 +00:00
78e8d9950d fix: upgrade setuptools to fix CVE-2022-40897 2023-03-18 23:38:48 +00:00
78f0332a2d Merge branch 'dev' into nkupdates-password-policy 2023-03-17 15:31:10 -04:00
92be9567de Merge pull request #1434 from subbink/improve-psql-docs
PostgreSQL Support Improvement
2023-03-17 15:17:41 -04:00
1cea4b7ce3 feat(authentication): added password policy checker function 2023-03-17 03:44:08 +00:00
7e2fa1bfaa fix: fixes Python 3.11 incompatibility using ancient lxml binary PyPI
Fixes Python 3.11 incompatibility using ancient lxml binary PyPI built against old libxml2.

This fixes #1442 and closes #1433.

The issue with python3-saml not working is because the binary lxml wheel is built against a different version of libxml2.

``--no-binary lxml`` can be used to fix this and python3-saml will work.

for references check these:
- https://github.com/onelogin/python3-saml/issues/292
- https://bugs.launchpad.net/lxml/+bug/1960668
- https://github.com/open-formulieren/open-forms/pull/2247

```
Tested on:
 - ubuntu:23.04 - WORKING
 - ubuntu:22.10 - WORKING
 - ubuntu:22.04 - WORKING
 - ubuntu:20.04 - WORKING
 - ubuntu:18.04 - NOT WORKING - pip usage error with -r requirements.txt
 - debian:10    - WORKING
 - debian:11    - WORKING
 - alpine:edge  - WORKING
 - alpine:3.17  - WORKING
 - alpine:3.16  - WORKING
 - alpine:3.15  - WORKING
 - alpine:3.14  - WORKING
 - rockylinux:9 - WORKING
 - rockylinux:8 - NOT WORKING - pip usage error with -r requirements.txt
 - almalinux:9  - WORKING
 - almalinux:8  - NOT WORKING - pip usage error with -r requirements.txt
 - fedora:36    - WORKING
 - fedora:37    - WORKING
 - fedora:38    - WORKING
 - fedora:39    - WORKING
```
2023-03-14 21:12:06 +00:00
c61489adfc Improve things for using PostgreSQL 2023-03-12 13:11:20 +01:00
d055fd83c5 Documentation, Fix 2023-03-08 08:52:27 +01:00
7a61c56c49 Fix reqs and Flask Migrate Order 2023-02-18 17:38:43 +00:00
516bc52c2f Revert "Revert "Merge pull request #1371 from AgentTNT/AdminLTE-Upgrade""
This reverts commit e2ad3e2001.
2023-02-18 11:04:14 -05:00
e2ad3e2001 Revert "Merge pull request #1371 from AgentTNT/AdminLTE-Upgrade"
This reverts commit 929cb6302d, reversing
changes made to 0418edddd9.
2023-02-18 09:04:37 -05:00
8ae8d33c12 Removed duplicate entries from requirements.txt file. 2023-02-17 20:10:34 -05:00
d12f03c734 Corrected dependency conflicts with the recently merged requirements.txt file.
Updated minor formatting issue with app's run.py file.
2023-02-17 18:32:36 -05:00
2ff01fbfe9 Merge branch 'master' into AdminLTE-Upgrade 2023-02-17 18:17:32 -05:00
ac786f45be Remove btn-flat to convert to round buttons (first pass)
Convert col-xs-* to just col-* as part of bootstrap v3 -> v4
Convert box-* -> card-* as part of bootstrap v3 -> v4
Moved domain actions on main dashboard to a dropdown menu to avoid clutter
Added "Log Out" to top header left
Hid OTP on admin edit user to only show the disable card & options if the user account has OTP enabled
2023-02-06 15:45:13 +00:00
7f25e3b555 Initial go at upgrading from Bootstap v3 to v4 and to AdminLTE v3.2.0 2023-02-02 21:19:15 +00:00
e411bc9f19 Enable CAPTCHA 2023-01-30 22:46:59 +00: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
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
4e2ea4bc5e Revert "Removed mysqlclient requirement based on issue 1305. Wiki documentation has already been updated to reflect this change."
This reverts commit 542af959e1.
2022-12-11 17:43:02 -05:00
542af959e1 Removed mysqlclient requirement based on issue 1305. Wiki documentation has already been updated to reflect this change. 2022-12-09 09:48:51 -05:00
5f304ee29a Update to python-ldap 3.4.2
Minor version bump. This is necessary to resolve build issues on Alpine 3.16+ without impacts for any other distributions.
2022-08-22 20:40:17 -04:00
41642fcea4 fix: Update JS minifier library 2022-06-24 23:03:01 +02:00
52b704baeb Set SameSite on cookies
Setting this attribute on a cookie marks it as non-cross-site, so it
is only send in requests to our own server. It is reasonable that no
one else should need our session or csrf data. Setting it explicitly
also prevents any issues from the ongoing change in browser behaviour [0]
when it is unset.

Seasurf supports the SameSite attribute starting with v0.3. As nothing
obviously broke, I used the opportunity and updated all the way to the
most recent version.

The SeaSurf default for SameSite is already `Lax`, so it only needs to
be set for the session cookie.

[0] https://developers.google.com/search/blog/2020/01/get-ready-for-new-samesitenone-secure
2022-06-18 18:51:42 +02:00
564ec6086d Replace pyOpenSSL with cryptography
This is literally the example from the docs [0]. The only thing I
adapted are the parameters for the keys and certificate, so they
stay the same.

Fixes #1086

[0] https://cryptography.io/en/latest/x509/tutorial/#creating-a-self-signed-certificate
2022-05-07 21:32:19 +02:00
c8d14d91fe cryptography-dependency-addition 2022-04-27 16:11:09 +03:00
c9d97642b3 Fixed werkzeug dependency 2022-03-29 10:30:19 +03:00
063d259af8 jinja-dependency-fix 2022-03-27 15:19:35 +03:00
5d8e277b3f pinned compatible itsdangerous version 2022-02-28 11:35:24 +02:00
9ef0f2b8d6 Bump python-ldap from 3.3.1 to 3.4.0
Bumps [python-ldap](https://github.com/python-ldap/python-ldap) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/python-ldap/python-ldap/releases)
- [Commits](https://github.com/python-ldap/python-ldap/compare/python-ldap-3.3.1...python-ldap-3.4.0)

---
updated-dependencies:
- dependency-name: python-ldap
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-17 12:08:19 +01:00
1c9ca60508 fix: jsmin 2.2.2 no longer available. Use 3.0.0 (#1021) 2021-10-30 21:30:53 +02:00
5f10f739ea Bump pyyaml from 5.3.1 to 5.4 (#912) 2021-03-27 19:33:49 +01:00
7f86730909 allow-server-side-sessions (#855) 2021-01-24 09:09:53 +01:00
94eeae0cad Downgrade to dnspython>=1.16.0 2020-10-10 21:52:46 +02:00
75a30f14fb Dockerfile and requirements.txt update
- Fix bug in python requests module missing after delete py3-pip from build stage
- Downgrade the requirement of bcrypt to >=3.1.7 for older python3 version compatibility
2020-10-10 21:47:58 +02:00
0dfced4968 Upgrade pip packages 2020-10-10 20:27:09 +02:00
6381d87ec3 Update gunicorn 19.7.1 -> 20.0.4 2020-03-13 00:22:32 +01:00
7739bf7cfc Add user email verification 2019-12-21 21:43:03 +07:00
53a7545ccc Upgrade mysqlclient package to work with MySQL 8.x #571 2019-12-07 18:10:06 +07:00
8de6df4d3b Fix the tests
Fix the tests

Fix the tests
2019-12-06 10:59:19 +07:00
8ea00b9484 Refactoring the code
- Use Flask blueprint
- Split model and views into smaller parts
- Bug fixes
- API adjustment
2019-12-02 10:32:03 +07:00
dfce7eb537 Upgrade SQLAlchemy version to pass the security check. Set version for other libs in requirements.txt 2019-07-15 09:50:23 +07:00
1feb77e2f3 Add Api to PowerDNS-Admin 2019-03-01 23:50:04 +01:00
c456aa2e7a Add ttl_options setting
Adds a new setting to define the options in the TTL dropdown when
editing a record. The setting is a comma separated string with the
valid options.
2018-11-24 12:45:14 +00:00
5f049debe5 Adding Flask-SeaSurf module for CSRF protection. 2018-11-21 10:24:33 +07:00
add5fd3e52 Upgrade requests module to 2.20.0 as CVE-2018-18074 2018-10-31 16:53:27 +07:00
8a20d3f2d8 migrated to authlib 2018-10-22 02:33:46 +01:00
396ce14b9f OIDC (#1)
Implemented OIDC using authlib
2018-10-21 23:38:12 +01:00
65b0c6e9b9 Remove Flask-WTF from requirements.txt 2018-09-10 10:15:38 +07:00