Commit graph

126 commits

Author SHA1 Message Date
4e1bc91353 Document switch to Poetry 2023-05-02 18:06:59 +02:00
f2acbd418a Update dependencies 2023-05-02 18:05:30 +02:00
2631a27c1c Add TZ for consistent Celery timestamps 2023-02-20 15:41:16 +01:00
866703d3aa Optimize .dockerignore 2023-02-20 13:37:24 +01:00
7b4b19485f Improve docker setup
- add .dockerignore to minimize build context
- add runtime ldap and sasl libraries
- add entrypoint script to allow initialization as root and drop
  privileges for gvaldap.sh
- add importlib-metadata dependency required by celery
2023-02-20 13:03:09 +01:00
bbeadece97 Switch from pipenv to poetry 2023-02-19 17:45:35 +01:00
b3fab53665 Release 0.7.0
- improve Vagrant setup
 -----BEGIN PGP SIGNATURE-----
 
 iQFIBAABCgAyFiEEKHuXKkUYdvdO9493DXkdyNc3wdkFAl6LaqAUHGphbkBkaXR0
 YmVybmVyLmluZm8ACgkQDXkdyNc3wdnreQf/V4c+TpiqJ+Rm7k8MVch/T9+mCran
 8c/b3+4S8u+lstgAjdlwsEL+c1drNLHIjZNKkoeP7FGQ7/kP8jjXFgIfqEfjejZG
 Jy5PN0SzSscCo4rr0+PaeSZ0MziX5bdbTLqAlnazcy67CCCUPUNmE8QBDEaI6sEG
 sv+UMbcVBBsCTFtsnORmLCqfZtEq9V/gi/q9l7JWNUYA2Wq437mfjuNfoax2KKl9
 bOop1Dx4cnfCBzQIOM+hNNWy5x7TZbd49TqTRLeciFRbtAHLfi3QDKankwZFgjWt
 TNKq/praopYzrJ9My9NkZIYvvl+91P0S76M+huSSgoAtcwAU9PgmWDAZFA==
 =8SNS
 -----END PGP SIGNATURE-----

Merge tag '0.7.0'

Release 0.7.0

- improve Vagrant setup
2020-04-06 19:45:09 +02:00
d1fc3f80ab Merge branch 'release/0.7.0' into production 2020-04-06 19:44:52 +02:00
190e6e2a4b Bump version, update changelog 2020-04-06 19:44:33 +02:00
562ae2a61a Move some grains to pillars 2020-03-04 17:20:59 +01:00
11b6051bc0 Fix typo in change-vmdebootstrap-default-dhcp.sh 2020-03-04 00:27:49 +01:00
a98f6e54e7 Make IP address assignment work with libvirt
The systemd-networkd script in vmdebootstrap that is used to build the
Debian libvirt vagrant boxes is a bit too eager assigning DHCP to
network interfaces. This patch changes the network script to only take
care of the primary network interface (first non loopback).
2020-03-04 00:07:58 +01:00
9f662e3afb Optimize Vagrant setup
- define grains to match optimized gvasalt repository
- define minion configuration in separate file
- drop custome salt/bootstrap.sh
- adapt Vagrantfile to use the custom grains file
- increase memory size of created VM to allow the salt provisioning to
  succeed
