小编Ori*_*Eye的帖子

脚本Kerberos Ktutil来制作键盘

我想创建一个脚本,使用ktutil生成一个keytab.运行脚本时,我想使用[user] $ script.sh PASSWORD

#script.sh
echo "addent -password -p PRINCIPAL -k 1 -e aes256-cts-hmac-sha1-96" | ktutil
Run Code Online (Sandbox Code Playgroud)

Ktutil比需要密码,这里我想使用上面的PASSWORD参数.我如何通过密码辩论?

passwords bash kerberos pipe keytab

10
推荐指数
1
解决办法
8937
查看次数

Azure 在哪里存储部署令牌,例如 ${{ Secrets.GITHUB_TOKEN }}?

我有一个 Github Action 将我的静态 Web 应用程序部署到 Azure。

在构建和部署步骤中失败并显示 deployment_token was not provided.

下面是我的工作流程 yml 文件。我已经从我的完整 Azure 静态名称发布的文件中更改了 Secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_scrubbed 。

我创建了一个名为:Azure-new-host 的 Github 环境,其中包含一个秘密 AZURE_STATIC_WEB_APPS_API_TOKEN_scrubbed 以及来自 Azure 的部署令牌。

我查看了 Github 环境 secerts 和 Azure KeyVault


on:
  push:
    branches:
      - main
  pull_request:
    types: [opened, synchronize, reopened, closed]
    branches:
      - main

jobs:
  build_and_deploy_job:
    if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
    runs-on: ubuntu-latest
    name: Build and Deploy Job
    environment:
      name:Azure-new-host
      url:https://github.com
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: true
      - …
Run Code Online (Sandbox Code Playgroud)

github environment-variables github-actions azure-static-web-app

6
推荐指数
0
解决办法
1185
查看次数

Docker Busybox 容器添加组和用户

我的 docker 容器中需要用户。我的构建来自缺少 groupadd 的 busybox 映像,我尝试使用 apt-get 添加它,但也缺少它。我需要向我的 Dockerfile 添加什么才能获得 groupadd?

到目前为止我有

FROM busybox
RUN apt-get install bash
RUN groupadd -r postgres && useradd -r -g postgres postgres
CMD /bin/sh
Run Code Online (Sandbox Code Playgroud)

linux containers busybox docker

4
推荐指数
1
解决办法
3285
查看次数

如何使用include对aw s3复制语句进行AND OR操作

我正在从非顺序的特定日期在s3存储桶文件之间复制。在示例中,我要复制23,因此我想复制15、19和23。

aws s3 --region eu-central-1 --profile LOCALPROFILE cp s3:// SRC s3:// DEST --recursive --exclude“ *” --include“ 2016-01-23

该来源提到使用序列http://docs.aws.amazon.com/cli/latest/reference/s3/ 来包含。

command-line-interface amazon-s3

1
推荐指数
1
解决办法
865
查看次数