mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
feat(system-security): Add new routes to whitelisted (#7543)
This commit is contained in:
parent
9e551edf31
commit
18321d6e5a
3
.gitignore
vendored
3
.gitignore
vendored
@ -60,3 +60,6 @@ quick_start.sh
|
||||
cmd/server/fileList.txt
|
||||
.fileList.txt
|
||||
1Panel.code-workspace
|
||||
|
||||
core/.golangci.yml
|
||||
agent/.golangci.yml
|
@ -746,22 +746,6 @@ func (a *AppInstallService) GetParams(id uint) (*response.AppConfig, error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if form.Type == "apps" {
|
||||
if m, ok := form.Child.(map[string]interface{}); ok {
|
||||
result := make(map[string]string)
|
||||
for key, value := range m {
|
||||
if strVal, ok := value.(string); ok {
|
||||
result[key] = strVal
|
||||
}
|
||||
}
|
||||
if envKey, ok := result["envKey"]; ok {
|
||||
serviceName := envs[envKey]
|
||||
if serviceName != nil {
|
||||
appInstall, _ := appInstallRepo.GetFirst(appInstallRepo.WithServiceName(serviceName.(string)))
|
||||
appParam.ShowValue = appInstall.Name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
params = append(params, appParam)
|
||||
|
@ -45,6 +45,7 @@ var WebUrlMap = map[string]struct{}{
|
||||
"/apps/all": {},
|
||||
"/apps/installed": {},
|
||||
"/apps/upgrade": {},
|
||||
"apps/setting": {},
|
||||
|
||||
"/containers": {},
|
||||
"/containers/container": {},
|
||||
@ -55,6 +56,7 @@ var WebUrlMap = map[string]struct{}{
|
||||
"/containers/compose": {},
|
||||
"/containers/template": {},
|
||||
"/containers/setting": {},
|
||||
"containers/dashboard": {},
|
||||
|
||||
"/cronjobs": {},
|
||||
|
||||
@ -133,6 +135,7 @@ var WebUrlMap = map[string]struct{}{
|
||||
"/xpack/alert/setting": {},
|
||||
"/xpack/setting": {},
|
||||
"xpack/node": {},
|
||||
"xpack/waf/stat": {},
|
||||
}
|
||||
|
||||
var DynamicRoutes = []string{
|
||||
|
@ -123,11 +123,11 @@ html {
|
||||
|
||||
.input-help {
|
||||
font-size: 12px;
|
||||
word-break: break-all;
|
||||
color: #8f959e;
|
||||
word-break: keep-all;
|
||||
color: #adb0bc;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
height: 12px;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.input-error {
|
||||
@ -431,7 +431,7 @@ html {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dialog-footer{
|
||||
.dialog-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
|
@ -193,6 +193,8 @@
|
||||
<el-option label="Node.js" value="node"></el-option>
|
||||
<el-option label="Java" value="java"></el-option>
|
||||
<el-option label="Go" value="go"></el-option>
|
||||
<el-option label="Python" value="python"></el-option>
|
||||
<el-option label=".NET" value="dotnet"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
Loading…
x
Reference in New Issue
Block a user