Pascal Vizeli
ece40008c7
Logging in local timezone ( #2971 )
...
* Logging in local timezone
* fix convert
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-06-21 13:42:39 +02:00
Stefan Agner
16f2f63081
Allow downgrade to "hassos" from "haos" ( #2970 )
...
* Add "os_name" as possible URL variable
* Replace "os_name" for downgrades to OS versions before 6.0
2021-06-19 18:50:54 +02:00
Pascal Vizeli
5f376c2a27
Using images data from version file ( #2969 )
...
* Using images data from version file
* fix tests
2021-06-18 22:59:11 +02:00
Pascal Vizeli
a4a0b43d91
Using ghcr.io/home-assistant + fallback ( #2959 )
2021-06-14 20:07:44 +02:00
Joakim Sørensen
4f9e646b4c
Fix addon_pwned enabled setter ( #2952 )
...
* Fix addon_pwned enabled setter
* whatever
* adjust
2021-06-14 11:33:53 +02:00
Pascal Vizeli
cd8fc16bcb
Cleanup security layer - Add-on default access role ( #2954 )
...
* Allow access to network info (add-on)
* fix check
* make it nice
* cleanup
* cleanup
* fix tests
* Add warning
* allow access to addons/store/snapshot infos
* revert
2021-06-14 10:05:37 +02:00
Joakim Sørensen
b70ed9a60d
Rename fixtures ( #2946 )
...
* Rename fixtures
* Use tilde
2021-06-10 12:45:39 +02:00
Pascal Vizeli
bcef34012d
Time handling ( #2901 )
...
* Add new time handling
* migrate date for python3.9
* add timedate
* add tests & simplify it
* better testing
* use ssl
* use hostname with new interface
* expose to API
* update data
* add base handler
* new timezone handling
* improve handling
* Improve handling
* Add tests
* Time adjustment function
* Fix logging
* tweak condition
* don't adjust synchronized time
* Guard
* ignore UTC
* small cleanup
* like that, we can leaf it
* add URL
* add comment
* Apply suggestions from code review
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-06-09 09:38:32 +02:00
Stefan Agner
a99bfa2926
Update OS on intel-nuc to generic-x86-64 image ( #2909 )
...
* Add architectures supported by generic-x86-64 board
* Follow intel-nuc to generic-x86-64 rename when updating
Home Assistant OS renamed the intel-nuc board to generic-x86-64. Make
sure to download the generic-x86-64 raucb OS update when updating a
intel-nuc machine.
* Don't explicit use section, rely on AwesomeVersion's comparision
* Remove unecessary global variable TEST_URL
* Fix version comparision
* Remove rate limiter on updater.fetch_data()
* Update tests/test_hassos.py
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
* Fix black issue
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-05-27 14:25:16 +02:00
Pascal Vizeli
a5ed68b641
Cleanup websession with new aiohttp ssl ( #2861 )
2021-05-14 10:07:00 +02:00
Pascal Vizeli
1ef46424ea
Fix tests ( #2883 )
2021-05-14 08:36:49 +02:00
Pascal Vizeli
b59f741162
Validate secrets on options/validate UI check ( #2854 )
...
* Validate secrets on options/validate UI check
* Allow schema as payload
* Update supervisor/api/addons.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Offload into a module
* using new function
* disable check
* fix options value
* generated return value
* add debug logging
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-10 14:27:50 +02:00
Franck Nijhof
cee520f0b5
Add discovery support for motionEye ( #2850 )
2021-04-29 23:35:57 +02:00
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