2020-03-03 22:11:46 +01:00
b54b8577cb Update Vagrant setup to Debian Buster and Python 3 2020-03-03 16:15:18 +01:00
4ef03f141c Update issue and tag URLs for releases Sphinx plugin 2020-03-03 15:29:19 +01:00
f9ade2ea20 Release 0.6.0
- Python 3 support
 - Redis result backend
 - Automatic retry for unavailable LDAP server
 - Pipenv dependency management
 -----BEGIN PGP SIGNATURE-----
 
 iQEzBAABCgAdFiEEKHuXKkUYdvdO9493DXkdyNc3wdkFAl5eZPkACgkQDXkdyNc3
 wdnpwQgAqEtqKhV2X8AmRjAUqBMO6cdMjl678cBX5d+uV8ok1SdMLZ28zFjgbCRw
 at+Du3VCVM3CoM11pgetyVO/N9pXRbhME9ogmKQY1vmHupXUvj54sUg7ia11B9OA
 cgsgTH8bKqys/ZJyV7TiKj+WinwvdUpmFdemkkcSl8Wk/MnuSI0CQt+TX79SlSET
 J1VzAedIVEP078TsSrXRBuY/AWn6UQ0ouWcjx3sP9ssLzFQ7ql3dysB1kXfrpOF9
 tldx93t7JNZVhdGK+BEy/T5CxX5LbpJCyQ5J7rt8Cd0/RK2nRPuqswuNmQfeu6mB
 t5K6rOlcWpht/waPRCAc2EJHvHMxEQ==
 =RxNE
 -----END PGP SIGNATURE-----

Merge tag '0.6.0'

Release 0.6.0

- Python 3 support
- Redis result backend
- Automatic retry for unavailable LDAP server
- Pipenv dependency management

* tag '0.6.0':
  Release preparation for 0.6.0
2020-03-03 15:09:03 +01:00
99e22ab9dd Merge branch 'release/0.6.0' into production
* release/0.6.0: (29 commits)
  Release preparation for 0.6.0
  Fix missing bind=True
  Implement automatic retry for LDAP errors
  Unify docker setup with gvaweb and gva
  Add Dockerfile and entrypoint script
  Reorganize package structure
  Fix compatibility with Django 2.2 and other dependencies
  Use Pipenv for dependency management
  Change gvacommon dependency URL
  Update vagrant setup to stretch64 with LXC
  Protect /etc/salt/grains
  Ignore PyCharm files
  Improve Vagrant setup
  Refactoring of ldaptasks
  Mark LDAP field names as byte strings
  Change salt minion id in Vagrantfile
  Add tests for delete tasks
  Add tests for ldaptasks functions
  Update Django and gvacommon dependencies
  Add unit tests
2020-03-03 15:08:00 +01:00
2297c82cf2 Release preparation for 0.6.0
- Bump copyright years
- Bump version number
- Update changelog
- Update documentation
2020-03-03 15:07:39 +01:00
8875765018 Fix missing bind=True 2020-03-03 14:54:16 +01:00
99c80f5759 Implement automatic retry for LDAP errors 2020-03-03 14:50:03 +01:00
bdcd16b7e7 Unify docker setup with gvaweb and gva 2020-03-03 13:12:41 +01:00
628d6ee550 Add Dockerfile and entrypoint script 2020-03-03 12:22:45 +01:00
34f788e099 Reorganize package structure
This commit reorganizes the package structure. The gvaldap.settings
modules have been merged. The gvaldap.ldaptasks module has been move up
one level to have task names without the gvaldap prefix.

