Commit Graph

602 Commits

Author SHA1 Message Date
710leo 5eec7c317c bugfix: arbitrary file reading 2021-01-19 19:24:46 +08:00
UlricQin 04c650528f Merge branch 'master' of https://github.com/didi/nightingale 2021-01-19 18:42:18 +08:00
UlricQin e8ba0fb0bb fix ssrf 2021-01-19 18:41:51 +08:00
710leo 22cb24da09 add license 2021-01-18 23:39:23 +08:00
yubo 8204641656
add logger with monapi.plugins as telegraf.Logger interface (#522) 2021-01-18 19:25:47 +08:00
710leo c5ba127b9e Merge branch 'master' of https://github.com/didi/nightingale 2021-01-18 13:27:02 +08:00
710leo d2be562619 add alert & screen template 2021-01-18 13:26:37 +08:00
UlricQin a4c8638448 code refactor 2021-01-15 19:59:26 +08:00
alick-liming 51cf58fcdf
ams agent直接挂载到节点 (#518)
* ams agent直接挂载到节点

* 代码调整

Co-authored-by: alickliming <alickliming@didi.global.com>
2021-01-15 19:54:25 +08:00
qinyening b00b7817f2
Support screen and alert template (#517) 2021-01-15 15:58:21 +08:00
燕小乙 6b1e432f6d
m3db writetagged应该并发做,不然会导致transfer rpc变慢 (#514)
* m3db writetagged应该并发做,不然会导致transfer rpc变慢

* go func指针传参问题
2021-01-15 09:16:06 +08:00
UlricQin f590194fba bugfix: same stra in nid 2021-01-14 10:06:49 +08:00
710leo 72ec59bdac Support unassigned tenant search 2021-01-13 14:04:56 +08:00
UlricQin a07df519ab add 3.4.1 doc 2021-01-13 12:45:26 +08:00
UlricQin 7bf3049f4a upgrade 3.4.1 bugfix log_collect 2021-01-13 12:39:02 +08:00
yubo a88315ee74
bugfix: call collect.Decode before get() (#507)
* add models.user.i18n

* bugfix: call collect.Decode before get()
2021-01-13 12:34:44 +08:00
UlricQin c182c70b8d bugfix: check node is nil 2021-01-13 10:10:00 +08:00
alick-liming fab8568633
新增用户添加组织字段 (#505)
Co-authored-by: alickliming <alickliming@didi.global.com>
2021-01-13 10:00:58 +08:00
yubo 74545012ed
add models.user.i18n (#504) 2021-01-12 20:27:49 +08:00
UlricQin 903a1654b6 fix sql inject 2021-01-12 18:38:12 +08:00
yubo 7161c1ac4e
adjust some file, variable name for prober module (#503)
* move pulgins_config.go to config dir

* add mongodb, redis yml
2021-01-11 22:08:27 +08:00
alick-liming a9cf307cbf
租户项目粒度某类资源top数量 (#499)
* 租户项目粒度某类资源top数量

* 租户项目粒度某类资源top数量

* resname->rescate

Co-authored-by: alickliming <alickliming@didi.global.com>
2021-01-11 12:58:32 +08:00
alick-liming f9cfcaeabe
告警hours支持 (#497)
Co-authored-by: alickliming <alickliming@didi.global.com>
2021-01-11 11:42:28 +08:00
yubo b9aacf28e5
add start,end for transfer.index.fullmatch get (#494)
* add start,end with transfer.index.fullmatch get

* bugfix: should cleanup token before destory session when auth.extra.mode.enable
2021-01-09 14:09:06 +08:00
710leo 54512491b7 fix alert history tag display 2021-01-08 20:08:47 +08:00
UlricQin a3fee54f7a edit changelog 2021-01-08 17:40:12 +08:00
yubo e5f05aa724
add err log for session start (#493)
* add validate for some plugins

* restore getSessionUserWithCache method

* add validate for i18n.config

* use embed dict for i18n

* add err log for session start
2021-01-08 16:59:26 +08:00
UlricQin 312c2d1574 move patch sql to 3.4.0 2021-01-08 16:11:38 +08:00
yubo 7289636d35
use embed dict for i18n (#492)
* add validate for some plugins

* restore getSessionUserWithCache method

* add validate for i18n.config

* use embed dict for i18n
2021-01-08 15:11:41 +08:00
UlricQin 733da1ea94 converge delete 2021-01-08 15:02:31 +08:00
UlricQin a1b4344943 use beego client in sender_sms 2021-01-08 10:28:45 +08:00
UlricQin 3c26beb48c
Update README.md 2021-01-07 22:55:07 +08:00
yubo c0049326b6
Add mongdb as a plugin (#489)
* bugfix: whiteList list return empty

* support multi-dict for i18n && add mongodb for monapi as a plugin

* use 10day as max lifetime for extra mode auth

* bugfix: ignore i18n with default value

* Spelling mistakes
2021-01-07 20:06:48 +08:00
yubo 543d345aea
Dev (#487)
* add rdb config auth.debug for white_list

* update prober config support mode param

* feature: support access-token control with max connection, idle time, ...

* add token/session delete with auth check

* enable debug user for auth

* skip init sso db if not enable
2021-01-07 09:13:04 +08:00
UlricQin fb1354898c Merge branch 'master' of https://github.com/didi/nightingale 2021-01-06 12:17:15 +08:00
UlricQin e0263edc54 fix genNameAndNoteByResources when note is blank 2021-01-06 12:17:06 +08:00
alick-liming b3a7d7c9a8
用户组织下拉接口 (#486)
Co-authored-by: alickliming <alickliming@didi.global.com>
2021-01-06 11:14:38 +08:00
alick-liming a8008a9418
Nodename search (#484)
* node name search

* node name search

* node name search

* node name search

Co-authored-by: alickliming <alickliming@didi.global.com>
2021-01-05 14:31:18 +08:00
Ulric Qin e82f560c44 code refactor 2021-01-03 18:13:48 +08:00
Ulric Qin 3589c7de69 compatible for blank tag value 2021-01-03 17:57:11 +08:00
Ulric Qin 72cf2c7578 add changelog for 3.4.0 2021-01-01 12:12:04 +08:00
Ulric Qin eddd77d2d9 add patch sql for hbs 2021-01-01 11:42:17 +08:00
UlricQin 5d61468de6 add vendor 2021-01-01 11:11:47 +08:00
Ulric Qin e85debddfc upgrade 3.4.0 2021-01-01 10:46:59 +08:00
yubo d45ea02562
Rdb (#479)
* use collector interface

* mysql can work fine

* add basecollector

* add prober & monapi.plugins

* enable mysql plugins work

* rename collector -> manager

* add white list access check for rdb

* add cache module for authConfig & session

* rollback n9e_rdb_3.3.0.sql

* add sql ddl document

* add white_list, pwd, login access control

* add email code for login & reset password

* use sessionUsername instead of cookieUsername

* remove cookie name and data from session

* rename userName to username

* add remote_addr with session connection

* add get user by sid with cache

* enable cookie life time could be zero

* go mod tidy

* Rdb with session & monapi with telegraf (#456)

* use collector interface

* mysql can work fine

* add basecollector

* add prober & monapi.plugins

* enable mysql plugins work

* rename collector -> manager

* add white list access check for rdb

* add cache module for authConfig & session

* rollback n9e_rdb_3.3.0.sql

* add sql ddl document

* add white_list, pwd, login access control

* add email code for login & reset password

* use sessionUsername instead of cookieUsername

* remove cookie name and data from session

* rename userName to username

* add remote_addr with session connection

* add get user by sid with cache

* enable cookie life time could be zero

* go mod tidy

* add plugins config for prober

* add prober plugin expression parse

* update transfer default config for m3

* Rdb (#458)

* bugfix: session gc

* use flag for pwdMustInclude

* change user login function

* delete invite token after use

* bugfix: login response

* add sessionStart middle ware

* add auth module

* add i18n for rdb

* add i18n.zh for rdb.auth

* add mon plugins(redis, mongodb)

* update config

* add sub struct into definitions

* clean up sid cache after session destory

* bugfix: get user return nil when not found

* update i18n

* bugfix: ignore cache nologin user

* add user for callback output

* add password change api

* update default configfile & sql patch

* merge mon http middleware from rdb

* remove sso logout, sso already supporte one time auth
2021-01-01 10:41:30 +08:00
710leo bad43090ff Add user dispname under the node 2020-12-31 18:09:42 +08:00
710leo c2867d9638 Modify alert function 2020-12-31 15:11:59 +08:00
UlricQin 6dbbbac344 bugfix: insert task_meta sql inject 2020-12-31 13:01:43 +08:00
UlricQin e903f609a5
Update README.md 2020-12-30 09:19:10 +08:00
Tiny 9dd1f1f90b
钉钉告警可以at特定指定人员 (#475)
* - add dingtalk robot @ special person
should config phone number in user IM field

* send msg by each robot when there are more than one robot in stra
2020-12-29 19:43:02 +08:00