UpstreamDataInc / goosebit

A simplistic, opinionated remote update server implementing hawkBit™'s DDI API.
https://goosebit.rtfd.io
Apache License 2.0
12 stars 2 forks source link

Improve permission handling #86

Closed b-rowan closed 2 weeks ago

b-rowan commented 2 weeks ago

Improve permissions handling with string parsing.

Rules are as follows -

For example, if an endpoint requires foo.bar.baz, valid user permissions are

User permissions that will always be invalid are the inverted versions of this, so

b-rowan commented 2 weeks ago

On second thought, leaving as a draft until #85 gets merged, so I can add docs on this.

github-actions[bot] commented 2 weeks ago
filepath function $$\textcolor{#f14c4c}{\tt{failed}}$$ SUBTOTAL
$$\textcolor{#f14c4c}{\tt{tests/updater/controller/v1/test\_routes.py}}$$ $$\textcolor{#f14c4c}{\tt{test\_register\_device}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$
$$\textcolor{#f14c4c}{\tt{tests/updater/controller/v1/test\_routes.py}}$$ $$\textcolor{#f14c4c}{\tt{test\_rollout\_full}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$
$$\textcolor{#f14c4c}{\tt{tests/updater/controller/v1/test\_routes.py}}$$ $$\textcolor{#f14c4c}{\tt{test\_rollout\_signalling\_download\_failure}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$
$$\textcolor{#f14c4c}{\tt{tests/updater/controller/v1/test\_routes.py}}$$ $$\textcolor{#f14c4c}{\tt{test\_rollout\_selection}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$
$$\textcolor{#f14c4c}{\tt{tests/updater/controller/v1/test\_routes.py}}$$ $$\textcolor{#f14c4c}{\tt{test\_latest}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$
$$\textcolor{#f14c4c}{\tt{tests/updater/controller/v1/test\_routes.py}}$$ $$\textcolor{#f14c4c}{\tt{test\_latest\_with\_no\_software\_available}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$
$$\textcolor{#f14c4c}{\tt{tests/updater/controller/v1/test\_routes.py}}$$ $$\textcolor{#f14c4c}{\tt{test\_pinned}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$
$$\textcolor{#f14c4c}{\tt{tests/updater/controller/v1/test\_routes.py}}$$ $$\textcolor{#f14c4c}{\tt{test\_up\_to\_date}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$ $$\textcolor{#f14c4c}{\tt{1}}$$
$$\textcolor{#f14c4c}{\tt{TOTAL}}$$ $$\textcolor{#f14c4c}{\tt{8}}$$ $$\textcolor{#f14c4c}{\tt{13}}$$