Commit Graph

227 Commits

Author SHA1 Message Date
Eric van der Vlist 7172afa4a2 Support of Docker host names (for NSD) 2020-04-18 09:36:48 +02:00
Eric van der Vlist f063831578 Supporting Django 3. 2020-04-18 09:35:28 +02:00
jeffrey forman ab9ad3e25c statistics_port -> control_port 2019-03-17 20:45:15 -04:00
jeffrey forman 17da7b33a3 make exceptions a bit more module-path happy. fix some iterator references 2019-03-17 20:44:55 -04:00
jeffrey forman 2247f7262e add main functionality for NSD in models.
update the encrypt (save) and decrypt functions to be python3/dnspython friendly
using bytestrings instead of expecting strings.

statistic_port is now control_port.

removed the validations from admin.py because the model fields now provide
for validators of their data.

add creds dir to the settings.py
2019-03-17 20:36:28 -04:00
jeffrey forman 2ee5bc91a6 initial nsd helper library and methods for getting zones, writing config, etc 2019-03-17 20:30:05 -04:00
jeffrey forman 369030edd0 dont try to load the initial data every time 2019-02-14 19:57:39 -05:00
jeffrey forman 01a2d2382c when retrieving the bindserver object, return the hostname as a string for the object itself 2019-02-14 19:57:17 -05:00
jeffrey forman 3908e12ca4 add initial 0001 binder migration 2019-02-14 07:52:02 -05:00
jeffrey forman e7e560a403 expect django greater than 2, and use open() instead of file() call 2019-02-14 07:51:31 -05:00
jeffrey forman fe09f1f57a Merge branch 'nsd' 2019-02-13 20:19:45 -05:00
jeffrey forman 1e0afb7d9b old migrations be gone 2019-02-13 20:18:57 -05:00
jeffrey forman f9176387ac update to django-2, python3, and based on an alpine container 2019-02-13 20:17:05 -05:00
jeffrey forman dac54a5ad7 bump pybindxml to 0.7 to handle bind 9.12 2019-01-17 13:34:37 -05:00
Jeffrey Forman 1af8f1e31b encrypt TSIG keys using Fernet cryptography library 2017-05-02 20:21:11 -04:00
Jeffrey Forman fba94af629 update initial_data.json to be django 1.11 compliant 2017-04-18 06:21:41 -04:00
Jeffrey Forman ef70379a2a add setupmethod to create key and bindserver objects. add key_name required expected failure
break up each test into its own function to make debugging the test failures easier.
2017-04-17 20:35:22 -04:00
Jeffrey Forman 90e38d2aef enable the edit_record link, URL, and view 2017-04-17 20:29:55 -04:00
Jeffrey Forman ddae5be662 Move edit/add/cname key_name and ttl form items to just use choice item instead of trying to define each element 2017-04-17 20:26:01 -04:00
Jeffrey Forman 235f0fe174 Simplify ttl and key_name form fields. keys are now required.
fix forms where the widget was being specified but overriden in the view. remove the specification of the widget
2017-04-17 20:18:14 -04:00
Jeffrey Forman 4c7ed9beb6 fix logic on using remote mysql db. make sqlite the fall back, logic clears up if not all variables are set 2017-03-31 23:05:47 -04:00
Jeffrey Forman 6704469b9d add support for specifying DB parameters via environment variables. sqlite or mysql.
updated README to focus on developing/running via docker
2017-03-29 21:05:39 -04:00
Jeffrey Forman 6ecae8b772 in django 1.8, django.core.context_processors moved into django.template.context_processors.
Note to self: always test in a container running a recent version of django. i was still testing on 1.7 :/
2017-03-25 16:20:02 -04:00
Jeffrey Forman ff8088defa add request context_processor and printing serving hostname to footer
eventually this will make lead to making it a bit more docker/kubernetes friendly
2017-03-25 15:53:09 -04:00
Jeffrey Forman 4df47c24fa comment out a few tests while i rethink form entry 2016-12-05 22:02:47 -05:00
Jeffrey Forman 0252c3df62 make Binder docker-friendly again. built on python image with django 1.10 2016-12-05 21:56:49 -05:00
Jeffrey Forman 7fdcfab8a0 add support to add CNAME in zone, loosen restrictions on record data input 2016-11-12 07:44:03 -05:00
Daniel Roschka 74cc4efca4 Adds support for Django 1.9 while dropping support for unsupported versions.
This commit adds support for Django 1.9. As the template configuration options
changed with Django 1.8 and versions earlier than 1.8 aren't supported anymore
anyway by upstream, support for them is removed.

