Jeremy Stretch
c6e85970d4
Remove activate_userkey permission
2020-06-02 09:51:56 -04:00
Jeremy Stretch
e23b2c4c4f
Implement RestrictedQuerySet as a manager
2020-05-29 16:27:36 -04:00
Jeremy Stretch
00ce3588d3
Fix secrets API tests
2020-05-28 09:51:02 -04:00
John Anderson
9df238c5f2
Merge branch 'develop' into develop-2.8
2020-03-15 00:18:32 -04:00
John Anderson
9466802a95
closes #4368 - extras features model registration
2020-03-14 03:03:22 -04:00
Jeremy Stretch
3b4ec5926d
Standardize existing description fields to a length of 200 chars
2020-03-13 15:49:58 -04:00
Jeremy Stretch
b38eeaebc9
Clarify ciphertext length calculation; remove Python 2 compatibility
2020-02-19 21:14:56 -05:00
Jeremy Stretch
c955aeebeb
Merge branch 'develop' into develop-2.7
2020-01-16 09:38:23 -05:00
Jeremy Stretch
dda9a2ee1c
Fixes #3927 : Fix exception when deleting devices with secrets assigned
2020-01-15 10:39:23 -05:00
Jeremy Stretch
f27e06e619
Move utility functions for secrets to secrets/utils.py
2020-01-14 12:13:58 -05:00
Jeremy Stretch
6959785cd1
Define __all__ for models.py within each app
2020-01-14 12:01:23 -05:00
Jeremy Stretch
24bdd10b4f
Add description field to SecretRole model ( #3655 )
2019-12-10 13:03:09 -05:00
John Anderson
fc2bb724fa
initial pass on migrating to custom tag model with color and comments fields
2019-02-20 03:52:47 -05:00
Jeremy Stretch
bd7aee7c1f
Closes #2614 : Simplify calls of super() for Python 3
2018-11-27 10:52:24 -05:00
Jeremy Stretch
bc8dbfde7c
Merge branch 'develop' into develop-2.5
2018-11-12 16:03:52 -05:00
Jeremy Stretch
69d829ce8d
Fixes #2473 : Fix encoding of long (>127 character) secrets
2018-11-07 13:44:16 -05:00
Jeremy Stretch
980d62d579
Removed Python 2 string compatibility
2018-08-14 11:58:42 -04:00
John Anderson
722d0d5554
Webhook signal refactor - fixes #2282 ( #2260 )
...
Refactor of webhook signaling system to use the same middleware mechanics of Changelogging
2018-07-30 14:23:49 -04:00
Jeremy Stretch
5cf38b5ce9
Enabled export templates for secrets
2018-07-17 10:34:50 -04:00
Jeremy Stretch
0c0799f3bf
Closes #1739 : Enabled custom fields for secrets
2018-07-17 09:43:57 -04:00
Jeremy Stretch
d0308e0f58
Merge branch 'develop' into develop-2.4
2018-07-02 17:01:14 -04:00
Anaël Beutot
4e09b32dd9
Fix pycodestyle errors
...
Mainly two kind of errors:
* pokemon exceptions
* invalid escape sequences
2018-06-27 17:24:33 +02:00
Jeremy Stretch
b556d2d626
Renamed CreatedUpdatedModel to ChangeLoggedModel and applied it to all primary and organizational models
2018-06-13 15:40:16 -04:00
Jeremy Stretch
9b3869790d
Implemented tags for all primary models
2018-05-10 12:53:11 -04:00
Jeremy Stretch
9725f19bae
Code formatting cleanup
2018-03-30 13:57:26 -04:00
Jeremy Stretch
12e6fe1d50
Standardized declaration of csv_headers on models
2018-02-02 14:26:16 -05:00
Jeremy Stretch
34d10f8db7
Fixes #1741 : Fixed Unicode support for secret plaintexts
2017-11-29 15:16:11 -05:00
Jeremy Stretch
00986fd7bf
Closes #1691 : Cleaned up and reorganized import statements
2017-11-07 11:08:23 -05:00
Ichabond
b8df05cf88
Fixes #1655 . Removed explicit field references. ( #1656 )
...
* Fixes #1655
Further field name references were found in `consoleport.html`. These have now been removed, so we rely on proper a proper `__str__` implementation of both `ConsolePort` and `ConsoleServerPort`.
* Fixes #1655 : Removed explicit field references
Cleaned up all (notable) .name references, and removed them so __str__ can do the lifting. Did not remove the references where it was explicitly referenced to .name (eg. in details). Extended the Secret model to also include the name in __str__, since that was weirdly absent.
* Adapted PR to comply with comments
Re-introduced certain references to make sure explicit references are still used where needed.
2017-11-02 11:51:27 -04:00
Jeremy Stretch
0c645b12d1
Moved querysets to separate files; tweaked interface ordering logic ( #1523 )
2017-10-10 17:23:41 -04:00
Jeremy Stretch
c300879995
Fixes #1527 : Replace deprecated pycrypto library with pycryptodome
2017-10-09 17:40:15 -04:00
Jeremy Stretch
08883d86ef
Closes #913 : Added headers to object CSV exports
2017-06-09 16:24:59 -04:00
Jeremy Stretch
f21c6bca00
Import unicode_literals
2017-05-24 11:33:11 -04:00
Jeremy Stretch
d17efce4f5
Fixes #1111 : Correct database ordering of SessionKey model
2017-04-27 11:27:34 -04:00
Jeremy Stretch
d98e9e1838
Resolved RemovedInDjango20Warning deprecation warnings
2017-04-05 14:40:25 -04:00
Jeremy Stretch
5d022a575a
Closes #985 : Added preserve_key to get-session-key endpoint
2017-03-28 11:13:13 -04:00
Jeremy Stretch
671d53877a
Python3 fixes
2017-03-17 21:39:29 -04:00
Jeremy Stretch
3dc15068b9
Allow user to delete session key
2017-03-14 14:01:06 -04:00
Jeremy Stretch
4cb30f1ce4
Relate SessionKey to UserKey rather than User
2017-03-14 13:32:07 -04:00
Jeremy Stretch
105d17748e
Secrets UI work
2017-03-14 12:32:08 -04:00
Jeremy Stretch
dd27950fae
Simplify SessionKey usage
2017-03-14 10:58:57 -04:00
Jeremy Stretch
a42eeb12d2
Implemented SessionKeys for secrets
2017-02-03 12:49:32 -05:00
Jens L
80439c495e
Basic Support for Python 3 ( #827 )
...
* Rudimentary python3 support
* update docs and trigger Travis
* fix some of the tests
* fix all python3 errors
* change env calls to just python
* add @python_2_unicode_compatible decorator to models for python2 compatibility
* switch netbox.configuration to from netbox import configuration
2017-01-23 16:44:29 -05:00
Jeremy Stretch
fc2ac8a02b
Attributed all model ValidationErrors to specific fields (where appropriate)
2016-10-21 15:39:13 -04:00
Jeremy Stretch
0d46a65a36
Unicode handling cleanup
2016-07-18 14:48:51 -04:00
Jeremy Stretch
7228801cb0
Move membership evaluation to SecretRole
2016-07-07 12:07:02 -04:00
Jeremy Stretch
edde021c85
Grant superusers permission to decrypt all secrets
2016-07-06 17:40:32 -04:00
Zach Moody
b21833f79c
secrets: refactor for py3 (from 3c9c04d4)
2016-06-22 23:52:32 -05:00
Jeremy Stretch
c7d18fc3bd
Converted UserKey and Secret to CreatedUpdatedModel
2016-06-22 11:08:29 -04:00
Jeremy Stretch
921040d2fc
Renamed 'last_modified' to 'last_updated'
2016-06-22 11:03:49 -04:00