Commit Graph

217 Commits

Author SHA1 Message Date
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
Daniel Roschka ff2f5abcb1 Remove tests for checking DNS resolution
The tests checking the DNS resolution aren't reliable as they rely on specific
behavior of the DNS resolution on the local system. As they are reliable it
makes no sense to keep them as they are currently.
2015-05-30 16:42:59 +02:00
jeffrey forman d625e0245b Merge branch 'revised-local-settings' of https://github.com/Dunedan/binder into Dunedan-revised-local-settings
fixed import of get_object_or_404 which was erroneously removed

Conflicts:
	binder/views.py
2015-05-27 20:14:50 -04:00
jeffrey forman 5effaf8c45 Merge branch 'template-cleanup' of https://github.com/Dunedan/binder into Dunedan-template-cleanup
resolve some conflicts with templates

Conflicts:
	binder/templates/bcommon/add_cname_record_form.html
	binder/templates/bcommon/delete_record_initial.html
2015-05-27 20:03:33 -04:00
Daniel Roschka 7882ee9121 Add global authentication
This commit adds global authentication to binder to ensure that only valid
users are able to use it. This should enable binder to be used in
environemts where it's webfrontend is reachable for unauthenticated users as
well.

For setups where such a global authentication isn't desired it can be disabled
by simply removing the LoginRequiredMiddleware from the list of active
middlewares.
2015-04-05 21:06:01 +02:00
Jeffrey Forman dc15440a98 Merge pull request #32 from Dunedan/fix-missing-cancel-buttons
Fixes missing cancel buttons
2015-04-05 14:09:07 -04:00
jeffrey forman 796cb06055 Merge branch 'ship-jquery' of https://github.com/Dunedan/binder into Dunedan-ship-jquery 2015-04-05 07:22:23 -04:00
jeffrey forman b62af7b64d fix UI tests that werent updated to match the new templates 2015-04-04 22:07:49 -04:00
jeffrey forman 5c35b2306e delete commented out HTML that was forgotten from before 2015-04-04 22:07:37 -04:00
jeffrey forman 880eee067d localhost wont always have an IPv6 address assigned to it 2015-04-04 20:33:53 -04:00
jeffrey forman 12654bd3a5 Merge branch 'fix-failing-tests' of https://github.com/Dunedan/binder into Dunedan-404-for-not-existing-servers 2015-04-04 20:28:31 -04:00