18 Commits
Author SHA1 Message Date
Ben West 52cca32bf3 task: tidy project root
This change moves the azure deployment script from the root of the project into
the bin subdirectory with a name that makes its purpose more clear.

.deployment file has been updated to execute the new path.
2021-02-18 10:08:34 -08:00
Ben West 3149bf8b95 task: clean project root
setup.sh appears to be a developer utility to assist in bootstrapping a debian
based system.  It is intended to help install the dependencies needed to run
node, and not used in any automated deploy pipeline.

Instructions have been updated to suite this change which simply moves the
developer tool out of the project repo and into the bin subdirectory.
2021-02-18 10:02:00 -08:00
Ben West 3bb4f6be01 move script for repo maintenance aside
This script is used to help prep release branches and tags.  Since it's not
crucial to the business of remote monitoring and only useful as a maintenance
tool, we're moving it away from the project root.
2021-02-18 09:52:11 -08:00
Sulka HaroandGitHub d7e011d8f5 Refactoring organisation, bundling and security improvements (#6765)
* * Simplified bundling to just one bundle
* Removed cache invalidation token from bundling
* Generate strong persistent random string on deploy to use for JWT signing
* WIP: moving api-secret and JWT signing to a separate centralized security component
* Moved some server components away from project root
* Fix issues reported by linter

* Ignore detect-object-injection everywhere but the client

* Make admin message button red

* Remove alarms for some security alerts on code

* api_secret is now fully contained in the enclave
2021-02-02 19:53:30 +02:00
Sulka HaroandGitHub 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 7e662ac1df Cleanup: move cache buster token generation to /bin, remove /scripts 2017-10-15 10:20:13 +03:00
James Matheson e98b01e251 Date should not be a string
Removed quotes around the date. Added some comments for clarity.
2015-12-11 14:21:49 -08:00
Jason Calabrese 82fb83b230 really basic template to post sgvs 2014-11-16 18:12:55 -08:00
Jason Calabrese 9d1fd8a4d5 a simple script to post an MBG 2014-10-19 22:42:44 -07:00
Jason Calabrese 2a44a1341b removed debug url 2014-08-31 23:40:12 -07:00
Jason Calabrese c1184f5ccc don't return a string the value 'undefined' if there is no battery info 2014-08-31 23:39:15 -07:00
Jason Calabrese 601662d193 first pass at devicestatus api/storage current only used in the /pebble endpoint 2014-08-31 23:02:09 -07:00
Jason Calabrese 0404905e53 Revert "Revert to c1b2988eb0 (Merge branch 'hotfix/0.3.5')"
This reverts commit 1cc9c6127c.
2014-08-31 00:04:11 -07:00
Jason Calabrese 1cc9c6127c Revert to c1b2988eb0 (Merge branch 'hotfix/0.3.5') 2014-08-24 22:22:55 -07:00
Jason Calabrese 34a4cda29c a very basic treatments api, we may want to join this with entries, but keeping it seperate at first will make it easier to experiment 2014-08-10 02:36:41 -07:00
Ben West b1ecbe3c91 introduce sgvdata, use it in api and storage
Clean up and comment a bunch of code.
2014-07-15 15:10:49 -07:00
Ben West b35853bcaa s/svg/sgv/g - serum glucose value typo 2014-07-14 17:08:19 -07:00
Ben West 8300fa0d0a some very simple helper scripts to work with the api 2014-07-13 20:46:54 -07:00