Keep It Simple, Stupid To You | archlinuxcn package web server backend
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib/tasks
log
public
test
tmp
vendor
.deploylist
.gitignore
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
README.md
Rakefile
build.log
config-dist.sh
config.ru
deploy_rsa.enc

README.md

KISS2U

Keep It Simple, Stupid To You

Build Status

codecov

使用 hmac 认证提交的数据

具体需求:

https://github.com/archlinuxcn/repo/issues/794

详细信息:

https://a-wing.top/archlinux/2018/08/05/kiss2u.html

Interface

Interface Function Other
GET: /packages 获取全部包状态 Have cors
GET: /packages/:pkgname 获取指定包的全部日志
POST: /packages 提交包状态 Requirement Hmac auth

Feature

  • 提交数据认证, hmac 认证
  • 过滤重复提交日志,已 lilac 日志写入时间为基准
  • 日志解析 (包括版本号有空格的情况)
  • latest 表,successful or failed 次数
  • Ruby 2.5.1
  • Rails 5.2.0
  • inotify-tools

Database

rails 自带的action_record几乎支持所用的主流数据库。。。我是在postgresql开发测试的。。所以推荐 目前用SQLite3

Test

bundle install
rails db:setup
export KISS2U_AUTH_KEY=key

rails server

Todo

  • 监听发送日志脚本 bin/lilackiss
  • 前端显示界面 KISS2UI
  • Orphaning Package
  • .....还有神马???