All Projects → laincloud → entry

laincloud / entry

Licence: MIT license
Attach to LAIN app container via `lain enter`

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Labels

Projects that are alternatives of or similar to entry

stellar-turrets
Reference implementation of the Stellar Turrets protocol
Stars: ✭ 32 (-54.93%)
Mutual labels:  layer2
spec
[OLD!] RGB Protocol specifications for Bitcoin-based digital assets
Stars: ✭ 149 (+109.86%)
Mutual labels:  layer2
fluidex-backend
Building the first permissionless layer2 orderbook DEX on Ethereum, powered by PLONK zk-rollup
Stars: ✭ 24 (-66.2%)
Mutual labels:  layer2
typescript-eth-starter
🔌 Ethereum Dapp Basic Typescript Starter
Stars: ✭ 125 (+76.06%)
Mutual labels:  layer2
sso
Single Sign On with OAuth2 and OpenID Connect, independent of LAIN
Stars: ✭ 22 (-69.01%)
Mutual labels:  layer2

Entry

Build Status MIT license

Documentation

相关文档见 Entry 应用文档

架构

整体架构

整体架构如下图所示:

整体架构

  • LAIN 应用所有者可以通过 lain-cli 或者 console 进入除 entry 之外的 LAIN 应用
  • 系统管理员可以在 https://entry.${LAIN_DOMAIN}/web 搜索、回放用户会话或者搜索用户命令

审计

Entry 设计了完善的审计框架:

  • Entry 审计所有经自己建立的用户会话
  • 系统管理员还可以从 LAIN 节点进入所有的 LAIN 应用(包括 entry),这时由堡垒机负责审计

如下图所示:

审计框架

数据库

Entry 将用户会话和命令存储于数据库,数据表如下图所示:

数据表

部署

配置

请参考 example.json 编写配置文件,并上传到 lvault:

lain secret add ${LAIN-Domain} web /lain/app/prod.json -f example.json
  • smtp.address 需要包含端口,如:${mail-address}:25
  • smtp.password 可选,为空时不使用 auth

开发

  • server/gen 下除 server/gen/restapi/configure_entry.go 外均由 go-swagger 生成,请不要手动修改
  • server/gen/restapi/configure_entry.go 包含初始化逻辑以及后端 API 配置
  • server/handler 包含后端 API 的实际逻辑

swagger.yml 生成代码:

go get -u github.com/go-swagger/go-swagger/cmd/swagger  # 安装 swagger
swagger generate server -f ./swagger.yml -t server/gen  # 生成代码

Licensing

Entry is released under MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].