Skip to content

Commit

Permalink
Merge pull request #1555 from jumpserver/dev
Browse files Browse the repository at this point in the history
v4.3.0
  • Loading branch information
BaiJiangJie authored Oct 17, 2024
2 parents ae22c07 + a6e2550 commit 67ccf14
Show file tree
Hide file tree
Showing 58 changed files with 938 additions and 493 deletions.
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ release
!config_example.yml

.DS_Store
package-lock.json
node_modules


ui/node_modules/
ui/dist/

# local env files
.env.local
Expand All @@ -48,7 +46,5 @@ pnpm-debug.log*
*.sln
*.sw?
demo
assets/
ui/dist/favicon.ico
ui/dist/index.html

docker-compose.yaml
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM jumpserver/koko-base:20240916_022847 AS stage-build
FROM jumpserver/koko-base:20241011_023915 AS stage-build

WORKDIR /opt/koko
ARG TARGETARCH
COPY . .
Expand All @@ -12,9 +13,9 @@ RUN yarn build
WORKDIR /opt/koko
RUN make build -s \
&& set -x && ls -al . \
&& mv /opt/koko/build/koko-linux-${TARGETARCH} /opt/koko/koko \
&& mv /opt/koko/build/helm-linux-${TARGETARCH} /opt/koko/bin/helm \
&& mv /opt/koko/build/kubectl-linux-${TARGETARCH} /opt/koko/bin/kubectl
&& mv /opt/koko/build/koko /opt/koko/koko \
&& mv /opt/koko/build/helm /opt/koko/bin/helm \
&& mv /opt/koko/build/kubectl /opt/koko/bin/kubectl

RUN mkdir /opt/koko/release \
&& mv /opt/koko/locale /opt/koko/release \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-base
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ WORKDIR /opt
ARG HELM_VERSION=v3.14.3
ARG KUBECTL_VERSION=v1.29.3
ARG CHECK_VERSION=v1.0.3
ARG USQL_VERSION=v0.0.3
ARG USQL_VERSION=v0.0.4

RUN set -ex \
&& mkdir -p /opt/koko/bin \
&& wget -O kubectl.tar.gz https://dl.k8s.io/${KUBECTL_VERSION}/kubernetes-client-linux-${TARGETARCH}.tar.gz \
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

