Commit Graph

128 Commits

Author SHA1 Message Date
UUBulb
553f8e58d4
fix: oauth2 redirect url not consistent (#930)
* fix: oauth2 redirect url not consistent

* only use one redirect uri

* feat: allow to disable password authentication

* generate translation template

* update error

* redirect

* query
2024-12-31 22:29:29 +08:00
naiba
18020939da feat: 绑定 oauth2
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Contributors / contributors (push) Has been cancelled
Sync / sync-to-jihulab (push) Has been cancelled
Run Tests / tests (macos) (push) Has been cancelled
Run Tests / tests (ubuntu) (push) Has been cancelled
Run Tests / tests (windows) (push) Has been cancelled
2024-12-28 23:50:59 +08:00
UUBulb
653d0cf2e9
feat: user roles (#852)
* [WIP] feat: user roles

* update

* update

* admin handler

* update

* feat: user-specific connection secret

* simplify some logics

* cleanup

* update waf

* update user api error handling

* update waf api

* fix codeql

* update waf table

* fix several problems

* add pagination for waf api

* update permission checks

* switch to runtime check

* 1

* cover?

* some changes
2024-12-22 00:05:41 +08:00
naiba
8b959b213f refactor: fallback agent ip to connecting ip 2024-12-19 23:21:31 +08:00
naiba
6baa51e5bb chore: update dependency
Some checks failed
CodeQL / Analyze (go) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
Contributors / contributors (push) Waiting to run
Sync / sync-to-jihulab (push) Waiting to run
Run Tests / tests (macos) (push) Has been cancelled
Run Tests / tests (ubuntu) (push) Has been cancelled
Run Tests / tests (windows) (push) Has been cancelled
2024-12-14 00:07:37 +08:00
naiba
a0878876b2 fix: windows path issue 2024-11-30 00:02:45 +08:00
dependabot[bot]
de57fbd262
chore(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 (#485)
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.5.0...v4.5.1)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-28 20:23:41 +08:00
naiba
3cce7ebf01 rename repo 2024-11-28 19:38:54 +08:00
naiba
0552b69b36 refactor: replace pflag with standard flag package in main.go 2024-11-25 22:03:11 +08:00
UUBulb
626a7d6059
apply upstream changes (#18)
* apply upstream changes

* update translations, fix i18n script

* remove installation scripts and related files
2024-11-24 01:07:14 +08:00
UUBulb
fc98c0919f
report geoip separately, fix server creation & deletion bugs (#14)
* new geoip method

* report geoip separately, fix server creation & deletion bugs

* fix struct tag

* fix write name

* remove deleteion list

* remove rpc realip header

* Revert "remove rpc realip header"

This reverts commit 8a5f86cf2d7df87f28cfa2a3b3430f449dd6ed73.
2024-11-22 22:40:43 +08:00
uubulb
5114fc2854 feat: add i18n support 2024-11-01 05:07:04 +08:00
uubulb
6eb28d03b3 merge upstream, improve geoip pkg 2024-10-31 03:34:25 +08:00
UUBulb
a474b8484b
ddns: replace tencentcloud implemention (#462) 2024-10-29 21:39:45 +08:00
UUBulb
31520debb2
update grpc-go & protobuf definition (#455) 2024-10-24 20:41:47 +08:00
naiba
c4011934f7 fix agent connect 2024-10-22 23:44:50 +08:00
UUBulb
cf5408751e
add a helper function (#443) 2024-10-21 12:11:02 +08:00
naiba
606e10ca0a refactor: remove pages, combine grpc http port 2024-10-20 11:47:45 +08:00
naiba
843ecdaa33 init jwt 2024-10-20 00:09:16 +08:00
naiba
9e6bbd3386 🎉 init swaggo 2024-10-19 23:14:53 +08:00
UUBulb
a503f0cf40
ddns: store configuation in database (#435)
* ddns: store configuation in database

Co-authored-by: nap0o <144927971+nap0o@users.noreply.github.com>

* feat: split domain with soa lookup

* switch to libdns interface

* ddns: add unit test

* ddns: skip TestSplitDomainSOA on ci

network is not steady

* fix error handling

* fix error handling

---------

Co-authored-by: nap0o <144927971+nap0o@users.noreply.github.com>
2024-10-17 21:03:03 +08:00
UUBulb
55f5c89c1c
feat: description file for custom theme; use gjson (#433)
* feat: description file for custom theme; use gjson

* fix gosec

* remove outdated stuff
2024-10-10 00:08:16 +08:00
naiba
6a70e67ef9 feat: 在面板重启时通知agent更新信息 2024-08-02 19:41:39 +08:00
UUBulb
26d81f6d7a
feat: use embed geoip database (#396)
* feat: use embed geoip database

* mention ipinfo

* only read once

* comments

comments

* chore: installer version

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-28 13:59:58 +08:00
naiba
1c91fcffac feat: 去除 webTerminal 的 websocket 依赖 2024-07-14 12:47:36 +08:00
naiba
9d6682fd58 fix: build 2024-07-13 13:00:48 +08:00
Tao Chen
e1513203b4
添加OIDC支持 (#387)
* add general OIDC

* use "github.com/coreos/go-oidc/v3/oidc" to simplify oidc config

* fix: check if https by X-Forwarded-Proto

* recovery config.yaml
2024-07-13 12:51:59 +08:00
dependabot[bot]
aeb7c52565
Bump github.com/hashicorp/go-retryablehttp from 0.7.2 to 0.7.7 (#377) 2024-06-25 22:11:17 +08:00
UUBulb
5c7652f047
Add DDNS Profiles, use publicsuffixlist domain parser (#350)
* Add DDNS Profiles, use publicsuffixlist domain parser

* Add Tencent Cloud DNS Provider

* Restore validate DDNS provider function

* chore: fmt & upgrade dependencies
2024-04-27 13:36:36 +08:00
naiba
6d7d3c5e85 ⬆️ Update Go version to 1.20 and update dependencies 2024-04-06 11:49:20 +08:00
naiba
194f3290bc ⬆️ Update dependencies 2024-03-30 11:15:26 +08:00
naiba
7d85c4c4a5 Update dependencies and fix test assertions 2024-03-23 13:00:47 +08:00
dependabot[bot]
64ba3cd0a7
Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 (#332)
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 12:19:03 +08:00
dependabot[bot]
51c1e41123
Bump golang.org/x/crypto from 0.15.0 to 0.17.0 (#312)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 09:43:33 +08:00
naiba
56c66402a2 🚸 [v0.15.11] improve translation and serverstats theme 2023-11-21 09:59:14 +08:00
naiba
1c00cc8e3b 💄 优化 server-status 主题 2023-11-07 22:15:13 +08:00
naiba
bf7056fd15 update workflows 2023-10-21 18:27:25 +08:00
dependabot[bot]
af3bc66c0c
Bump golang.org/x/net from 0.14.0 to 0.17.0 (#293)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 09:51:31 +08:00
naiba
93bcf833fd v0.15.2 消息模板新增 #DATETIME# 占位符 2023-09-02 00:06:40 +08:00
dependabot[bot]
030521b882
Bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gin-gonic/gin/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-01 20:33:37 +00:00
naiba
65afad89eb [agent] splitting the agent into separate repositories 2023-05-11 00:08:54 +08:00
naiba
5bb7f84aa8 downgrade sqlite driver 2023-05-10 23:24:46 +08:00
naiba
6346aab765 ⬆️ upgrade dependencies 2023-05-10 00:34:04 +08:00
naiba
7b99f84022 upgrade protoc && protoc-gen-go 2023-04-26 11:16:36 +08:00
naiba
e8eada39d0 ⬆️ upgrade dependencies 2023-04-12 22:32:25 +08:00
naiba
0f44075910 ⬆️ upgrade dependencies 2023-04-01 13:23:18 +08:00
naiba
3e9705d6f4 🚸 [agent] get geoip with UA 2023-03-30 17:17:06 +08:00
dependabot[bot]
df25a4fe4d
bump golang.org/x/net from 0.5.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-18 04:05:19 +00:00
naiba
97ff9305a5 ⬆️ upgrade dependencies 2023-02-02 22:44:47 +08:00
naiba
094580cf20 ️ 支持未 root 的 Android 设备 close #270 2023-01-25 16:14:08 +08:00