isort control instructions have been added to setup.cfg.
2020-03-03 12:20:13 +01:00
427fdd9c03 Fix compatibility with Django 2.2 and other dependencies
- drop mockldap in favour of volatildap
- fix URLs and settings
- fix tests
2020-03-02 15:40:08 +01:00
c4485945fc Use Pipenv for dependency management 2020-03-02 15:39:29 +01:00
ea07d53307 Change gvacommon dependency URL 2019-06-26 22:54:35 +02:00
1091084438 Update vagrant setup to stretch64 with LXC 2018-08-10 11:56:29 +02:00
cab9e9701b Protect /etc/salt/grains
Make sure that the permissions of /etc/salt/grains only allow access for the
root user.
2016-09-25 17:27:42 +02:00
2d347e6e96 Ignore PyCharm files 2016-09-25 01:10:45 +02:00
937d0aff97 Improve Vagrant setup
Use debian/contrib-jessie64 base box, install python-cryptography before
saltstack bootstrap.
2016-09-25 01:10:17 +02:00
2ff7dd8902 Refactoring of ldaptasks
All LDAP tasks return a dictionary now to allow chaining with other
tasks, the new task delete_ldap_user_chained has been added to allow
user deletion after other Celery tasks.
2016-02-07 22:41:36 +01:00
54875619aa Mark LDAP field names as byte strings
The django-ldapdb code cannot handle unicode field names with real LDAP
directories. This commit marks the field names of LDAP entities as byte
strings.
2016-02-07 22:40:19 +01:00
1a24cf9c50 Change salt minion id in Vagrantfile 2016-02-06 13:37:53 +01:00
94aacf1398 Add tests for delete tasks
This commit raises coverage for ldaptasks.tasks to 100% by adding tests
for delete_ldap_group, delete_ldap_group_if_empty and delete_ldap_user
tasks.
2016-02-02 18:31:37 +00:00
67ccdbb7c8 Add tests for ldaptasks functions
This commit adds tests for ldaptasks.set_ldap_user_password,
ldaptasks.add_ldap_user_to_group and
ldaptasks.remove_ldap_user_from_group.
2016-02-01 23:15:57 +00:00
23015af083 Update Django and gvacommon dependencies
This commit updates the Django dependency version to 1.9.2 and gvacommon
to 0.3.0 that provides gvacommon.settings_utils.get_env_variable. The
gnuviechadmin.settings.base module now uses this implementation instead
of an own copy and the corresponding test has been removed too.
2016-02-01 23:37:39 +01:00
4b060c51f4 Add unit tests
This commit adds test coverage for gvaldap and ldapentities and starts
to provide coverage for ldaptasks using mockldap.
2016-02-01 00:55:59 +00:00
32366e93dd Add setup.cfg for QA tools, fix flake8 warnings 2016-01-31 23:30:17 +01:00
ed18c4a6f9 Modernize dependencies, sync with gva
This commit modernizes all requirements to the latest versions, adapts
the settings to Django 1.9 and synchronizes the settings layout with
gva.
2016-01-31 23:19:26 +01:00
7c6ed136eb Switch result backend to redis
The AMQP result backend proved as impractical, this commit switches to
redis instead.
2016-01-31 21:36:40 +01:00
e9ee69f6e5 Add code quality requirements 2016-01-31 21:34:47 +01:00
5094990c9a Switch from deprecated amqp backend to rpc
The previously used amqp result backend has been marked as deprecated by
the celery developers. This commit switches to the rpc backend that
should be used instead.

This commit renames get_env_setting to get_env_variable to be consistent
with the gva settings modules.
2016-01-31 21:34:26 +01:00
02768a4b95 Use separate AMQP vhost for tests 2016-01-31 21:34:20 +01:00
62d8ed64e2 Move salt states and pillar data to separate repository
This commit removes the salt states and pillar data and adds the
ldapserver role to the gvaldap host.
2016-01-31 21:32:15 +01:00
6a8997e950 Add initial Vagrant/Saltstack setup
This commit adds an initial Vagrant and Saltstack setup that reuses the
same configuration as that of the gva repository. The LDAP server itself
is not configured yet.
2016-01-29 23:26:57 +01:00
af8b9e974c Start next development iteration
This commit moves the version number to gvaldap's __init__.py, bumps the
copyright year and starts a new development iteration. The docs/conf.py
is synchronized with the gva project's version of that file.
2016-01-29 16:57:48 +01:00
809168d80f Merge tag '0.5.2'
release 0.5.2

- fix minor issues in log messages

* tag '0.5.2':
  update docs version, add release to changelog
2015-01-29 21:52:16 +01:00
1079b0b1d2 Merge branch 'release/0.5.2' into production
* release/0.5.2:
  update docs version, add release to changelog
  add changelog entry
  change order of LDAP commands and logging to fix log messages
2015-01-29 21:51:50 +01:00
261ffe5bb0 update docs version, add release to changelog 2015-01-29 21:51:25 +01:00
fad70cf74a add changelog entry 2015-01-29 21:50:23 +01:00