Sulka Haro and GitHub
914ba78f36
Security improvement batch ( #6622 )
...
* Adds a new method for the server to push notifies to the client, which require administration privileges from the user. If there are messages in queue but user is not privileged, she is notified of pending messages
* Fix unit tests
* Increase timeouts on tests
* Add translations
* * Aggregate admin messages
* Send admin message on auth fail
* Sending messages over bus
* XSS filtering of objects sent over the REST API
* Warn users if their instance is world readable
* Fix adminnotifies init()
* Fix couple issues from Codacy
2021-01-07 22:46:55 +02:00
Sulka Haro
9007db0f63
Fix tests
2017-12-28 19:15:52 +02:00
Jason Calabrese
d8b46eecdd
refactor init so plugins can be localized
2016-10-15 10:54:20 -07:00
Ben West
9ab886179c
teach tests about readable default role
...
Allows tests to pass naively. In future this can be augmented
to more thoroughly test security.
2016-08-04 18:02:17 -07:00
Jason Calabrese
e54e83b2ff
add cob to /pebble if enabled
2016-04-24 00:47:17 -07:00
ericmarkmartin
5b7d93dbcb
Commented out unused variables
2016-04-04 18:09:09 -04:00
Mark Wilson
c2574dc992
Show 0 IOB on /pebble even when undefined, for backwards compatibility
2016-03-25 12:29:19 -07:00
Jason Calabrese
160bb8bac4
refactor server side data code
2015-12-25 01:31:55 -08:00
Jason Calabrese
e718bc269e
use multiple devicestatus results; support for different device types; stub out openaps plugin
2015-11-26 01:49:08 -07:00
Jason Calabrese
1779e619c1
support for disabling default features
...
use decodeURIComponent to support environments where spaces in env vars are a problem
converted enable and alarmTypes to arrays
2015-08-23 01:59:24 -07:00
Jason Calabrese
70c226501c
some pebble refactoring and a few more tests
2015-08-20 22:35:24 -07:00
Jason Calabrese
31ce8cbb92
lot of refactoring to have common settings for client and server
2015-07-30 13:46:13 -07:00
Jason Calabrese
7a02ce6120
hopefully fix some mmol bugs with /pebble
2015-07-14 23:12:59 -07:00
Sulka Haro
a48ccffb0b
Revert older Pebble API behavior, where bgDelta was a string
2015-07-14 13:19:04 +03:00
Jason Calabrese
0541282067
step 1: rename the y field to mgdl everywhere
2015-07-10 17:43:04 -07:00
Jason Calabrese
1a056474e5
pebble tests for iob and mmol
2015-07-09 22:21:35 -07:00
Jason Calabrese
d46ddbe822
cleanup, thanks codacy
2015-07-09 19:42:23 -07:00
Jason Calabrese
ab2b133138
update pebble endpoint to use ctx.data and the delta plugin
2015-07-09 19:37:51 -07:00
Jason Calabrese
66fe33d56f
added rest ack and simple test
2015-07-03 12:09:14 -07:00
Jason Calabrese
87893bf6dc
more == vs === and other issues reported by codacy
2015-07-01 17:59:48 -07:00
Jason Calabrese
320565b0cb
more easy cleanup
2015-07-01 00:30:39 -07:00
Jason Calabrese
fd585720b8
fix lots of little issues reported by codacy
2015-06-30 23:34:59 -07:00
Jason Calabrese
e84c7a41b4
Merge branch 'dev' into wip/push-notify
2015-06-08 00:25:05 -07:00
Jason Calabrese
69a09a520b
stop rounding cals sent via /pebble
2015-06-08 00:08:20 -07:00
Jason Calabrese
4dfa2c438c
ctx everywhere; fixed security.test.js
2015-06-04 23:20:18 -07:00
Jason Calabrese
1fb79230ac
fixed issue with delta always being 0 in /pebble
2015-03-14 10:13:58 -07:00
Jason Calabrese
7b6f054409
removed .toFixed(0)'s and fixed tests
2015-03-12 15:44:21 -07:00
Jason Calabrese
2dc75369c0
fixed mocks used in pebble test and them bugs found by tests
2015-03-12 03:06:25 -07:00
Jason Calabrese
127e4f5fbb
added mocks for treatments and profile so the pebble test doesn't fail
2015-03-01 12:29:15 -08:00
Jason Calabrese
ed3831ab39
fixed bug with enable check that didn't first check that enable was defined
2015-02-14 10:38:39 -08:00
Jason Calabrese
333125039f
use cleaner should.not.exist syntax
2015-01-31 15:11:44 -08:00
Jason Calabrese
a689039fed
tests for the /pebble endpoint
2015-01-31 10:43:03 -08:00