Pascal Vizeli
62d198111c
System unsupported source modification ( #2789 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-04-13 11:59:12 +02:00
Joakim Sørensen
e9c123459f
Break loop when we have the correct file ( #2796 )
...
* Break loop when we have the correct file
* Fix tests
2021-04-09 16:49:41 +02:00
Pascal Vizeli
3615091c93
Evaluate AppArmor support ( #2784 )
...
* Evaluate AppArmor support
* Update supervisor/resolution/evaluations/apparmor.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-06 23:41:57 +02:00
Franck Nijhof
816e0d503a
Map both persistent and volatile journald logs ( #2765 )
...
* Map both persistent and volatile journald logs
* Code comment tweak
2021-03-29 11:46:47 +02:00
Franck Nijhof
65386b753f
Fix swapped volume/bind variables in Journald volume support ( #2764 )
2021-03-29 09:46:22 +02:00
Pascal Vizeli
9194088947
Fix HAOS sync output ( #2755 )
...
* Fix HAOS sync output
* revert api change
* As usaly
* Simplify code
* Adjust error handling
2021-03-26 14:33:14 +01:00
Mike Degatano
58c40cbef6
Allow optional array configs ( #2752 )
2021-03-26 10:42:58 +01:00
Mike Degatano
e6c57dfc80
Fix typo in journald location ( #2751 )
...
* Fix typo in journal location
* Patch pathlib.Path.exists to ensure false return for test
2021-03-25 11:43:34 +01:00
Pascal Vizeli
82f76f60bd
Force / Enforce security if service is not available ( #2744 )
...
* Force / Enforce security if service is not available
* add options
* Add tests
* force security on test
* force security add-on validation
* Adjust style like codenotary
* Different exception type for backend error
* Adjust messages
* add comments
* ditch, not needed
* Address comment
* fix build
2021-03-24 14:36:23 +01:00
Franck Nijhof
2a892544c2
Fix journald add-on option to work with default Debian ( #2742 )
2021-03-22 17:04:20 +01:00
Pascal Vizeli
cb3e2dab71
Full content trust support ( #2735 )
...
* Full content trust support
* expose content-trust for info
* fix log message
* Add system test
* Fix name
* Add tests
* ditch wrong disable
* fix partition
* remove untrust image
2021-03-20 00:10:35 +01:00
Pascal Vizeli
f93f5d0e71
Add CodeNotary / for version file ( #2731 )
...
* Add CodeNotary / for version file
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Address comment
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-03-19 08:40:35 +01:00
mdegat01
667672a20b
Addons can access systemd journal logs ( #2722 )
...
* Added journald access to addons
* Name change to journald and added tests
2021-03-17 12:26:23 +01:00
Pascal Vizeli
b1232c0d8d
Resolution: API call for run check manual ( #2719 )
2021-03-15 10:33:06 +01:00
Joakim Sørensen
059233c111
Dynamically load resolution checks ( #2716 )
...
* Dynamically load resouces checks
* address comment
* Apply suggestions from code review
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
* Update supervisor/resolution/check.py
* fix check
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2021-03-15 10:28:18 +01:00
Pascal Vizeli
55382d000b
Revert "Tweak check API path" ( #2718 )
...
This reverts commit e30171746bb6170fa0a8897b73c54baf4844c740.
2021-03-15 10:16:32 +01:00
Pascal Vizeli
e30171746b
Tweak check API path ( #2714 )
2021-03-12 11:42:24 +01:00
Joakim Sørensen
73849b7468
Check management ( #2703 )
...
* Check management
* Add test
* Don't allow disable core_security
* options and decorator
* streamline config handling
* streamline v2
* fix logging
* Add tests
* Fix test
* cleanup v1
* fix api
* Add more test
* Expose option also for cli
* address comments from Paulus
* Address second comment
* Update supervisor/resolution/checks/base.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* fix lint
* Fix black
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-12 11:32:56 +01:00
Casper
82060dd242
Fix typos ( #2704 )
2021-03-09 13:37:10 +01:00
Pascal Vizeli
09203f67b2
Fix defaults for builds ( #2675 )
2021-03-04 11:48:25 +01:00
Joakim Sørensen
d50fd3b580
Add network description to translation files ( #2660 )
2021-03-02 15:41:00 +01:00
Pascal Vizeli
33385b46a7
Fix add-on is not installed anymore ( #2656 )
...
* Fix add-on is not installed anymore
* Fix and add tests
2021-03-01 17:19:38 +01:00
Joakim Sørensen
43449c85bb
Fix translation schema ( #2654 )
...
* Fix translation schema
* really fix it
* fix migration path
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2021-03-01 16:39:00 +01:00
Pascal Vizeli
b288554d9c
Allow dynamic lookup cgroup rules based on Host udev ( #2652 )
2021-03-01 14:57:44 +01:00
Joakim Sørensen
bee55d08fb
Create FileConfiguration baseclass ( #2651 )
2021-03-01 12:26:43 +01:00
Joakim Sørensen
7a542aeb38
Add support for loading add-on translation files ( #2644 )
...
* Add support for loading add-on translation files
* Fix storing translations for installed add-ons
* Allow YAML, force schema
* Adjust schema
2021-03-01 11:44:24 +01:00
Joakim Sørensen
3760967f59
Allow use YAML for addon and repository config ( #2645 )
...
* Allow use YAML for addon and repository config
* pylint
2021-02-28 20:00:02 +01:00
Pascal Vizeli
31f5033dca
Add throttle to job execution ( #2631 )
...
* Add throttle to job execution
* fix unittests
* Add tests
* address comments
* add comment
* better on __init__
* New text
* Simplify logic
2021-02-25 23:29:03 +01:00
Joakim Sørensen
752068bb56
Add /store API ( #2626 )
2021-02-25 16:15:51 +01:00
Pascal Vizeli
739cfbb273
Small cleanups with pwned handling ( #2625 )
2021-02-25 15:36:02 +01:00
Pascal Vizeli
85d527bfbc
Add check for pwned secrets to resolution center ( #2614 )
...
* Add check for pwned secrets to resolution center
* restructure check
* add checks
* Add test
* Add test
* reload secrets before check
* simplify
* create notification
* Use own exceptions
* Check on startup
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Add job decorator
* Update supervisor/resolution/notify.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Update supervisor/utils/pwned.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-02-25 09:37:45 +01:00
Pascal Vizeli
8630adc54a
Add execution limit for jobs ( #2612 )
...
* Add execution limit for jobs
* Add test for execution police
* Use better test
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Rename JobExecutionLimit
* fix typing
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-02-24 17:15:13 +01:00
Joakim Sørensen
90d8832cd2
Send event when add-on changes state ( #2608 )
...
* Send event when add-on changes state
* fix test
2021-02-23 15:12:30 +01:00
Joakim Sørensen
15544ae589
Show add-on with bad config in log ( #2601 )
2021-02-22 13:43:03 +01:00
Pascal Vizeli
785dc64787
Imrove the LXC detection ( #2599 )
2021-02-22 11:39:18 +01:00
Joakim Sørensen
b31ecfefcd
Initial WS support ( #2439 )
...
* Initial WS support
* test
* Update frontend to fc7c4af2
* Fix issue with closing states
* log error
* make data optional
* limit stopping states
* Move wrappers to HomeAssistantWebSocket
* use info
* Use call_soon
* Use lookuptable for WS commands
* Fix tests
2021-02-19 11:57:31 +01:00
Pascal Vizeli
a0ac8ced31
Fix handling with full access / blocked devices ( #2581 )
...
* Fix handling with full access / blocked devices
* address comment
* Use name
* Add validation warning
* add GPIO check too
* remove warning
* return directly
* fix tests
2021-02-17 15:48:48 +01:00
Pascal Vizeli
a6e4b5159e
Discovery for vlc telnet ( #2573 )
2021-02-16 09:31:07 +01:00
Pascal Vizeli
d768b2fa1e
Fix UI options without filter ( #2536 )
2021-02-08 21:37:44 +01:00
Stefan Agner
9ef02e4110
Add eMMC life-time estimate support ( #2413 )
...
* Add eMMC life-time estimate support
Expose life time estimate as Host Info property "ssd_life_time"
* Fix pytest
* Fix path to helper
* Allow protected access in tests
* Apply suggestions from code review
Rename SSD to disk.
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
* Rename functions as well
* Update host.py
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-02-02 10:31:02 +01:00
Pascal Vizeli
657bafd458
Fix handling with shm and shared /dev ( #2499 )
...
* Fix handling with shm and shared /dev
* address commends
* let's share shm
2021-02-01 14:44:02 +01:00
Wouter Schoot
509a37fc04
Typofix exsist -> exist ( #2491 )
...
* Typofix exsist -> exist
* Typofix exist -> exists
2021-02-01 09:34:17 +01:00
Pascal Vizeli
b09aee7644
Filter out virtual vcs devices ( #2489 )
...
* Filter out virtual vcs devices
* fix test
2021-01-31 14:40:14 +01:00
Pascal Vizeli
b8a976b344
Change handling kernel udev events ( #2484 )
...
* Change handling kernel udev events / add USB events
* finish USB
* map dev ro
* fix bind
2021-01-30 14:19:53 +01:00
Pascal Vizeli
18953f0b7c
plug & play devices ( #2482 )
...
* Add support for plug&play container & full udev passtrhough
* plug & play devices
* this hack is not needed anymore
* Fix GPIO issue
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-01-29 17:17:41 +01:00
Pascal Vizeli
636bc3e61a
Handle GPIO / VIDEO map with subystem ( #2478 )
...
* Handle GPIO / VIDEO mapping with subystem
* fix tests
* add udev support
* init udev data
* fix
2021-01-29 11:28:16 +01:00
Pascal Vizeli
e024c3e38d
Improve device selection and show device by id if available ( #2476 )
2021-01-28 15:43:06 +01:00
Pascal Vizeli
6a0206c1e7
Next generation hardware handling ( #2429 )
...
* Next generation hardware handling
* need daemon for some details
* fix tests
* fix wrong coresys lookup
* test initial import
* test device lookup
* validate if device exists
* Add cgroups rules manager
* mapping udev from host
* Modify validation/options handling
* lookup devices
* add support for host udev mapping
* next
* Add policy support to add-ons
* Depricate hardware trigger call
* next cleanup round
* detect USB linking
* optimize
* readd udev utils for backwards compatibility
* fix tests
* Add more tests
* fix tests
* Make device explicit
* Add filter
* work on tests
* Add migration step
* clean out auto_uart
* Fix all tests
* Expose all device information
* small improvment
* Fix loop over right devices
* Use migration for new device format
* Update rootfs/etc/cont-init.d/udev.sh
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Fix old helper
* Fix API
* add helper for by-id
* fix tests
* Fix serial helper
* Fix hardware API schema
* Hide some virtual devices from tracking
* Apply suggestions from code review
Co-authored-by: Stefan Agner <stefan@agner.ch>
* Update supervisor/addons/validate.py
Co-authored-by: Stefan Agner <stefan@agner.ch>
* Update supervisor/addons/validate.py
Co-authored-by: Stefan Agner <stefan@agner.ch>
* fix lint
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* fix black
* fix lint
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Stefan Agner <stefan@agner.ch>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-01-28 15:26:56 +01:00
Joakim Sørensen
480eebc6cb
Update alert notification ( #2457 )
2021-01-23 21:06:55 +01:00
Pascal Vizeli
1fbc8f4060
Add discovery support for zwave_js ( #2454 )
...
* Add discovery support for zwave_js
* New schema
* hmm
* address comments
2021-01-20 16:51:51 +01:00