require (
github.com/Azure/azure-storage-blob-go v0.6.0
github.com/LeeEirc/elfinder v0.0.14
github.com/LeeEirc/elfinder v0.0.15
github.com/LeeEirc/httpsig v1.2.1
github.com/LeeEirc/tclientlib v0.0.3-0.20230803101925-fb52a90cb08d
github.com/LeeEirc/terminalparser v0.0.0-20220328021224-de16b7643ea4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8=
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/LeeEirc/elfinder v0.0.14 h1:6ObxwIoC5zmrnKArUU5Mz++/T3lzgl1Ja0pS1Smd3j4=
github.com/LeeEirc/elfinder v0.0.14/go.mod h1:d1bMAAydkZSBxSN/EuQjBg6B0xcPP3boHuYEpzEHYTs=
github.com/LeeEirc/elfinder v0.0.15 h1:ZnBJqkcbyt6zUgcGzhPHwsa88k0lhbNOa5rVsoJTG9s=
github.com/LeeEirc/elfinder v0.0.15/go.mod h1:d1bMAAydkZSBxSN/EuQjBg6B0xcPP3boHuYEpzEHYTs=
github.com/LeeEirc/httpsig v1.2.1 h1:GGmCc2Bug3KeCchlZHwrfyjyAnw+JlzMjKDobPypirs=
github.com/LeeEirc/httpsig v1.2.1/go.mod h1:aoLZLXCSNDgkzsH2sGLWn3hlVbF+Voe8fCArxLt9nWA=
github.com/LeeEirc/tclientlib v0.0.3-0.20230803101925-fb52a90cb08d h1:4qUSGc/34IALiDs2kBrjbCKfx7zvAt16K+gTRzNN8Fo=
Expand Down
47 changes: 24 additions & 23 deletions locale/en_US/LC_MESSAGES/koko.po
Original file line number Diff line number Diff line change
Expand Up @@ -362,51 +362,52 @@ msgstr ""

#. i18n.T
#. i18n.T
#: pkg/handler/server_ssh.go:662 pkg/handler/server_ssh.go:666
#: pkg/handler/server_ssh.go:680 pkg/handler/server_ssh.go:684
msgid "No found asset"
msgstr ""

#. i18n.T
#. i18n.T
#. i18n.T
#. lang.T
#: pkg/handler/server_ssh.go:695 pkg/handler/server_ssh.go:700
#: pkg/handler/server_ssh.go:718 pkg/proxy/parser.go:226
#: pkg/handler/server_ssh.go:713 pkg/handler/server_ssh.go:718
#: pkg/handler/server_ssh.go:736 pkg/proxy/parser.go:230
msgid "have no permission to upload file"
msgstr ""

#. lang.T
#: pkg/proxy/parser.go:262
#: pkg/proxy/parser.go:266
msgid ""
"The command you executed is risky and an alert notification will be sent to "
"the administrator. Do you want to continue?[Y/N]"
msgstr ""

#. lang.T
#: pkg/proxy/parser.go:278
msgid "the reviewers will confirm. continue or not [Y/n]"
#: pkg/proxy/parser.go:282
msgid "The command '%s' requires review. Continue or not [Y/n]?"
msgstr ""

#. lang.T
#. lang.T
#. lang.T
#: pkg/proxy/parser.go:298 pkg/proxy/parser.go:305 pkg/proxy/parser.go:453
#: pkg/proxy/parser.go:302 pkg/proxy/parser.go:309 pkg/proxy/parser.go:463
msgid "Command `%s` is forbidden"
msgstr ""

#. lang.T
#: pkg/proxy/parser.go:524
#: pkg/proxy/parser.go:534
msgid "have no permission to download file"
msgstr ""

#. lang.T
#: pkg/proxy/parser.go:598
#: pkg/proxy/parser.go:608
msgid ""
"Please waiting for the reviewers to confirm command `%s`, cancel by CTRL+C or CTRL+D."
"Please waiting for the reviewers to confirm command `%s`, cancel by CTRL+C "
"or CTRL+D."
msgstr ""

#. lang.T
#: pkg/proxy/parser.go:608
#: pkg/proxy/parser.go:618
msgid ""
"Need ticket confirm to execute command, already send email to the reviewers"
msgstr ""
Expand All @@ -415,7 +416,7 @@ msgstr ""
#. lang.T
#. lang.T
#. lang.T
#: pkg/proxy/parser.go:609 pkg/proxy/parser.go:610 pkg/proxy/server.go:58
#: pkg/proxy/parser.go:619 pkg/proxy/parser.go:620 pkg/proxy/server.go:58
#: pkg/proxy/server.go:62
msgid ""
"HandleTask does not support protocol %s, please use web terminal to access"
Expand All @@ -427,45 +428,45 @@ msgid "Account <%s> and asset <%s> protocol are inconsistent."
msgstr ""

#. lang.T
#: pkg/proxy/server.go:100
#: pkg/proxy/server.go:101
msgid "You don't have permission login %s"
msgstr ""

#. lang.T
#: pkg/proxy/server.go:336
#: pkg/proxy/server.go:337
msgid "You get auth token failed"
msgstr ""

#. lang.T
#: pkg/proxy/server.go:347
#: pkg/proxy/server.go:348
msgid "Get auth password failed"
msgstr ""

#. lang.T
#. lang.T
#: pkg/proxy/server.go:363 pkg/proxy/server.go:420
#: pkg/proxy/server.go:364 pkg/proxy/server.go:421
msgid "Reuse SSH connections (%s@%s) [Number of connections: %d]"
msgstr ""

#. lang.T
#: pkg/proxy/server.go:676
#: pkg/proxy/server.go:677
msgid "Switched to %s"
msgstr ""

#. lang.T
#. lang.T
#: pkg/proxy/server.go:773 pkg/proxy/server.go:918
#: pkg/proxy/server.go:774 pkg/proxy/server.go:919
msgid "Connect with api server failed"
msgstr ""

#. lang.T
#: pkg/proxy/server.go:963
#: pkg/proxy/server.go:968
msgid "Start domain gateway failed %s"
msgstr ""

#. lang.T
#. lang.T
#: pkg/proxy/server.go:971 pkg/proxy/server_options.go:108
#: pkg/proxy/server.go:976 pkg/proxy/server_options.go:108
msgid "Manual"
msgstr ""

Expand Down Expand Up @@ -495,18 +496,18 @@ msgid "Connecting to Kubernetes %s container %s"
msgstr ""

#. lang.T
#: pkg/proxy/switch.go:285
#: pkg/proxy/switch.go:325
msgid "Session max time reached, disconnect"
msgstr ""

#. lang.T
#. lang.T
#: pkg/proxy/switch.go:296 pkg/proxy/switch.go:305
#: pkg/proxy/switch.go:336 pkg/proxy/switch.go:345
msgid "Permission has expired, disconnect"
msgstr ""

#. lang.T
#: pkg/proxy/switch.go:317
#: pkg/proxy/switch.go:357
msgid "Terminated by admin %s"
msgstr ""

Expand Down
54 changes: 29 additions & 25 deletions locale/ja_JP/LC_MESSAGES/koko.po
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ msgstr "%s の一意のアセットでなければなりません"

#. i18n.T
#. i18n.T
#: pkg/handler/server_ssh.go:662 pkg/handler/server_ssh.go:666
#: pkg/handler/server_ssh.go:680 pkg/handler/server_ssh.go:684
#, fuzzy
msgid "No found asset"
msgstr "一致したアセット %s が見つかりません"
Expand All @@ -384,44 +384,48 @@ msgstr "一致したアセット %s が見つかりません"
#. i18n.T
#. i18n.T
#. lang.T
#: pkg/handler/server_ssh.go:695 pkg/handler/server_ssh.go:700
#: pkg/handler/server_ssh.go:718 pkg/proxy/parser.go:226
#: pkg/handler/server_ssh.go:713 pkg/handler/server_ssh.go:718
#: pkg/handler/server_ssh.go:736 pkg/proxy/parser.go:230
msgid "have no permission to upload file"
msgstr "ファイルをアップロードする権限がない"

#. lang.T
#: pkg/proxy/parser.go:262
#: pkg/proxy/parser.go:266
msgid ""
"The command you executed is risky and an alert notification will be sent to "
"the administrator. Do you want to continue?[Y/N]"
msgstr "接続に失敗しました。データベース接続設定が正しいか確認してください[Y/N]"
msgstr ""
"接続に失敗しました。データベース接続設定が正しいか確認してください[Y/N]"

#. lang.T
#: pkg/proxy/parser.go:278
msgid "the reviewers will confirm. continue or not [Y/n]"
#: pkg/proxy/parser.go:282
#, fuzzy
msgid "The command '%s' requires review. Continue or not [Y/n]?"
msgstr "レビューアが確認します。継続するかどうか [Y/n]"

#. lang.T
#. lang.T
#. lang.T
#: pkg/proxy/parser.go:298 pkg/proxy/parser.go:305 pkg/proxy/parser.go:453
#: pkg/proxy/parser.go:302 pkg/proxy/parser.go:309 pkg/proxy/parser.go:463
msgid "Command `%s` is forbidden"
msgstr "命令 `%s` は禁止されています"

#. lang.T
#: pkg/proxy/parser.go:524
#: pkg/proxy/parser.go:534
msgid "have no permission to download file"
msgstr "ファイルをダウンロードする権限がない"

#. lang.T
#: pkg/proxy/parser.go:598
#: pkg/proxy/parser.go:608
msgid ""
"Please waiting for the reviewers to confirm command `%s`, cancel by CTRL+C or CTRL+D."
"Please waiting for the reviewers to confirm command `%s`, cancel by CTRL+C "
"or CTRL+D."
msgstr ""
"レビュー担当者がコマンド `%s` をレビューするまでお待ちください。キャンセルするには、CTRL+C または CTRL+D を押してください。"
"レビュー担当者がコマンド `%s` をレビューするまでお待ちください。キャンセルす"
"るには、CTRL+C または CTRL+D を押してください。"

#. lang.T
#: pkg/proxy/parser.go:608
#: pkg/proxy/parser.go:618
msgid ""
"Need ticket confirm to execute command, already send email to the reviewers"
msgstr ""
Expand All @@ -432,7 +436,7 @@ msgstr ""
#. lang.T
#. lang.T
#. lang.T
#: pkg/proxy/parser.go:609 pkg/proxy/parser.go:610 pkg/proxy/server.go:58
#: pkg/proxy/parser.go:619 pkg/proxy/parser.go:620 pkg/proxy/server.go:58
#: pkg/proxy/server.go:62
#, fuzzy
msgid ""
Expand All @@ -448,45 +452,45 @@ msgid "Account <%s> and asset <%s> protocol are inconsistent."
msgstr "システムユーザ <%s> と資産 <%s> のプロトコルが一致しない"

#. lang.T
#: pkg/proxy/server.go:100
#: pkg/proxy/server.go:101
msgid "You don't have permission login %s"
msgstr "ログイン権限がありません %s"

#. lang.T
#: pkg/proxy/server.go:336
#: pkg/proxy/server.go:337
msgid "You get auth token failed"
msgstr "認証トークンの取得に失敗しました"

#. lang.T
#: pkg/proxy/server.go:347
#: pkg/proxy/server.go:348
msgid "Get auth password failed"
msgstr "認証トークンの取得に失敗しました"

#. lang.T
#. lang.T
#: pkg/proxy/server.go:363 pkg/proxy/server.go:420
#: pkg/proxy/server.go:364 pkg/proxy/server.go:421
msgid "Reuse SSH connections (%s@%s) [Number of connections: %d]"
msgstr "SSH接続の再利用 (%s@%s) [接続数: %d]"

#. lang.T
#: pkg/proxy/server.go:676
#: pkg/proxy/server.go:677
msgid "Switched to %s"
msgstr "%s に切り替え"

#. lang.T
#. lang.T
#: pkg/proxy/server.go:773 pkg/proxy/server.go:918
#: pkg/proxy/server.go:774 pkg/proxy/server.go:919
msgid "Connect with api server failed"
msgstr "APIサーバーとの接続に失敗しました"

#. lang.T
#: pkg/proxy/server.go:963
#: pkg/proxy/server.go:968
msgid "Start domain gateway failed %s"
msgstr "ドメインゲートウェイの開始に失敗した %s"

#. lang.T
#. lang.T
#: pkg/proxy/server.go:971 pkg/proxy/server_options.go:108
#: pkg/proxy/server.go:976 pkg/proxy/server_options.go:108
#, fuzzy
msgid "Manual"
msgstr "マニュアル"
Expand Down Expand Up @@ -518,19 +522,19 @@ msgid "Connecting to Kubernetes %s container %s"
msgstr "Kubernetes %s コンテナー %s への接続"

#. lang.T
#: pkg/proxy/switch.go:285
#: pkg/proxy/switch.go:325
#, fuzzy
msgid "Session max time reached, disconnect"
msgstr "セッションの最大時間に達しました。"

#. lang.T
#. lang.T
#: pkg/proxy/switch.go:296 pkg/proxy/switch.go:305
#: pkg/proxy/switch.go:336 pkg/proxy/switch.go:345
msgid "Permission has expired, disconnect"
msgstr "権限の有効期限が切れました。"

#. lang.T
#: pkg/proxy/switch.go:317
#: pkg/proxy/switch.go:357
msgid "Terminated by admin %s"
msgstr "%s管理者が接続を終了"

Expand Down
Loading

0 comments on commit 67ccf14

Please sign in to comment.