专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

bloxstaking/key-vault Docker 镜像 - 轩辕镜像

key-vault
bloxstaking/key-vault
bloxstaking
KeyVault is a plugin for Hashicorp's Vault extends functionality for managing eth 2.0 BLS based keys
0 次下载
💣 CI/CD 卡在拉镜像?问题不在代码,在镜像源
镜像简介版本下载
💣 CI/CD 卡在拉镜像?问题不在代码,在镜像源

key-vault

![FOSSA Status]([***]

Latest Image Digest

Latest verified image digest hosted on Docker Hub.

bloxstaking/key-vault:v1.6.0,bloxstaking/key-vault:latest

Use this hash when you docker run the image.

sha256:2b73f3527789ef2d2556f9bf17dca6e2f731731b1d8cb6164b02d7899ef81660

How to run?

Use docker run with the latest verified image digest:

sh
ֿֿ$ docker run -d --restart unless-stopped --cap-add=IPC_LOCK --name=key_vault\ 
  -v $(pwd)/data:/data -v $(pwd)/policies:/policies -p 8200:8200\ 
  -e VAULT_ADDR='[***] -e VAULT_API_ADDR='[***]\ 
  -e VAULT_CLIENT_TIMEOUT='30s' -e UNSEAL=true bloxstaking/key-vault@sha256:2b73f3527789ef2d2556f9bf17dca6e2f731731b1d8cb6164b02d7899ef81660

How to build from source (development purposes)?

  1. Build the images and run the containers:

    sh
    $ docker-compose up -d --build
    
  2. Execute the container

    sh
    $ docker-compose exec vault bash
    
  3. Read the root token

    sh
    $ docker-compose exec -T vault cat /data/keys/vault.root.token
    

Endpoints

GET VERSION

This endpoint will get a version of key-vault.

MethodPathProduces
GET:mount-path/:network/version200 application/json
Sample Response

The example below shows output for a query path of /***/prater/version.

{
    "request_id": "b68953bf-811e-f218-a1c4-b5a7aa4122bc",
    "lease_id": "",
    "renewable": false,
    "lease_duration": 0,
    "data": {
        "version": "v1.1.1"
    },
    "wrap_info": null,
    "warnings": null,
    "auth": null
}
LIST ACCOUNTS

This endpoint will list all accounts of key-vault.

MethodPathProduces
LIST:mount-path/:network/accounts200 application/json
Sample Response

The example below shows output for a query path of /***/prater/accounts when there is 1 account.

{
    "request_id": "489790dc-b4bd-54e5-be6e-95a894ffc48c",
    "lease_id": "",
    "renewable": false,
    "lease_duration": 0,
    "data": {
        "accounts": [
            {
                "id": "9676ef06-d238-49f3-ab50-b3fe9930db0f",
                "name": "account-0",
                "validationPubKey": "8a5df36be5f89f9fe19cabadcbb17babc8c518bcd7fe0095c89f83915ea943343fa7dd3c26d8fb6096bce11fbc1ec7d3",
                "withdrawalPubKey": "887abb059075160ce2556a8bfef745898ee3a11b2b6521b09077d422c***dea277ac8afcacd5b6d729198238f8f6c"
            }
        ]
    },
    "wrap_info": null,
    "warnings": null,
    "auth": null
}
UPDATE STORAGE

This endpoint will update the storage.

MethodPathProduces
POST:mount-path/:network/storage200 application/json
Sample Response

The example below shows output for a query path of /***/prater/storage.

{
    {
        "request_id": "d53d5075-6a3b-2642-ffde-0714beb595f5",
        "lease_id": "",
        "renewable": false,
        "lease_duration": 0,
        "data": {
            "status": true
        },
        "wrap_info": null,
        "warnings": null,
        "auth": null
    }
}
READ SLASHING STORAGE

This endpoint will update the storage.

MethodPathProduces
GET:mount-path/:network/storage/slashing200 application/json
Sample Response

The example below shows output for a query path of /***/prater/storage/slashing.

{
    {
        "request_id": "d53d5075-6a3b-2642-ffde-0714beb595f5",
        "lease_id": "",
        "renewable": false,
        "lease_duration": 0,
        "data": {
            "<public_key>": "<hex_encoded_slashing_storage>"
        },
        "wrap_info": null,
        "warnings": null,
        "auth": null
    }
}
SIGN ATTESTATION

This endpoint will sign attestation for specific account at a path.

MethodPathProduces
POST:mount-path/:network/accounts/sign200 application/json
Parameters
  • public_key (string: <required>) - Specifies the public key of the account to sign.
  • domain (string: <required>) - Specifies the domain.
  • slot (int: <required>) - Specifies the slot.
  • committeeIndex (int: <required>) - Specifies the committeeIndex.
  • beaconBlockRoot (string: <required>) - Specifies the beaconBlockRoot.
  • sourceEpoch (int: <required>) - Specifies the sourceEpoch.
  • sourceRoot (string: <required>) - Specifies the sourceRoot.
  • targetEpoch (int: <required>) - Specifies the targetEpoch.
  • targetRoot (string: <required>) - Specifies the targetRoot.
Sample Response

The example below shows output for the successful sign of /***/accounts/sign.

{
    "request_id": "b767dcca-5b10-4a52-1d9a-0a9b81b378ae",
    "lease_id": "",
    "renewable": false,
    "lease_duration": 0,
    "data": {
        "signature": "kEEOMxNkouz7EOSULfrG6hXzZbIOvRCVVK+lfBofj3U49/PHm7YHji8ac9Gf9vgEFVEmbPp+lhO3OpAElt3yaBajTKaJBWocgXuv64Ojq44tfxLJo6jrzMU5yoP78dYW"
    },
    "wrap_info": null,
    "warnings": null,
    "auth": null
}

Access Policies

The plugin's endpoint paths are designed such that admin-level access policies vs. signer-level access policies can be easily separated.

Sample Signer Level Policy:

Use the following policy to assign to a signer level access token, with the abilities to list accounts and sign transactions.

# Ability to list prater wallet accounts ("list")
path "***/prater/accounts" {
  capabilities = ["list"]
}

# Ability to list mainnet wallet accounts ("list")
path "***/mainnet/accounts" {
  capabilities = ["list"]
}

# Ability to sign data ("create")
path "***/+/accounts/sign" {
  capabilities = ["create"]
}

# Ability to get version ("read")
path "***/+/version" {
  capabilities = ["read"]
}
Sample Admin Level Policy:

Use the following policy to assign to a admin level access token, with the full ability to update storage, list accounts and sign transactions.

# Ability to list prater wallet accounts ("list")
path "***/prater/accounts" {
  capabilities = ["list"]
}

# Ability to list mainnet wallet accounts ("list")
path "***/mainnet/accounts" {
  capabilities = ["list"]
}

# Ability to sign data ("create")
path "***/+/accounts/sign" {
  capabilities = ["create"]
}

# Ability to get version ("read")
path "***/+/version" {
  capabilities = ["read"]
}

# Ability to update storage ("create")
path "***/+/storage" {
  capabilities = ["create"]
}

# Ability to read slashing storage ("read")
path "***/+/storage/slashing" {
  capabilities = ["read"]
}

How to use policies?

  1. Create a new policy named admin:

    sh
    $ vault policy write admin policies/admin-policy.hcl
    
  2. Create a token attached to admin policy:

    sh
    $ vault token create -policy="admin"
    
  3. Create a new policy named signer:

    sh
    $ vault policy write signer policies/signer-policy.hcl
    
  4. Create a token attached to signer policy:

    sh
    $ vault token create -policy="signer"
    

About testing

There are 2 types of tests in the project: end-to-end and unit ones. In order to run all tests including e2e ones you will need to do the following command:

bash
$ make full-test

New e2e tests should be placed in ./e2e/tests directory and implement E2E interface. Use the current format to add new tests.

Release Version

versions are published to dockerhub based on tags. before publishing a tag update docker compose image to the to be pushed tag

Multinetworks

The plugin supports multiple *** networks. All available networks are defined in ./config/vault-plugin.sh. New networks could be defined by the following steps:

  1. Enable secrets for a new network in ./config/vault-plugin.sh. Example

    bash
    $ vault secrets enable \
        -path=***/prater \
        -description="Eth Signing Wallet - Prater Test Network" \
        -plugin-name=ethsign plugin > /dev/null 2>  &1
    
  2. Update policies ./policies/admin-policy.hcl and ./policies/signer-policy.hcl by adding a definition with a new network in the path.

查看更多 key-vault 相关镜像 →
vault logo
vault
Docker 官方镜像
Vault是一款通过统一接口安全访问机密的工具,提供严格的访问控制和详细的审计日志。
1168500M+ pulls
上次更新:1 年前
hashicorp/vault logo
hashicorp/vault
hashicorp
HashiCorp Vault官方Docker镜像,用于在容器环境中安全存储、访问和管理机密信息,提供官方认证的部署方案。
209100M+ pulls
上次更新:19 天前
hashicorp/vault-k8s logo
hashicorp/vault-k8s
hashicorp
提供Vault与Kubernetes之间的一流集成,支持两者高效安全协作的工具。
2050M+ pulls
上次更新:1 个月前
vaultwarden/web-vault logo
vaultwarden/web-vault
vaultwarden
用于vaultwarden Docker镜像的Web保管库构建,支持其Web界面功能。
3150K+ pulls
上次更新:5 天前
bitnamicharts/vault logo
bitnamicharts/vault
bitnamicharts
Bitnami提供的HashiCorp Vault Helm chart,用于在Kubernetes集群上部署Vault——一款通过统一界面安全管理和访问密钥的工具,支持安全存储、动态密钥、数据加密及撤销功能。
1M+ pulls
上次更新:5 个月前
hashicorp/vault-csi-provider logo
hashicorp/vault-csi-provider
hashicorp
Vault CSI提供商允许Kubernetes用户检索并挂载Vault密钥到Kubernetes Pod。
410M+ pulls
上次更新:1 个月前

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
bloxstaking/key-vault
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.