Commit Graph

84 Commits

Author SHA1 Message Date
arcanis eb16ef12f3 always return json in responses 2021-10-20 02:12:39 +03:00
arcanis 22d92e3b4e add repo-status-update subcommand 2021-10-17 06:38:49 +03:00
arcanis 56b77a84a6 allow to use multiple upload and report targets with the same name
In this feature target option must allways point to section name instead
of type. Type will be read from type option. In case if type option is
not presented it will try to check if section with architecture exists
(e.g. target = email, section = email:x86_64); if it does, the correct
section name and type will be used. Otherwise it will check if the
specified section exists; if it does, seection name and type will be
returned.
2021-10-17 06:06:08 +03:00
arcanis a5a99ec0b8 split github upload into generic http method and github specific
We might use some features from the http upload for another parser
2021-10-15 23:36:26 +03:00
arcanis 4521c2adde disallow to create tree in case of unsafe run 2021-10-14 04:53:09 +03:00
arcanis 5c5e54228f use generic removal method 2021-10-14 04:08:21 +03:00
arcanis 6514924b2d change method spelling
in order to sort method correctly we are going to use the following
namiing schema:

{subject}_{action}_{details}

This schema still have some exceptions, e.g. single word methods, bool
methods (is_) and getters in case if they are singular (i.e. there is
no any other method with this subject)
2021-10-14 04:01:54 +03:00
arcanis 16aa977fa8 add test for every file 2021-10-14 03:34:12 +03:00
arcanis 4502931c39 exactly one called with instead of last call check 2021-10-14 03:12:45 +03:00
arcanis fcb167b1a3 github upload support (#41) 2021-10-14 02:30:13 +03:00
arcanis 72b26603bf add ability to add manually stored packages (#40)
* add ability to add manually stored packages

* update tests

* handle manual packages in remove-unknown method

* live fixes

also rename branches to has_remotes method and change return type
2021-10-12 21:15:35 +03:00
arcanis 7c4f84fbc7 more verbose help messages 2021-10-07 01:56:22 +03:00
arcanis 3b6b2efcb1 patch control subcommands 2021-10-05 08:57:42 +03:00
arcanis 9f99dd3ff2 patch support (#35) 2021-10-03 15:20:36 +03:00
arcanis bee97df87f do not write anything on httpexceptions in log 2021-10-03 02:05:28 +03:00
arcanis 6becd01803 replace no-log with quiet
Also behavior of the flag has been changed: now it disables logs at all
2021-10-03 01:59:33 +03:00
arcanis 59f2992559 do not use set_defaults for architecture arguments
according to the source code defaults always updates the values
dictionary. This in this specific case it is impossible to override the
value it will be always empty list.

In order to handle it we are adding another property to the Handler
class which allows to run with None architecture list.

This particular set_defaults behaviour is still useful for other cases
when we have to run command without any specific architecture
2021-10-03 00:59:24 +03:00
arcanis 73a4cee257 add package request endpoint 2021-10-01 08:58:50 +03:00
arcanis d73d5daad3 add debugtoolbar support 2021-09-26 12:31:12 +03:00
arcanis 51b28baf40 add ability to specify package source explicitly during the addition 2021-09-26 09:55:14 +03:00
arcanis 24326f9753 define permissions in views directly 2021-09-25 17:03:46 +03:00
arcanis 36c763069d only set file rights if requested 2021-09-23 20:36:22 +03:00
arcanis a7a32f0080 better reload 2021-09-17 19:15:53 +03:00
arcanis 16bb1403a1 add ability to reload authentication module 2021-09-17 16:05:38 +03:00
arcanis 41731ca359 add ability to remove an user
also replace old user by new one before creation
2021-09-16 02:41:56 +03:00
arcanis e99c2b0c83 remove own implementations of getlist and getpath method in order to use
converters feature
2021-09-14 03:57:20 +03:00
arcanis 6294c0ba14 add ability to filter status response by package status 2021-09-13 23:27:36 +03:00
arcanis 2c74be31bd raise InvalidCommand exception in case if remove option supplied without
package
2021-09-13 22:38:38 +03:00
arcanis 0744ee53dc change spelling for distro name 2021-09-13 02:49:22 +03:00
arcanis 6f5b28c4f8 expiration on server side support (#33) 2021-09-13 01:18:04 +03:00
arcanis 117e69c906 return description from the search 2021-09-12 22:31:34 +03:00
arcanis d19deb57e7 OAuth2 (#32)
* make auth method asyncs

* oauth2 demo support

* full coverage

* update docs
2021-09-12 21:41:38 +03:00
arcanis 875bfc0823 add static files support and cookie expiration settings 2021-09-11 16:34:43 +03:00
arcanis 98eb93c27a Add ability to trigger updates from the web (#31)
* add external process spawner and update test cases

* pass no_report to handlers

* provide service api endpoints

* do not spawn process for single architecture run

* pass no report to handlers

* make _call method of handlers public and also simplify process spawn

* move update under add

* implement actions from web page

* clear logging & improve l&f
2021-09-10 00:33:35 +03:00
arcanis 18de70154e add option to set user-password for service when updating its hash 2021-09-05 15:40:03 +03:00
arcanis 08e0237639 move api endpoints to status-api 2021-09-05 06:46:14 +03:00
arcanis b0575ee4ba allow read only pages to be requested without authorization 2021-09-05 06:09:43 +03:00
arcanis 9b8c9b2b2d migration of jinja tempaltes to bootstrap (#30) 2021-09-05 05:27:58 +03:00
arcanis ecf45bc3bb add remove uknown method (#29) 2021-09-03 02:28:27 +03:00
arcanis e63cb509f2 Auth support (#25)
* initial auth implementation

* add create user parser

* add tests

* update dependencies list

* add login annd logout to index also improve auth

* realworld fixes

* add method set_option to Configuration and also use it everywhere
* split CreateUser handler to additional read method
* check user duplicate on auth mapping read
* generate salt by using passlib instead of random.choice
* case-insensetive usernames
* update dependencies
* update configuration reference
* improve tests

* fix codefactor errors

* hide fields if authorization is enabled, but no auth supplied

* add settings object for auth provider

* readme update
2021-09-02 23:36:00 +03:00
arcanis 9d2a3bcbc1 Release 1.2.6 2021-08-21 16:19:21 +03:00
arcanis bb45b1d868 split S3.sync to different methods 2021-08-18 23:59:18 +03:00
arcanis 3d10fa472b guess mime type for local files 2021-08-18 05:04:26 +03:00
arcanis a90c93bbc4 add manpage generator 2021-08-17 04:05:18 +03:00
arcanis fc0474fa8f logging rethink
* well lets replace f-strings by %s as it is originally recommended
* use syslog handler by default
2021-08-17 00:23:34 +03:00
arcanis b94179e071 use asyncmock from unittest library 2021-08-11 21:09:10 +03:00
arcanis 990d5dda81 use nosec instead of disabling mktemp rule 2021-08-11 02:51:29 +03:00
arcanis 375d7c55e5 web templates improvements
* enable jinja autoescape by default for jinja raw generator
* allow to search by multiple strings (OR)
* replace test templates by symlink
2021-08-11 02:12:14 +03:00
arcanis db52b8e844 move web server to loopback by default 2021-08-11 02:02:18 +03:00
arcanis 50af309c80 add docstrings for every fixture and test methods
also add tests for missing components
2021-08-11 01:55:27 +03:00