To have the Dockerfile still working, this commit also changes its logic so the
dependencies get directly installed via the requirements.txt from PyPI, which
will ensure that always matching versions of all dependencies are present (e.g.
the Django version).
2016-02-06 19:21:52 +01:00
Jeffrey Forman 2bb8f5d9cb resurrect the ability to add a PTR record on its own, not as part of a pair of forward records 2015-12-26 15:14:29 -05:00
Jeffrey Forman e9d65179ab on the cname add result, we need the cname name, not the originating record name 2015-12-26 14:32:07 -05:00
Jeffrey Forman ab9b28d525 Merge branch 'refactored-views' of https://github.com/Dunedan/binder into Dunedan-refactored-views 2015-12-26 14:10:11 -05:00
jeffrey forman f5b557384a Merge branch 'master' of github.com:jforman/binder 2015-11-20 09:44:42 -05:00
jeffrey forman 6210dd3854 add initial data fixture to make automated deploys possible 2015-11-20 09:43:06 -05:00
jeffrey forman a3c5eab978 fix missing div tags 2015-11-20 09:42:56 -05:00
Daniel Roschka 99f1284d43 Simplies the test code a bit. 2015-09-05 19:20:44 +02:00
Daniel Roschka 3ca4cac89a Fix the tests, after the recent changes. 2015-09-05 19:18:59 +02:00
Daniel Roschka e13b42cd13 Refactors the views used to add and delete records.
Notable changes are:
* Refactored views, utilizing more of Djangos features, resulting in simpler
  code.
* URLs are now the same when initially filling out a form and when editing a
  submitted form which contained errors.
* Instead of a result page showing the response from the DNS server (which is
  now logged using Djangos "logging" functionality) the user is now redirected
  back to the record listing of the current zone when the action was successful
  or stays on the form page when an error occured. Proper success/error
  messages are shown in both cases by utilizing Djangos "messages"
  functionality.
2015-09-05 19:03:21 +02:00
Daniel Roschka 7492febf08 Provide a template for not existing resources.
Will be of course only used if debugging is disabled.
2015-08-23 20:35:30 +02:00
Daniel Roschka ecea7964a1 Improves the rendering of forms and refactors some of their logic.
Changes are:
* Display invalid input in editable input fields instead of adding it to the
  end of the error message. This should improve user experience in case of
  typos etc. where they now can simply edit there previously entered value.
* Use a single variable for form data and form errors, instead of using two.
  Makes the code a bit cleaner.
2015-08-04 20:27:02 +02:00
jeffrey forman 9e5991df2c Merge branch 'responsive-layout' of https://github.com/Dunedan/binder into Dunedan-responsive-layout
Conflicts:
	binder/templates/base.html
2015-07-28 06:16:56 -04:00
Daniel Roschka 52ebb1e1b1 Merge branch 'master' into add-global-authentication 2015-07-24 12:14:21 +02:00
Daniel Roschka 20d785840b Fixes some python style issues.
No changes in binders functionality are included in this commit, just improved
python style
2015-06-13 12:05:42 +02:00
Daniel Roschka 515876a2a5 Merge branch 'master' into add-global-authentication 2015-06-08 19:24:36 +02:00
Daniel Roschka a16abc4042 Fixes tests broken by previous commit. 2015-06-08 19:20:53 +02:00
Daniel Roschka f41133d733 Responsive layout for better experience on mobile devices
This commit changes the layout of binder to provide a better experience on
mobile devices and for form validation errors. It's outcome might not be
perfect yet, but I believe it's a really nice step forward.

The changes consist of:
* moving the menu from the left side to the top, so it doesn't consume
  additional screen space when scrolling down
* changed the width of the content to depend on the screen size. For larger
  screens the forms won't consume the whole width, but validation errors will
  be shown beside the form field containing the error
* showing field independent error messages on top of each form
* highlighting of form fields which contain errors
2015-06-05 16:50:48 +02:00
jeffrey forman a92553e6d8 Merge branch 'static-template-tag' of https://github.com/Dunedan/binder into Dunedan-static-template-tag 2015-06-03 20:13:16 -04:00
jeffrey forman 4fd1670e58 Merge branch 'remove-hardcoded-links' of https://github.com/Dunedan/binder into Dunedan-remove-hardcoded-links 2015-06-03 20:02:27 -04:00
Daniel Roschka 9ed2be3b66 Use the static template tag when refering to static files. 2015-05-31 08:10:19 +02:00
Daniel Roschka 5476314232 Replaces hardcoded links in templates with Djangos url tag. 2015-05-30 22:27:25 +02:00
Daniel Roschka 2ffd7c4b39 Resolve merge conflict introduced with recent changes to master. 2015-05-30 18:17:29 +02:00