Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Simple HTTP-based Job scheduling for the cloud.
Currently only PostgreSQL is supported. Patches for other databases are welcome.
Khronos use a rack app to schedule and query for scheduled tasks, and a worker process to execute them in the background.
At 'examples' directory you find two rackup files for these processes.
Create a scheduled task:
RestClient.post('http://localhost:3000/task', {
:context => 'test',
:at => 24.hours.from_now,
:task_url => "http://myapp.com/do-something-awesome",
:recurrency => 12.hours
})
# => {"active":true,"at":"2012-09-15T21:24:56-03:00","context":"test","id":1,"recurrency":1,"task_url":"http://myapp.com/do-something-awesome"}
Query for a scheduled task:
RestClient.get('http://localhost:3000/task', :params => { :context => 'test' })
# => {"active":true,"at":"2012-09-15T21:24:56-03:00","context":"test","id":1,"recurrency":1,"task_url":"http://myapp.com/do-something-awesome"}
Delete a scheduled task by query:
RestClient.delete('http://localhost:3000/task', :params => { :status_code => 404 })
# => {"deleted":3}
RestClient.delete('http://localhost:3000/task', :params => { :id => 9 })
# => {"deleted":1}
Query for logs for tasks that already ran.
RestClient.get('http://localhost:3000/schedule/logs', :params => { :status_code => 500 })
# => [{"id":3,"schedule_id":1,"started_at":"2012-09-15T13:38:48-03:00","status_code":500},{"id":5,"schedule_id":2,"started_at":"2012-09-15T13:38:48-03:00","status_code":500}]
Note: these examples are using rest-client and activesupport.
Feel free to fork and send pull requests with features and/or bug fixes.
Khronos is released under the MIT license. Please read the LICENSE file.
FAQs
Unknown package
We found that khronos demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.