1
0
Fork
You've already forked openbao
0
forked from openbao/openbao
OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secrets, certificates, and keys.
  • Go 68.2%
  • JavaScript 13%
  • MDX 12.7%
  • Handlebars 3.9%
  • SCSS 0.7%
  • Other 1.4%
dependabot[bot] 3b5f2b0f1d
Bump ember-test-selectors from 6.0.0 to 7.1.0 in /ui ( #1239 )
Bumps [ember-test-selectors](https://github.com/mainmatter/ember-test-selectors) from 6.0.0 to 7.1.0.
- [Release notes](https://github.com/mainmatter/ember-test-selectors/releases)
- [Changelog](https://github.com/mainmatter/ember-test-selectors/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mainmatter/ember-test-selectors/commits)
---
updated-dependencies:
- dependency-name: ember-test-selectors
 dependency-version: 7.1.0
 dependency-type: direct:development
 update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025年04月21日 13:24:51 -04:00
.github Bump actions/setup-node from 4.3.0 to 4.4.0 ( #1242 ) 2025年04月21日 08:55:34 -04:00
.hooks backport of commit a9778be3f2 ( #21756 ) 2023年07月11日 14:44:40 +00:00
.release Do not set LimitNOFILE ( #1179 ) 2025年04月10日 13:27:22 -04:00
api Bump mvdan.cc/gofumpt from 0.7.0 to 0.8.0 ( #1216 ) 2025年04月17日 22:19:54 -04:00
audit Modify audit logging to handle nested structs without panicing ( #887 ) 2025年02月08日 10:39:57 -05:00
builtin (secrets/pki): add not_before_bound and not_after_bound ( #1172 ) 2025年04月21日 11:38:12 -04:00
changelog (secrets/pki): add not_before_bound and not_after_bound ( #1172 ) 2025年04月21日 11:38:12 -04:00
command config.go: fix config file filename comment (de-vault) ( #1141 ) 2025年03月20日 18:22:35 -05:00
dependencies/2-25-21 Minimal changes to solve Dependency CVEs [VAULT-871] ( #11015 ) 2021年03月01日 14:35:40 -08:00
helper Revive Valkey plugin ( #1019 ) 2025年02月21日 11:27:05 -05:00
http Auto-TLS listeners via ACME ( #857 ) 2025年02月12日 08:38:14 -05:00
internalshared Add support for automatic unsealing of OpenBao using a KMIP protocol ( #1144 ) 2025年04月03日 18:39:58 -04:00
physical Add API and CLI commands to promote/demote nodes in the Raft cluster ( #996 ) 2025年02月20日 10:36:23 +01:00
plugins/database Revive Valkey plugin ( #1019 ) 2025年02月21日 11:27:05 -05:00
scripts Set BAO_CONFIG_DIR to a default but let it be overridable. ( #994 ) 2025年02月12日 14:43:04 -06:00
sdk (secrets/pki): add not_before_bound and not_after_bound ( #1172 ) 2025年04月21日 11:38:12 -04:00
serviceregistration Go 1.24 fixes ( #895 ) 2025年02月08日 09:21:21 -05:00
terraform remove terraform/aws; replace with readme ( #9686 ) 2020年08月07日 18:40:48 +01:00
tools Use semgrep to enforce callbacks deprecation ( #812 ) 2024年12月21日 15:27:27 -05:00
ui Bump ember-test-selectors from 6.0.0 to 7.1.0 in /ui ( #1239 ) 2025年04月21日 13:24:51 -04:00
vault Fix vault/diagnose test failure ( #1221 ) 2025年04月17日 09:50:09 -04:00
version set bao binary version info with Goreleaser ( #401 ) 2024年07月14日 14:21:11 +02:00
website (secrets/pki): add not_before_bound and not_after_bound ( #1172 ) 2025年04月21日 11:38:12 -04:00
.copywrite.hcl VAULT-13614 Support SCRAM-SHA-256 encrypted passwords for PostgreSQL ( #19616 ) 2023年03月21日 12:12:53 -07:00
.gitattributes Packagespec v0.1.2/master ( #9995 ) 2020年09月28日 13:53:39 +01:00
.gitignore Add GOOS matrix to release workflow ( #411 ) 2024年07月17日 17:31:43 -04:00
.go-version build: update Go version and dependencies ( #1209 ) 2025年04月10日 10:45:37 -04:00
.yamllint ci/packagespec ( #9653 ) 2020年08月11日 10:00:59 +01:00
CHANGELOG.md Add v2.2.0 changelog to release notes ( #1085 ) 2025年03月05日 08:19:44 -05:00
CNAME Create CNAME 2024年04月06日 16:45:58 -04:00
CODEOWNERS Fix name of org-level maintainers team ( #1237 ) 2025年04月19日 21:39:14 +02:00
CONTRIBUTING.md Add Dave to DevWG voting members ( #1187 ) 2025年04月05日 22:05:37 +02:00
Dockerfile Bump alpine from 3.20 to 3.21 ( #831 ) 2024年12月23日 17:16:12 -05:00
go.mod Bump github.com/golangci/revgrep ( #1240 ) 2025年04月21日 08:58:07 -04:00
go.sum Bump github.com/golangci/revgrep ( #1240 ) 2025年04月21日 08:58:07 -04:00
goreleaser.hsm.yaml Simplify Goreleaser templates ( #1039 ) 2025年03月03日 11:14:06 +01:00
goreleaser.linux.yaml Simplify Goreleaser templates ( #1039 ) 2025年03月03日 11:14:06 +01:00
goreleaser.other.yaml Simplify Goreleaser templates ( #1039 ) 2025年03月03日 11:14:06 +01:00
GOVERNANCE.md Officially add TSC membership process ( #1101 ) 2025年03月08日 16:48:31 -06:00
LICENSE [COMPLIANCE] Update MPL 2.0 LICENSE ( #17517 ) 2022年10月13日 12:25:50 -04:00
main.go Remove patch for SHA-1 certificates 2024年02月09日 08:29:15 -05:00
main_test.go adding copyright header ( #19555 ) 2023年03月15日 09:00:52 -07:00
MAINTAINERS.md Add new moderators: voigt, Gabrielopesantos, karras ( #1171 ) 2025年03月30日 16:14:15 -05:00
make.bat feat: rename Vault to OpenBao 2024年02月07日 08:56:13 -05:00
Makefile website: Fix typos in website content ( #1108 ) 2025年03月10日 23:32:29 +01:00
README.md Add mailto to security email, fix others ( #610 ) 2024年10月10日 17:04:41 -04:00
scan.hcl adding copyright header ( #19555 ) 2023年03月15日 09:00:52 -07:00

OpenBao


Please note: We take OpenBao's security and our users' trust very seriously. If you believe you have found a security issue in OpenBao, please responsibly disclose by contacting us at openbao-security@lists.lfedge.org.


OpenBao Mascot

OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secrets, certificates, and keys. The OpenBao community intends to provide this software under an OSI-approved open-source license, led by a community run under open governance principles.

A modern system requires access to a multitude of secrets: database credentials, API keys for external services, credentials for service-oriented architecture communication, etc. Understanding who is accessing what secrets is already very difficult and platform-specific. Adding on key rolling, secure storage, and detailed audit logs is almost impossible without a custom solution. This is where OpenBao steps in.

The key features of OpenBao are:

  • Secure Secret Storage: Arbitrary key/value secrets can be stored in OpenBao. OpenBao encrypts these secrets prior to writing them to persistent storage, so gaining access to the raw storage isn't enough to access your secrets. OpenBao can write to disk, Consul, and more.

  • Dynamic Secrets: OpenBao can generate secrets on-demand for some systems, such as AWS or SQL databases. For example, when an application needs to access an S3 bucket, it asks OpenBao for credentials, and OpenBao will generate an AWS keypair with valid permissions on demand. After creating these dynamic secrets, OpenBao will also automatically revoke them after the lease is up.

  • Data Encryption: OpenBao can encrypt and decrypt data without storing it. This allows security teams to define encryption parameters and developers to store encrypted data in a location such as a SQL database without having to design their own encryption methods.

  • Leasing and Renewal: All secrets in OpenBao have a lease associated with them. At the end of the lease, OpenBao will automatically revoke that secret. Clients are able to renew leases via built-in renew APIs.

  • Revocation: OpenBao has built-in support for secret revocation. OpenBao can revoke not only single secrets, but a tree of secrets, for example, all secrets read by a specific user, or all secrets of a particular type. Revocation assists in key rolling as well as locking down systems in the case of an intrusion.

Documentation, Getting Started, and Certification Exams

Developing OpenBao

If you wish to work on OpenBao itself or any of its built-in systems, you'll first need Go installed on your machine.

For local dev first make sure Go is properly installed, including setting up a GOPATH. Ensure that $GOPATH/bin is in your path as some distributions bundle the old version of build tools. Next, clone this repository. OpenBao uses Go Modules, so it is recommended that you clone the repository outside of the GOPATH. You can then download any required build tools by bootstrapping your environment:

$ make bootstrap
...

To compile a development version of OpenBao, run make or make dev. This will put the OpenBao binary in the bin and $GOPATH/bin folders:

$ make dev
...
$ bin/bao
...

To compile a development version of OpenBao with the UI, run make static-dist dev-ui. This will put the OpenBao binary in the bin and $GOPATH/bin folders:

$ make static-dist dev-ui
...
$ bin/bao
...

To run tests, type make test. Note: this requires Docker to be installed. If this exits with exit status 0, then everything is working!

$ make test
...

If you're developing a specific package, you can run tests for just that package by specifying the TEST variable. For example below, only vault package tests will be run.

$ make test TEST=./vault
...

Importing OpenBao

This repository publishes two libraries that may be imported by other projects: github.com/openbao/openbao/api/v2 and github.com/openbao/openbao/sdk/v2.

Note that this repository also contains OpenBao (the product), and as with most Go projects, OpenBao uses Go modules to manage its dependencies. The mechanism to do that is the go.mod file. As it happens, the presence of that file also makes it theoretically possible to import OpenBao as a dependency into other projects. Some other projects have made a practice of doing so in order to take advantage of testing tooling that was developed for testing OpenBao itself. This is not, and has never been, a supported way to use the OpenBao project. We aren't likely to fix bugs relating to failure to import github.com/openbao/openbao into your project.

See also the section "Docker-based tests" below.

Acceptance Tests

OpenBao has comprehensive acceptance tests covering most of the features of the secret and auth methods.

If you're working on a feature of a secret or auth method and want to verify it is functioning (and also hasn't broken anything else), we recommend running the acceptance tests.

Warning: The acceptance tests create/destroy/modify real resources, which may incur real costs in some cases. In the presence of a bug, it is technically possible that broken backends could leave dangling data behind. Therefore, please run the acceptance tests at your own risk. At the very least, we recommend running them in their own private account for whatever backend you're testing.

To run the acceptance tests, invoke make testacc:

$ make testacc TEST=./builtin/logical/consul
...

The TEST variable is required, and you should specify the folder where the backend is. The TESTARGS variable is recommended to filter down to a specific resource to test, since testing all of them at once can sometimes take a very long time.

Acceptance tests typically require other environment variables to be set for things such as access keys. The test itself should error early and tell you what to set, so it is not documented here.

Docker-based Tests

We have created an experimental new testing mechanism inspired by NewTestCluster. An example of how to use it:

import("testing""github.com/openbao/openbao/sdk/v2/helper/testcluster/docker")funcTest_Something_With_Docker(t*testing.T){opts:=&docker.DockerClusterOptions{ImageRepo:"openbao/openbao",ImageTag:"latest",}cluster:=docker.NewTestDockerCluster(t,opts)defercluster.Cleanup()client:=cluster.Nodes()[0].APIClient()_,err:=client.Logical().Read("sys/storage/raft/configuration")iferr!=nil{t.Fatal(err)}}

Here is a more realistic example of how we use it in practice. DefaultOptions uses hashicorp/vault:latest as the repo and tag, but it also looks at the environment variable BAO_BINARY. If populated, it will copy the local file referenced by BAO_BINARY into the container. This is useful when testing local changes.

Optionally you can set COMMIT_SHA, which will be appended to the image name we build as a debugging convenience.

funcTest_Custom_Build_With_Docker(t*testing.T){opts:=docker.DefaultOptions(t)cluster:=docker.NewTestDockerCluster(t,opts)defercluster.Cleanup()}

Finally, here's an example of running an existing OSS docker test with a custom binary:

$ GOOS=linux make dev
$ VAULT_BINARY=$(pwd)/bin/bao go test -run 'TestRaft_Configuration_Docker' ./vault/external_tests/raft/raft_binary
ok github.com/openbao/openbao/vault/external_tests/raft/raft_binary 20.960s