Avoid cron and external processes where possible #29
Replies: 4 comments 16 replies
-
I like this goal. If the command line arguments become too much, we might consider a config file at some point. |
Beta Was this translation helpful? Give feedback.
-
Re loops usage, on trustification project, I found interesting collectorist's approach for managing packages to be evaluated for vulnerabilities with a pattern I think suitable also for trustify. |
Beta Was this translation helpful? Give feedback.
-
I think the concept we had in Drogue with Ulf super-binary worked quite well. Collecting futures form "main" |
Beta Was this translation helpful? Give feedback.
-
My two cents: My comments go in the direction that I think the current approach: What if we want to import data from https://access.redhat.com/security/data/csaf/v2/advisories/ ?
{
"kind": "HTTP",
"url": "https://access.redhat.com/security/data/csaf/v2/advisories/"
}
What if we want to import data from a FTP or SFTP?POST {
"kind": "FTP | SFTP",
"url": "https://myServer.com",
"username": "myuser",
"password": "mypassword"
} What if we want to import data from a GIT?POST {
"kind": "GIT",
"url": "https://github.com/org/repo.git",
"accessToken": "123456"
} What do we gain making the API the ruler of tasks?If the API is the one that rules all tasks, we can:
User experienceBeing able to fire the "import" task from the UI (through the REST API) allows the user to define multiple sources of data, configuring where that data is, and how to get access to that data (credentials required).
Users can by themselves configure multiple combinations of sources, run them when they want or even create CRONs like "I want this tasks to be executed every week at 12:00am" |
Beta Was this translation helpful? Give feedback.
-
In an effort to reduce the number of processes, should we aim towards the goal of a single
trustd
with configuration, and when needed it internally has loops doing walker-y types of things?Hopefully we can reach a point of simply being able to
start
andstop
The Entire System, instead of remember to also run crawlers, walkers, importers. They become intrinsic into The System.Beta Was this translation helpful? Give feedback.
All reactions