Giới thiệu
Secrets OPerationS, thường gọi là sops, là một công cụ đơn giản và linh hoạt dùng để quản lý các file chứa thông tin bí mật được mã hóa. Phần mềm hỗ trợ nhiều định dạng file phổ biến như YAML, JSON, ENV, INI và cả file nhị phân (BINARY), giúp người dùng dễ dàng lưu trữ và bảo vệ dữ liệu nhạy cảm trong các dự án và môi trường phát triển.
Sops tích hợp các phương thức mã hóa hiện đại như AWS KMS, GCP KMS, Azure Key Vault, age và PGP, cho phép người dùng lựa chọn cách thức bảo mật phù hợp với hạ tầng và yêu cầu của mình.
Tính năng chính
- Chỉnh sửa và quản lý file bí mật được mã hóa an toàn.
- Hỗ trợ nhiều định dạng file: YAML, JSON, ENV, INI, và BINARY.
- Tích hợp các dịch vụ mã hóa phổ biến như AWS KMS, GCP KMS, Azure Key Vault, age, và PGP.
- Cho phép mã hóa và giải mã các phần dữ liệu nhạy cảm trong file một cách linh hoạt.
- Phần mềm mã nguồn mở, miễn phí sử dụng theo giấy phép MPL-2.0.
Ai nên dùng
Sops phù hợp với các nhà phát triển, kỹ sư DevOps và quản trị hệ thống cần quản lý và bảo vệ các thông tin bí mật trong dự án hoặc môi trường đám mây một cách an toàn và hiệu quả.
Cài đặt
- Bấm nút Tải về trên trang này để tải bộ cài gốc.
- Giải nén file tải về vì phần mềm ở dạng portable, không cần cài đặt.
- Mở terminal hoặc command line, điều hướng đến thư mục chứa file đã giải nén.
- Chạy file thực thi của sops để sử dụng công cụ.
Lưu ý
Secrets OPerationS là phần mềm mã nguồn mở, miễn phí theo giấy phép MPL-2.0. Phần mềm hoạt động trên nền tảng dòng lệnh, yêu cầu người dùng có kiến thức cơ bản về terminal để sử dụng hiệu quả.
Có gì mới trong 3.13.3
## Installation
To install `sops`, download one of the pre-built binaries provided for your platform from the artifacts attached to this release.
For instance, if you are using Linux on an AMD64 architecture:
```shell
# Download the binary
curl -LO https://github.com/getsops/sops/releases/download/v3.13.3/sops-v3.13.3.linux.amd64
# Move the binary in to your PATH
mv sops-v3.13.3.linux.amd64 /usr/local/bin/sops
# Make the binary executable
chmod +x /usr/local/bin/sops
```
### Verify checksums file signature
The checksums file provided within the artifacts attached to this release is signed using [Cosign](https://docs.sigstore.dev/cosign/overview/) with GitHub OIDC. To validate the signature of this file, run the following commands:
```shell
# Download the checksums file, certificate and signature
curl -LO https://github.com/getsops/sops/releases/download/v3.13.3/sops-v3.13.3.checksums.txt
curl -LO https://github.com/getsops/sops/releases/download/v3.13.3/sops-v3.13.3.checksums.sigstore.json
# Verify the checksums file
cosign verify-blob sops-v3.13.3.checksums.txt \
--bundle sops-v3.13.3.checksums.sigstore.json \
--certificate-identity-regexp=https://github.com/getsops \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com
```
### Verify binary integrity
To verify the integrity of the downloaded binary, you can utilize the checksums file after having validated its signature:
```shell
# Verify the binary using the checksums file
sha256sum -c sops-v3.13.3.checksums.txt --ignore-missing
```
### Verify artifact provenance
The [SLSA provenance](https://slsa.dev/provenance/v0.2) of the binaries, packages, and SBOMs can be found within the artifacts associated with this release. It is presented through an [in-toto](https://in-toto.io/) link metadata file named `sops-v3.13.3.intoto.jsonl`. To verify the provenance of an artifact, you can utilize the [`slsa-verifier`](https://github.com/slsa-framework/slsa-verifier#artifacts) tool:
```shell
# Download the metadata file
curl -LO https://github.com/getsops/sops/releases/download/v3.13.3/sops-v3.13.3.intoto.jsonl
# Verify the provenance of the artifact
slsa-verifier verify-artifact <artifact> \
--provenance-path sops-v3.13.3.intoto.jsonl \
--source-uri github.com/getsops/sops \
--source-tag v3.13.3
```
## Container Images
The `sops` binaries are also available as container images, based on Debian (slim) and Alpine Linux. The Debian-based container images include any dependencies which may be required to make use of certain key services, such as GnuPG, AWS KMS, Azure Key Vault, and Google Cloud KMS. The Alpine-based container images are smaller in size, but do not include these dependencies.
These container images are available for the following architectures: `linux/amd64` and `linux/arm64`.
### GitHub Container Registry
`ghcr.io/getsops/sops:v3.13.3`
`ghcr.io/getsops/sops:v3.13.3-alpine`
### Quay.io
`quay.io/getsops/sops:v3.13.3`
`quay.io/getsops/sops:v3.13.3-alpine`
### Verify container image signature
The container images are signed using [Cosign](https://docs.sigstore.dev/cosign/overview/) with GitHub OIDC. To validate the signature of an image, run the following command:
```shell
cosign verify ghcr.io/getsops/sops:v3.13.3 \
--certificate-identity-regexp=https://github.com/getsops \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
-o text
```
### Verify container image provenance
The container images include [SLSA provenance](https://slsa.dev/provenance/v0.2) attestations. For more information around the verification of this, please refer to the [`slsa-verifier` documentation](https://github.com/slsa-framework/slsa-verifier#containers).
## Software Bill of Materials
The Software Bill of Materials (SBOM) for each binary is accessible within the artifacts enclosed with this release. It is presented as an [SPDX](https://spdx.dev/) JSON file, formatted as `<binary>.spdx.sbom.json`.
## What's Changed
* Add ini to supported input/output type descriptions by @TheKhanj in https://github.com/getsops/sops/pull/2239
* build(deps): Bump the go group with 10 updates by @dependabot[bot] in https://github.com/getsops/sops/pull/2242
* build(deps): Bump the ci group with 6 updates by @dependabot[bot] in https://github.com/getsops/sops/pull/2241
* fix: include decrypted sequence comments in the MAC (fixes #2243) by @cbcoutinho in https://github.com/getsops/sops/pull/2245
* build(deps): Bump the go group with 14 updates by @dependabot[bot] in https://github.com/getsops/sops/pull/2251
* build(deps): Bump the ci group with 2 updates by @dependabot[bot] in https://github.com/getsops/sops/pull/2250
* build(deps): Bump the go group with 11 updates by @dependabot[bot] in https://github.com/getsops/sops/pull/2261
* build(deps): Bump the ci group with 3 updates by @dependabot[bot] in https://github.com/getsops/sops/pull/2260
* build(deps): Bump the rust group in /functional-tests with 3 updates by @dependabot[bot] in https://github.com/getsops/sops/pull/2259
* Update dependencies with 'go get -t -u ./...' by @felixfontein in https://github.com/getsops/sops/pull/2248
* Completion scripts: remove leading newline by @felixfontein in https://github.com/getsops/sops/pull/2253
* Release 3.13.3 by @felixfontein in https://github.com/getsops/sops/pull/2249
## New Contributors
* @TheKhanj made their first contribution in https://github.com/getsops/sops/pull/2239
* @cbcoutinho made their first contribution in https://github.com/getsops/sops/pull/2245
**Full Changelog**: https://github.com/getsops/sops/compare/v3.13.2...v3.13.3