Victor Vrantchan
9d49dbc465
change the implementation of ErrNotFound and AlreadyExists to a struct type ( #665 )
...
with an exposed interface.
Not checking for a specific sentinel error reduces coupling between packages
and allows adding context like the resource ID and resource type.
2016-12-20 13:35:22 -05:00
Mike Stone
608cca4910
Removes unused sidebar code ( #660 )
2016-12-20 09:13:50 -05:00
Kyle Knight
021e42290b
New Query Sidebar Styles ( #621 )
2016-12-16 10:07:35 -06:00
Kyle Knight
8ad731e8fb
Refactor form fields ( #636 )
2016-12-16 09:54:49 -06:00
Zachary Wasserman
c8e6405220
Use redis for distributed query results when not in dev mode ( #653 )
...
- Add appropriate configs for Redis
- Use the Redis pubsub store by default, inmem in dev mode
2016-12-15 16:13:23 -08:00
Zachary Wasserman
d6765377c0
Rename inmem method receivers for consistency ( #654 )
...
This makes the inmem method receiver naming consistent with mysql. It also
eliminates potential confusion with the phrase "orm".
2016-12-15 16:12:43 -08:00
Zachary Wasserman
41120ebc00
Improve user endpoint validations ( #642 )
...
- Add empty string checks for NewUser
- Create validations for ModifyUser
- Use GravatarURL when creating new user
Fixes #620
2016-12-15 09:28:53 -08:00
Mike Arpaia
4b2decc060
Fix for setting the NODE_PATH env var on Windows ( #647 )
...
* Fix for setting the NODE_PATH env var on Windows
* making the makefile a bit more uniform
2016-12-15 11:39:01 -05:00
Kyle Knight
37613bbb47
Admin User Management Repositioning and Cleanup ( #614 )
2016-12-15 09:45:20 -06:00
Mike Stone
1fc7be0715
Sets user's gravatar URL in the API client ( #629 )
2016-12-15 10:00:44 -05:00
Kyle Knight
0b70f58614
Styling Manage Hosts [Grid View] ( #602 )
2016-12-15 08:44:45 -06:00
Zachary Wasserman
216e1b58fa
Fix parentheses in labels search SQL ( #644 )
...
Operator precedence was causing incorrect results to be returned. The failing
test was missed because the CI results did not appear in Github before merging.
2016-12-14 19:24:53 -08:00
Zachary Wasserman
b95c1dd6a0
Always return "All Hosts" label in targets unless selected ( #637 )
...
Closes #467
2016-12-14 18:27:22 -08:00
Mike Arpaia
1ada011f37
Remove existing bulk functionality ( #641 )
2016-12-14 17:22:17 -08:00
Mike Arpaia
56b3799457
Add forgotten JSON serialization tag ( #640 )
2016-12-14 14:29:20 -08:00
Zachary Wasserman
0e783e7887
Add change password endpoint ( #628 )
2016-12-14 10:11:43 -08:00
Mike Arpaia
bed279b919
Remove "selected" keyword from response ( #635 )
2016-12-13 15:59:59 -08:00
Mike Arpaia
f109b14f9d
Moving query attributes from the query object to the pack-query relationship ( #559 )
...
* Moving query attributes from the query object to the pack-query relationship
* some additional tests
* http request parsing test
* QueryOptions in new test_util code
* initial scaffolding of new request structures
* service and datastore
* test outline
* l2 merge conflict scrub
* service tests for scheduled query service
* service and datastore tests
* most endpoints and transports
* order of values are not deterministic with inmem
* transport tests
* rename PackQuery to ScheduledQuery
* removing existing implementation of adding queries to packs
* accounting for the new argument to NewQuery
* fix alignment in sql query
* removing underscore
* add removed to the datastore
* removed differential from the schema
2016-12-13 14:22:05 -08:00
Zachary Wasserman
7f7bcd177d
Suppress sqlite-parser warning in make generate ( #609 )
...
Closes #595
2016-12-13 10:35:46 -08:00
Zachary Wasserman
556cbf43bd
Use canPerformActions authZ check appropriately in handlers ( #625 )
...
Fixes #282
2016-12-13 08:57:49 -08:00
Mike Stone
e1de01a2f8
Add skeleton for User settings page ( #627 )
2016-12-13 10:24:58 -05:00
Zachary Wasserman
0c62bda2f1
Fix session expiration logic with password reset ( #619 )
...
- Only expire sessions at reset request time when admin forces reset
- Expire sessions when reset completed
Prior to this, there was a possible DoS vector in which an attacker could
prevent a user from taking actions in the app by constantly requesting password
resets and expiring all the user's active sessions.
Fixes #612
2016-12-12 09:24:51 -08:00
Mike Stone
0753510cc3
Makes items routable on the Manage Hosts Sidebar ( #592 )
...
* Makes items routable on the Manage Hosts Sidebar
* slugify active label
2016-12-12 11:48:50 -05:00
Kyle Knight
3aad263e6d
Fix Firefox flexbox on all hosts page ( #607 )
2016-12-09 17:31:54 -05:00
Kyle Knight
d9754bde20
Cleanup add host page ( #546 )
2016-12-09 17:30:32 -05:00
Kyle Knight
f1bb8ebfa2
Updating Gradient Button styles ( #606 )
2016-12-09 12:36:17 -06:00
Zachary Wasserman
b362682d90
Add service method for bulk deleting queries ( #600 )
...
- New datastore method for bulk deletion
- New service method calling this datastore method
- Endpoint, transport and handler connections for service method
Closes #389
2016-12-09 09:12:45 -08:00
Kyle Knight
d2c020e8c4
Cleanup styles for fields with icons ( #605 )
2016-12-09 11:14:16 -05:00
Mike Stone
dd676bc3b4
Changes default avatar image ( #596 )
2016-12-09 09:42:22 -05:00
Victor Vrantchan
cf77cac929
pin typescrypt to not update minor version ( #597 )
...
ts does not seem to follow SemVer and introduces breaking changes in 2.1
2016-12-08 14:05:41 -05:00
Victor Vrantchan
3d47be28c6
change docker tag to use short git sha for version ( #594 )
...
master:
switch "latest" to SHA
PRs:
switch "dev-prNumber" to "dev-prNubmer-SHA"
2016-12-08 12:54:21 -05:00
Kyle Knight
bbad316bae
Theming AceEditor ( #591 )
2016-12-08 10:08:21 -06:00
Zachary Wasserman
d9190020fe
Record author information with queries ( #578 )
2016-12-07 12:22:31 -08:00
Kyle Knight
6f75bf5393
Removing the eslint disable line ( #577 )
2016-12-07 14:19:13 -06:00
Victor Vrantchan
6d9ad56e6d
use validation error for expired invite tokens. ( #587 )
...
Closes #586
2016-12-07 11:25:48 -05:00
Victor Vrantchan
02945f1e3b
set created_at time for invites in inmem ( #588 )
2016-12-07 11:20:21 -05:00
Victor Vrantchan
62a5e65c2e
use random string instead of JWT for tokens. ( #584 )
...
uses a random URL encoded base64 string as the token for password reset
and invites.
2016-12-07 10:42:58 -05:00
John Murphy
7812b2f3bd
Fixes host detail updates with MySQL backend ( #568 )
2016-12-07 03:51:11 +08:00
Zachary Wasserman
691eb55cf2
Return packs with queries ( #575 )
...
- New datastore method for loading packs associated with a query
- ListQueries and Query datastore methods now load packs
Addresses #388
2016-12-06 10:22:28 -08:00
Zachary Wasserman
bc6109fb56
Fixes for saved queries ( #576 )
...
- Only saved queries should be returned by ListQueries
- Bugfixes
Addresses #388
2016-12-06 10:16:04 -08:00
John Murphy
e6b1ed9ade
Added MIA status for hosts that haven't been updated for 30 days ( #570 )
2016-12-07 01:37:22 +08:00
Kyle Knight
21ec1ed1b1
Resolve lots of absolute and fixed positioning issues ( #571 )
2016-12-06 11:55:48 -05:00
Mike Stone
854bc5bd1c
Moves "All Hosts" label to it's own section in the dropdown ( #573 )
2016-12-05 17:48:46 -05:00
Zachary Wasserman
51e59712da
Fixes in targets search ( #565 )
...
- Remove string formatting in favor of bindvars
- Fix errors when the query is empty
2016-12-05 11:16:23 -08:00
Mike Stone
6826bd5b6a
Nav bar fixes ( #569 )
...
* Main nav item click brings user to default sub nav item
* Converts SiteNavHeader to a dumb component
* Stop passing dispatch to the FlashMessage component
2016-12-05 12:55:30 -05:00
Mike Stone
b48c435206
Allow user to navigate through completed form pages ( #567 )
2016-12-05 10:21:17 -05:00
Mike Stone
a896b1fd99
Manage hosts fixes ( #566 )
...
* Add New Label link adds to browser history
* Updates title of New Label page
2016-12-05 10:21:03 -05:00
Victor Vrantchan
b1bca7c98c
enbable API route after setup is complete ( #564 )
...
Fixes #563
2016-12-02 13:46:31 -05:00
Kyle Knight
449c1e904c
4px ( #558 )
2016-12-01 18:19:02 -08:00
Victor Vrantchan
77e15c8954
switch circle.yml to go1.8 builder image ( #550 )
2016-12-01 21:18:32 -05:00