Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-meshproxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-meshproxy
Commits
9eba25a6
Commit
9eba25a6
authored
Mar 22, 2022
by
张亚松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改验证token逻辑
parent
a26302e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
.beagle.yml
.beagle.yml
+8
-8
src/handler/proxyhandler.go
src/handler/proxyhandler.go
+5
-0
No files found.
.beagle.yml
View file @
9eba25a6
...
@@ -30,7 +30,7 @@ pipeline:
...
@@ -30,7 +30,7 @@ pipeline:
base
:
registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12
base
:
registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12
dockerfile
:
build/dockerfile
dockerfile
:
build/dockerfile
repo
:
wod/apaas-meshproxy
repo
:
wod/apaas-meshproxy
version
:
v3.0.
4
version
:
v3.0.
5
channel
:
alpha
channel
:
alpha
args
:
"
TARGETOS=linux,TARGETARCH=amd64"
args
:
"
TARGETOS=linux,TARGETARCH=amd64"
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
...
@@ -47,8 +47,8 @@ pipeline:
...
@@ -47,8 +47,8 @@ pipeline:
dns
:
223.5.5.5
dns
:
223.5.5.5
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
4
-alpha
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
5
-alpha
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
4
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
5
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
secrets
:
secrets
:
-
source
:
REGISTRY_USER_ALIYUN
-
source
:
REGISTRY_USER_ALIYUN
...
@@ -63,7 +63,7 @@ pipeline:
...
@@ -63,7 +63,7 @@ pipeline:
dns
:
223.5.5.5
dns
:
223.5.5.5
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
4
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
5
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
secrets
:
secrets
:
...
@@ -83,7 +83,7 @@ pipeline:
...
@@ -83,7 +83,7 @@ pipeline:
base
:
registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12-arm64
base
:
registry.cn-qingdao.aliyuncs.com/wod/alpine:3.12-arm64
dockerfile
:
build/dockerfile
dockerfile
:
build/dockerfile
repo
:
wod/apaas-meshproxy
repo
:
wod/apaas-meshproxy
version
:
v3.0.
4
version
:
v3.0.
5
channel
:
alpha-arm64
channel
:
alpha-arm64
args
:
"
TARGETOS=linux,TARGETARCH=arm64"
args
:
"
TARGETOS=linux,TARGETARCH=arm64"
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
...
@@ -100,8 +100,8 @@ pipeline:
...
@@ -100,8 +100,8 @@ pipeline:
dns
:
223.5.5.5
dns
:
223.5.5.5
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
4
-alpha-arm64
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
5
-alpha-arm64
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
4
-arm64
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
5
-arm64
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
secrets
:
secrets
:
-
source
:
REGISTRY_USER_ALIYUN
-
source
:
REGISTRY_USER_ALIYUN
...
@@ -116,7 +116,7 @@ pipeline:
...
@@ -116,7 +116,7 @@ pipeline:
dns
:
223.5.5.5
dns
:
223.5.5.5
volumes
:
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
/var/run/docker.sock:/var/run/docker.sock
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
4
-arm64
source
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0.
5
-arm64
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0-arm64
target
:
registry.cn-qingdao.aliyuncs.com/wod/apaas-meshproxy:v3.0-arm64
registry
:
registry.cn-qingdao.aliyuncs.com
registry
:
registry.cn-qingdao.aliyuncs.com
secrets
:
secrets
:
...
...
src/handler/proxyhandler.go
View file @
9eba25a6
...
@@ -42,6 +42,11 @@ func Proxy(c *gin.Context) {
...
@@ -42,6 +42,11 @@ func Proxy(c *gin.Context) {
if
apaasToken
==
""
{
if
apaasToken
==
""
{
apaasToken
=
c
.
GetHeader
(
"Authorization"
)
apaasToken
=
c
.
GetHeader
(
"Authorization"
)
}
}
if
strings
.
HasPrefix
(
"apaasToken"
,
"Bearer "
)
{
apaasToken
=
strings
.
TrimPrefix
(
apaasToken
,
"Bearer "
)
}
fmt
.
Println
(
"apaasToken:"
,
apaasToken
)
fmt
.
Println
(
"apaasToken:"
,
apaasToken
)
if
apaasToken
==
""
{
if
apaasToken
==
""
{
c
.
JSON
(
403
,
"Get Authorization Token failed"
)
c
.
JSON
(
403
,
"Get Authorization Token failed"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment