
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Hato is a tool to manage various notification methods. Once you configure notification methods, you can send messages via the methods just by posting them to Hato.
Launch Hato with hato
command:
$ hato -c config.rb
Post your notification message:
$ curl -d 'message=test' -d 'tag=test' -d 'api_key=test' http://localhost:9699/notify
Hato supports GitHub/GitHub Enterprise-formatted webhook. Path is expected to be /webhook/:owner/:repository
like below:
$ curl -d 'payload={...}' -d 'api_key=test' http://localhost:9699/webhook/kentaro/hato
Tag is automatically built from the path. For example, the tag for the path above will be webhook.kentaro.hato
.
Consult the documentation for the details of webhook.
Hato provides DSLs for configuration.
e.g. config.rb:
Hato::Config.define do
api_key 'test'
host '0.0.0.0'
port 9699
# exact string mathing
tag 'test' do
plugin 'AwesomePlugin' do
key1 'value1'
key2 'value2'
key3 'value3'
end
end
# regexp matching
tag /^test2\.([^\.]+)\.([^\.]+)$/ do |matched1, matched2|
plugin 'AwesomePlugin' do
key1 matched1
key2 matched2
end
end
# webhook
tag /^webhook\.([^\.]+)\.([^\.]+)$/ do |owner, repository|
plugin 'AwesomePlugin' do
key1 owner
key2 repository
end
end
end
There have already been some plugins:
You can easily extend Hato by creating your own plugins. See the source for detail. It's really easy.
At first, create a Gemfile
to manage dependencies:
source 'https://rubygems.org'
gem 'hato'
gem 'hato-plugin-mail'
gem 'hato-plugin-ikachan'
Then, execute bundle exec hato -c your_config_file
Add this line to your application's Gemfile:
gem 'hato'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hato
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that hato 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.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.