Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing read unlock calls in transit backend code #12651

Closed
wants to merge 232 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
94742ee
rotate algolia api key (#11703)
jescalan Jun 4, 2021
4239ea8
oss part of control groups upgrade (#11772)
HridoyRoy Jun 7, 2021
b69998d
errwrap.Wrapf() mop-up (#11779)
alrs Jun 7, 2021
92b8ba1
Fix SpotSkipped on openbsd/arm (#11781)
sgmiller Jun 7, 2021
d702ee9
Add Advice and Advise functions for adding an advice section to any s…
sgmiller Jun 7, 2021
6faeccc
UI/license page with autoload (#11778)
hashishaw Jun 7, 2021
1aef875
Docs: clarify purposes in KMS for aws (#11782)
jasonodonnell Jun 7, 2021
ecd458d
Update secret backend partial to components (#11768)
arnav28 Jun 7, 2021
1353426
replace last two partials (#11765)
Monkeychip Jun 7, 2021
9f38504
Pull out license commands, and make the OSS changes needed for the li…
ncabatoff Jun 7, 2021
1beefcf
moved client content from cloud to vault (#11776)
taoism4504 Jun 7, 2021
5da5d9a
Third time trying to get the os_openbsd_arm.go right. (#11786)
sgmiller Jun 7, 2021
cf5bfe9
Updates the JWT/OIDC auth plugin to v0.9.4 (#11784)
austingebauer Jun 7, 2021
ba3f54f
chore: updates alert banner data (#11741)
kendallstrautman Jun 8, 2021
acde7a6
Use the perfStandby field instead of the method because we don't want…
ncabatoff Jun 8, 2021
45cbe25
Add note about JSON encoding to password policies docs (#11754)
sharabinth Jun 8, 2021
3baf0fd
Password policies: Fix link from API docs to password policy syntax (…
sharabinth Jun 8, 2021
9fce74f
UI/update license serializer (#11794)
hashishaw Jun 8, 2021
d3b188e
Prep main branch before cutting release branch (#11797)
vishalnayak Jun 9, 2021
6b3f3df
Udate to Go 1.16.5 (#11802)
vishalnayak Jun 9, 2021
29ffc40
build: add keepalive output to UI build (#11800)
samsalisbury Jun 9, 2021
a92779a
website: update alert banner (#11801)
mwickett Jun 9, 2021
60cd3d3
Add some paths that use nonstandard auth. (#11804)
ncabatoff Jun 9, 2021
1b2f572
InfluxDB - Add username customization (#11796)
MilenaHC Jun 9, 2021
7a9c948
Acquire a per-lock lease to make renew and revoke atomic wrt each oth…
Jun 10, 2021
868e6e2
fix typo in vault operator init cmd (#11792)
shankernaik Jun 10, 2021
c6a7d1b
website: fix incorrect content (#11814)
mwickett Jun 10, 2021
13e61a8
fix irrevocable leases API deadlock on m.coreStateLock (#11815)
swayne275 Jun 10, 2021
8377459
Only test UI on master, release, merge, and UI branches (#11813)
ncabatoff Jun 10, 2021
3ee219e
Diagnose resource creation checks (#11627)
HridoyRoy Jun 10, 2021
6942098
plugins/cassandra: add tls_server_name (#11820)
jasonodonnell Jun 10, 2021
45c8169
UI/fix license banner (#11824)
hashishaw Jun 10, 2021
e1730a1
Omit wrapping tokens and control groups from client counts (#11826)
briankassouf Jun 10, 2021
a46b5f9
database/cassandra: Docs: Add known issue warning to `pem_bundle` fie…
pcman312 Jun 10, 2021
dce9827
db/cassandra: Adding changelog and documentation (#11822)
jasonodonnell Jun 10, 2021
e2bb4d0
Remove vendor/ (RELENG-355) (#11544)
samsalisbury Jun 11, 2021
8c848ad
Makefile: don't go get -u for plugin upgrades (#11832)
samsalisbury Jun 11, 2021
ee91907
fix make ember-dist-dev (#11833)
Mongey Jun 11, 2021
f1b3d0a
vault: token store dropped test errors (#11799)
alrs Jun 11, 2021
3a333b9
Include note about `ManageOwnAccessKeys` stanza (#11734)
ps-jay Jun 11, 2021
38b6271
OSS parts of sighup license reload test (#11816)
raskchanky Jun 11, 2021
2168d91
sts is PUT/POST request (#11681)
pjaudiomv Jun 11, 2021
7679223
Reorganize request handling code so that we don't touch storage until…
ncabatoff Jun 11, 2021
6cc8b0e
Use the `deadlock` tag for non-race tests, to try to catch deadlocks …
ncabatoff Jun 11, 2021
43b09f2
physical/raft: Add a function that gets the offline, stale configurat…
briankassouf Jun 11, 2021
26405d7
dep: update consul-template to v0.26.0 (#11838)
calvn Jun 11, 2021
2995aa5
mod: update vault-plugin-secrets-ad@v0.9.1 (#11837)
jasonodonnell Jun 11, 2021
77f9ff9
Docs: Add Mittwald Vault Libraries (#9402)
ins0 Jun 11, 2021
eb138b9
docs: add permissions required for cassandra (#11844)
jasonodonnell Jun 11, 2021
3a15cd7
api/client: allow configurable values for RetryWaitMin and RetryWaitM…
mahalrs Jun 11, 2021
c34fe0b
Updated transit key action to components (#11807)
arnav28 Jun 11, 2021
f8d255e
fix(website): update node version to latest LTS (#11825)
Jun 11, 2021
f2723af
Support tls-skip-verify for output-curl-string (#11713)
riptl Jun 14, 2021
f24eb8f
login instructions not correct (#11698)
moayadi Jun 14, 2021
c5a1e06
Add more detailed documentation on setting issuer for CSI provider (#…
tomhjp Jun 14, 2021
e1e1cce
docs: add troubleshooting sub-section on plugins (#11858)
calvn Jun 14, 2021
2fa8e19
Displays Auth Method description on Vault UI login page (#11795)
hellobontempo Jun 14, 2021
00e4872
removes space on overview page with empty state (#11787)
hellobontempo Jun 14, 2021
438e9cb
changelog++
mladlow Jun 14, 2021
a036b3a
Implement ember-cp-validations on KV secret engine (#11785)
Monkeychip Jun 15, 2021
cea68aa
Add expiration warning to certificate checking for diagnose [VAULT-10…
HridoyRoy Jun 15, 2021
77f1c51
Remove a broken link (#11868)
yhyakuna Jun 15, 2021
480c096
Remove oss nightly cachebuilder. (#11866)
ncabatoff Jun 15, 2021
ec0f965
Diagnose TLS Cert Expiry Warning Check: change 1 week expiry to 1 mon…
HridoyRoy Jun 15, 2021
07236ce
chore: add local vault server wrappers in yarn and document in readm…
Jun 16, 2021
53b17da
vault: fix dropped identity store test errors (#11867)
alrs Jun 16, 2021
7144c2c
Make latency injector duration atomic. This is a prerequisite for a …
ncabatoff Jun 16, 2021
7c90453
Added new folder and files for Vault License FAQs (#11809)
taoism4504 Jun 16, 2021
653ff12
Update changelog for 1.8.0-rc1 and 1.7.3 (#11876)
Jun 16, 2021
74ea576
Update website latest version (#11880)
Jun 16, 2021
13629ca
Fix error log typo for failing to decrypt keys (#11873)
kinghrothgar Jun 17, 2021
afc0478
Diagnose checks for raft quorum status and file backend permissions (…
HridoyRoy Jun 17, 2021
1c31d5a
Wire configuration checks into diagnose and fix resulting bugs. (#11854)
sgmiller Jun 17, 2021
61190bb
docs: vault-helm license support for enterprise (#11848)
tvoran Jun 17, 2021
d62b4e7
Diagnose: Skip test-access-storage on raft storage (#11889)
briankassouf Jun 17, 2021
ed9a06a
docs: update for vault-helm v0.13.0 (#11890)
tvoran Jun 17, 2021
c2584f8
UI/fix safari oidc login (#11884)
hashishaw Jun 17, 2021
4e0fa83
Updated 'plus' > 'pro' (#11892)
yhyakuna Jun 17, 2021
abf1dd7
Adding github action to check for changelog file (#11894)
mladlow Jun 18, 2021
ec91c24
Docs for license autoloading. (#11886)
ncabatoff Jun 18, 2021
d341378
Rename some references from master to main (#11897)
Jun 18, 2021
733f514
Clarify upgrade steps and shutdown behavior (#11881)
mikegreen Jun 18, 2021
0d491c6
add changelog to influxdb (#11896)
MilenaHC Jun 18, 2021
72c18c6
Tls check client certs [VAULT-2117] (#11860)
hghaf099 Jun 18, 2021
5b80764
feat(website): A11y updates (#11869)
kendallstrautman Jun 21, 2021
43ccb63
Cassandra: Refactor PEM parsing logic (#11861)
pcman312 Jun 21, 2021
625bf46
Add new boltdb options (#11895)
raskchanky Jun 21, 2021
f42070a
approle: convert Callbacks to Operations (#11893)
fairclothjm Jun 21, 2021
053a7f2
raft: Set BatchApplyCh for more consistent batch sizes (#11907)
briankassouf Jun 21, 2021
2ca28fb
Updates license state copy and link (#11900)
hellobontempo Jun 21, 2021
523a9c9
agent: restart template runner on retry for unlimited retries (#11775)
calvn Jun 21, 2021
8ed98f4
UI/cp validations kv duplicate path (#11878)
Monkeychip Jun 22, 2021
914654f
Fixes #11914. (#11915)
ncabatoff Jun 22, 2021
3de71b2
remove prints (#11918)
HridoyRoy Jun 22, 2021
7c938d0
Update contributing guidelines (#11917)
vishalnayak Jun 22, 2021
99ea0fb
Document vault.core.expiration_time_epoch metric. (#11919)
ncabatoff Jun 22, 2021
de4295b
RabbitMQ - Add username customization (#11899)
MilenaHC Jun 22, 2021
1653081
Checking Validity of all Certs in the chain [VAULT-2114] (#11883)
hghaf099 Jun 22, 2021
a557276
website: upgrade code block (#11903)
zchsh Jun 22, 2021
834adbf
docs: corrects json and issuer for identity tokens (#11924)
austingebauer Jun 23, 2021
649dc70
website: bump use-cases to latest (#11930)
zchsh Jun 23, 2021
8096e7d
Remove fragile link to docs from code. (#11928)
ncabatoff Jun 23, 2021
a6d73e3
Fix diagnose panic when configuration file does not exist (#11932)
hghaf099 Jun 23, 2021
7b437de
update content param for improved attribution (#11929)
mwickett Jun 24, 2021
25346e8
Diagnose Storage Panic Bugfixes (#11923)
HridoyRoy Jun 24, 2021
2acf487
Fix for Issue 11863 - Panic when creating/updating approle role with …
marcboudreau Jun 24, 2021
160c409
Mongo doesnt allow periods in usernames (#11872)
mr-miles Jun 24, 2021
bbef373
TLS Verification Bugfixes (#11910)
HridoyRoy Jun 24, 2021
22d8470
agent/template: add static_secret_render_interval configurable (#11934)
jasonodonnell Jun 24, 2021
41fa51a
diagnose: Add seal transit tls check (#11922)
hghaf099 Jun 24, 2021
992e45f
chore: upgrade react-head and deps (#11938)
kendallstrautman Jun 25, 2021
93b3e28
docs: vault-helm add license update steps (#11911)
tvoran Jun 25, 2021
558a953
ci: cache go modules (#11935)
samsalisbury Jun 25, 2021
9fbd002
plugins/ad: Add rotate-role endpoint (#11942)
jasonodonnell Jun 25, 2021
ccddbb6
Vault-1983: Use fairsharing to distribute workers between queues (#11…
swayne275 Jun 25, 2021
54d68b5
oss part of license diagnose (#11939)
HridoyRoy Jun 25, 2021
e49f1f0
Adding changelog for #11502 (#11944)
tvoran Jun 25, 2021
ed33ed1
ci: update go_test to match one from ent (#11951)
samsalisbury Jun 28, 2021
b9899c5
Require special privileges to list irrevocable leases (#11888)
swayne275 Jun 28, 2021
cb64be0
fix dropped errors in external_tests (#11947)
alrs Jun 29, 2021
2a478be
Update ElasticSearch DB plugin to v0.8.0 (#11957)
MilenaHC Jun 29, 2021
60aa80d
docs: AWS KMS updates for key management secrets engine (#11958)
austingebauer Jun 29, 2021
8acecaf
Add overlooked 1.7 agent cache eventual consistency options. (#11964)
ncabatoff Jun 29, 2021
92d2d69
update oss files with changes from ent PR #1928 (#11965)
swayne275 Jun 29, 2021
c162a86
remove trailing / on leases API endpoint (#11959)
swayne275 Jun 30, 2021
15667c5
Augment lease revocation metrics (#11954)
pmmukh Jun 30, 2021
95e3562
Add link to newish learn upgrade guide (#11748)
mikegreen Jul 1, 2021
de13b64
[ldap] auth method fix request_timeout (#11975)
fairclothjm Jul 1, 2021
e38d622
fix vault version string injection (#11981)
samsalisbury Jul 5, 2021
adc55cc
builtin/credential/approle: fix dropped test errors (#11990)
alrs Jul 5, 2021
dd39e01
Update mongodb atlas plugin version (#11956)
fairclothjm Jul 6, 2021
7e2d678
MongoDB Atlas: Add username customization docs (#11943)
fairclothjm Jul 6, 2021
dff9456
`vault delete` should allow the same output options as `vault write`,…
ncabatoff Jul 6, 2021
ed57be8
docs: fix link rendering for Oracle (#11994)
jasonodonnell Jul 6, 2021
a99a48f
Update SnowflakeDB plugin to v0.2.0 (#11997)
MilenaHC Jul 6, 2021
d2d2458
Vault-2713: Retry Irrevocable Lease Revocation Periodically (#11977)
swayne275 Jul 6, 2021
3949f29
[VAULT-1981] Add OSS changes (#11999)
pmmukh Jul 6, 2021
134f7bf
Return a more meaningful error when trying to use a partially-replica…
ncabatoff Jul 7, 2021
23d7c6f
docs: add SSL connection example to oracle (#12006)
jasonodonnell Jul 7, 2021
d01ae8b
Reverting fix on KV 2 for duplicate paths (#12008)
Monkeychip Jul 7, 2021
46428ad
updates transit icons to keys (#12000)
hellobontempo Jul 7, 2021
0e49fc9
Diagnose warns if HTTPS is not used for ha-storage-tls-consul [VAULT-…
hghaf099 Jul 7, 2021
b282ca8
Update vault-plugin-secrets-kv to 0.9.0 (#12007)
raskchanky Jul 7, 2021
6b8e4dc
[VAULT-708] Zero out request counter on preSeal (#11970)
pmmukh Jul 7, 2021
69f7ac8
UI KV validation fix (#12010)
Monkeychip Jul 7, 2021
b41665b
Adds transform secrets engine to feature (#12003)
hellobontempo Jul 7, 2021
30ce696
builtin/logical/pki: fix dropped test errors (#12013)
alrs Jul 8, 2021
61a62e3
Typo fix: period rotation -> periodic rotation (#12011)
dhermes Jul 8, 2021
dd60283
Truncate Secret Engine Description Text (#11995)
hellobontempo Jul 8, 2021
e507785
Redshift - Add username customization (#12016)
MilenaHC Jul 8, 2021
31775b6
OSS parts of Autopilot in DR secondaries (#12014)
vishalnayak Jul 8, 2021
9bf3b4b
secrets/openldap: add schema config to rotate-root (#12019)
jasonodonnell Jul 8, 2021
b78f8f0
secrets/gcp: update to v0.10.1 for static accounts (#12023)
austingebauer Jul 8, 2021
8182d1d
[VAULT-1836] Support kv-v1 generic mounts for vault.kv.secret.count m…
ccapurso Jul 9, 2021
5e9d022
Make the `list` and `kv list` commands work with wrapping, e.g. for c…
ncabatoff Jul 9, 2021
91c323d
changed name from faqs to faq (#12033)
taoism4504 Jul 9, 2021
43af97e
VAULT-2809: Tweak creation of vault.db file (#12034)
ncabatoff Jul 9, 2021
a9107dc
Exit test process if vault fails to initialize (#11998)
hashishaw Jul 9, 2021
c7b8291
[VAULT-2776] Add prefix_filter option to Vault (#12025)
pmmukh Jul 9, 2021
3af99ec
Update plugin dependencies for 1.8 (#12036)
Jul 9, 2021
f796bc9
cockroachdb: Fix either incorrect or outdated info (#11512)
thorfour Jul 9, 2021
46afacb
Diagnose Language Pass (#11909)
HridoyRoy Jul 11, 2021
c286fcc
Add replication example to upgrade docs (#12040)
mladlow Jul 12, 2021
e11eb36
[VAULT-2825] Fix erroneous 500 resp for field validation errors (#12042)
ccapurso Jul 12, 2021
f9e54e9
UI/control group db cred (#12024)
hashishaw Jul 12, 2021
923f55b
Bump hashi-stack-menu (#12047)
EnMod Jul 12, 2021
6e9ad7c
skip seal check for manual sealing (#12046)
HridoyRoy Jul 12, 2021
136dd73
Wire up remaining sections for config validation (#12048)
sgmiller Jul 12, 2021
25e7797
builtin/logical/nomad: fix dropped test errors (#12052)
alrs Jul 13, 2021
8fc553c
Update Documentation for GCP Static Account (#12027)
lawliet89 Jul 13, 2021
5f8f6b8
Remove Key validation on KV2 (#12045)
Monkeychip Jul 13, 2021
dc06f21
docs: fix formatting in azure secrets overview (#12058)
jasonodonnell Jul 13, 2021
feba683
updating API docs for InfluxDB (#12063)
MilenaHC Jul 13, 2021
7004b51
Bump API's SDK version
jefferai Jul 13, 2021
9bbe181
Update SDK and API to new tagged versions
jefferai Jul 13, 2021
55eb96b
Handle form validation for open api form (#11963)
arnav28 Jul 13, 2021
f6e3589
Make any section skippable via string contains skip checking. (#12055)
sgmiller Jul 13, 2021
1fc8af4
Update Vault main to new API/SDK Tags. (#12069)
sgmiller Jul 13, 2021
853ac03
Re-update SDK/API against release branch HEAD (#12070)
sgmiller Jul 14, 2021
ec31992
Enable building darwin arm64 for 1.8.x (#11855) (#12072)
sgmiller Jul 14, 2021
89492a0
Upgrade packagespec (#12075)
sgmiller Jul 14, 2021
52e6d69
changelog++
mladlow Jul 15, 2021
86cb4f3
secrets/ad: change improvement to feature in changelog (#12095) (#12099)
jasonodonnell Jul 15, 2021
4da7931
mongodbatlas: update changelog for username customization (#12100)
fairclothjm Jul 15, 2021
08d9f75
secrets/database: fixes external plugin reconnect after shutdown for …
austingebauer Jul 15, 2021
dbc2f57
Update kubernetes auth plugin with AliasLookahead fix (#12073) (#12092)
tomhjp Jul 16, 2021
df0c8d3
Backport recent diagnose fixes to 1.8.x (#12108)
sgmiller Jul 16, 2021
ed8d36b
UI: Automatically refresh page on logout (#12035) (#12082)
hashishaw Jul 16, 2021
46ed883
Change changelog type for openldap bug fix (#12112) (#12114)
jasonodonnell Jul 16, 2021
4ffff3a
changelog: update feature formatting for gcp and key management secre…
austingebauer Jul 19, 2021
5c7e855
Fix KV Version History queryParams on the component LinkedBlock (#120…
Monkeychip Jul 21, 2021
c3855d7
Backport: 1.8.x UI/database cg read role (#12111) (#12136)
hashishaw Jul 21, 2021
9f77f5a
Re-adding deleted changelog note (#12141)
mladlow Jul 22, 2021
ca2ad70
Update node to latest stable version (#12049) (#12154)
arnav28 Jul 22, 2021
43cfab4
Add fallback font for masked-input (#12152) (#12158)
Monkeychip Jul 23, 2021
82a99f1
Use a mode when opening the db file that won't result in excessive pe…
ncabatoff Jul 23, 2021
571a30c
Pin RabbitMQ and Cassandra docker image versions (#12174) (#12204)
ncabatoff Jul 30, 2021
f882564
identity: do not allow a role's token_ttl to be longer than verificat…
calvn Jul 30, 2021
6748c7d
backport disk usage print fixes (#12232)
HridoyRoy Aug 2, 2021
7f2cfd0
Backport: Don't use autogenerated licenses in diagnose when config is…
HridoyRoy Aug 2, 2021
436d893
serviceregistration: add external-source meta value (#12163) (#12241)
calvn Aug 3, 2021
c48b322
Forward cert signing requests to the primary on perf secondaries as w…
sgmiller Aug 4, 2021
bd35cc7
Updating go version to 1.16.6 for security fix (#12245) (#12249)
mladlow Aug 4, 2021
062842a
Updating SDK version for 1.8.1 (#12247)
mladlow Aug 4, 2021
d4269f3
[VAULT-1986] Cap AWS Token TTL based on Default Lease TTL (#12026) (#…
vinay-gopalan Aug 4, 2021
21ecd7d
Backport 1.8.1: identity: allow creating a role with a non-existent k…
calvn Aug 4, 2021
4b0264f
Updates vault-plugin-auth-jwt to v0.10.1 (#12258)
austingebauer Aug 4, 2021
a7ef625
changelog++
mladlow Aug 5, 2021
96d0335
database/cassandra: pin bitnami/cassandra docker image to 3.11 in tes…
calvn Aug 12, 2021
9d66474
dep: update database-couchbase plugin to v0.4.1 (#12300)
calvn Aug 12, 2021
51764ab
dbplugin: fix error message in DeleteUser (#12351) (#12355)
calvn Aug 19, 2021
9222923
Upgrade snappy to fix panic with identity/packer on Go 1.16+arm64. (#…
ncabatoff Aug 19, 2021
51c3aa3
[VAULT-3226] Use os.rename on windows os (#12377) (#12381)
pmmukh Aug 19, 2021
b4d67fb
Updates vault-plugin-secrets-gcp to v0.10.2 (#12379) (#12383)
austingebauer Aug 20, 2021
10be989
Fix `vault debug` so that captured logs include newlines. (#12175) (#…
ncabatoff Aug 20, 2021
0818886
Backport 1.8.2: update snowflake plugin to v0.2.1 (#12389)
jasonodonnell Aug 20, 2021
b882dde
Handle api explorer routing error (#12354) (#12385)
arnav28 Aug 20, 2021
407532f
creds/aws: Add support for DSA signature verification for EC2 (#12340…
jasonodonnell Aug 20, 2021
c29aee7
UI: Allow metrics view without config read (#12348) (#12363)
hashishaw Aug 20, 2021
6e61a61
Bug Fix: tab on MaskedInput for GeneratedItems it was clearing the va…
Monkeychip Aug 24, 2021
914a320
Backport 12408 (#12419)
raskchanky Aug 24, 2021
11a17da
Update version to 1.8.2 (#12407)
raskchanky Aug 24, 2021
9b1f4d4
packagespec upgrade -version 0.2.8 (#12433)
samsalisbury Aug 25, 2021
aca76f6
update go mod with new sdk version (#12440)
swayne275 Aug 26, 2021
cba3164
changelog++
mladlow Aug 26, 2021
60ea8ea
code changes to allow perf standbys to create batch tokens (#12468)
HridoyRoy Sep 1, 2021
8a34527
Backport 1.8.x: UI: Show day of month instead of day of year in the e…
hashishaw Sep 3, 2021
899c405
UI: Fix missing nav links on namespace login (#12478) (#12489)
hashishaw Sep 3, 2021
d26fbf1
Backport 1.8: Add code to api.RaftSnapshot to detect incomplete snaps…
ncabatoff Sep 8, 2021
e99970b
Backport 1.8: vault-agent: copy values retrieved from bolt (#12534) (…
tvoran Sep 13, 2021
4ef8db3
Enforce minimum cache size for transit backend (#12418)
divyapola5 Sep 13, 2021
34b2597
Add missing read unlock calls in transit backend and invoke initcache…
divyapola5 Sep 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1,113 changes: 572 additions & 541 deletions .circleci/config.yml

Large diffs are not rendered by default.

567 changes: 309 additions & 258 deletions .circleci/config/@build-release.yml

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions .circleci/config/commands/@caches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
restore_yarn_cache:
steps:
- restore_cache:
name: Restore yarn cache
key: &YARN_LOCK_CACHE_KEY yarn-lock-v6-{{ checksum "ui/yarn.lock" }}
save_yarn_cache:
steps:
- save_cache:
name: Save yarn cache
key: *YARN_LOCK_CACHE_KEY
paths:
- ui/node_modules
# allows restoring go mod caches by incomplete prefix. This is useful when re-generating
# cache, but not when running builds and tests that require an exact match.
restore_go_mod_cache_permissive:
steps:
- restore_cache:
name: Restore closest matching go modules cache
keys:
- &gocachekey v1.3-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}-{{checksum "api/go.sum"}}
- v1.3-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}
- v1.3-{{checksum "go.sum"}}
restore_go_mod_cache:
steps:
- restore_cache:
name: Restore exact go modules cache
keys:
- *gocachekey
save_go_mod_cache:
steps:
- save_cache:
name: Save go modules cache
key: *gocachekey
paths:
- /go/pkg/mod
refresh_go_mod_cache:
steps:
- restore_go_mod_cache_permissive
- run:
name: go mod download
command: |
# go list ./... forces downloading some additional versions of modules that 'go mod
# download' misses. We need this because we make use of go list itself during
# code generation in later builds that rely on this module cache.
go list ./...
go mod download -json
( cd sdk && go mod download -json; )
( cd api && go mod download -json; )
- run:
name: Verify downloading modules did not modify any files
command: |
git --no-pager diff --exit-code || {
echo "ERROR: Files modified by go mod download, see above."
exit 1
}
- save_go_mod_cache
10 changes: 0 additions & 10 deletions .circleci/config/commands/@yarn-cache.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .circleci/config/commands/configure-git.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- add_ssh_keys:
fingerprints:
- "0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06"
- run: |
git config --global url."git@github.com:".insteadOf https://github.com/
17 changes: 17 additions & 0 deletions .circleci/config/commands/exit-if-branch-does-not-need-test-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: >
Check if branch name starts with ui/ or docs/ and if so, exit.
steps:
- run:
working_directory: ~/
name: Check branch name
command: |
case "$CIRCLE_BRANCH" in
main|ui/*|release/*|merge*) ;;
*) # If the branch being tested doesn't match one of the above patterns,
# we don't need to run test-ui and can abort the job.
circleci-agent step halt
;;
esac

# exit with success either way
exit 0
52 changes: 37 additions & 15 deletions .circleci/config/commands/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,36 @@ parameters:
default: false
go_image:
type: string
default: "docker.mirror.hashicorp.services/circleci/golang:1.16.2-buster"
default: "docker.mirror.hashicorp.services/circleci/golang:1.16.7-buster"
use_docker:
type: boolean
default: false
arch:
type: string
# Only supported for use_docker=false, and only other value allowed is 386
default: amd64
default: amd64 # must be 386 or amd64
steps:
- configure-git
- run:
name: Compute test cache key
command: |
TZ=GMT date '+%Y%m%d' > /tmp/go-cache-key
- restore_cache:
keys:
- go-test-cache-date-v1-{{ checksum "/tmp/go-cache-key" }}
- restore_go_mod_cache
- run:
name: Run Go tests
no_output_timeout: 60m
environment:
GOPRIVATE: 'github.com/hashicorp/*'
command: |
set -x

EXTRA_TAGS=
case "<< parameters.extra_flags >>" in
*-race*) export VAULT_CI_GO_TEST_RACE=1;;
*) EXTRA_TAGS=deadlock;;
esac

# Install CircleCI CLI
Expand Down Expand Up @@ -100,9 +106,17 @@ steps:
TEST_DOCKER_NETWORK_ID=$(docker network create vaulttest)
fi



# Start a docker testcontainer to run the tests in
docker run -d -e TEST_DOCKER_NETWORK_ID \
-e DOCKER_CERT_PATH -e DOCKER_HOST -e DOCKER_MACHINE_NAME -e DOCKER_TLS_VERIFY -e NO_PROXY \
docker run -d \
-e TEST_DOCKER_NETWORK_ID \
-e GOPRIVATE \
-e DOCKER_CERT_PATH \
-e DOCKER_HOST \
-e DOCKER_MACHINE_NAME \
-e DOCKER_TLS_VERIFY \
-e NO_PROXY \
-e VAULT_TEST_LOG_DIR=<< parameters.log_dir >> \
--network vaulttest --name \
testcontainer << parameters.go_image >> \
Expand All @@ -114,27 +128,35 @@ steps:
docker cp . testcontainer:/go/src/github.com/hashicorp/vault/
docker cp $DOCKER_CERT_PATH/ testcontainer:$DOCKER_CERT_PATH

# Copy the downloaded modules inside the container.
docker exec testcontainer sh -c 'mkdir -p /go/pkg'
docker cp "$(go env GOPATH)/pkg/mod" testcontainer:/go/pkg/mod

docker exec -w /go/src/github.com/hashicorp/vault/ \
-e GO111MODULE -e CIRCLECI -e GOCACHE=/tmp/gocache -e VAULT_CI_GO_TEST_RACE \
-e CIRCLECI -e VAULT_CI_GO_TEST_RACE \
-e GOCACHE=/tmp/gocache \
-e GO_TAGS \
-e GOPROXY="off" \
-e VAULT_LICENSE_CI \
-e GOARCH=<< parameters.arch >> \
testcontainer \
gotestsum --format=short-verbose \
--junitfile test-results/go-test/results.xml \
--jsonfile test-results/go-test/results.json \
-- \
-tags "${GO_TAGS}" \
-timeout=60m \
-parallel=20 \
<< parameters.extra_flags >> \
${package_names}
gotestsum --format=short-verbose \
--junitfile test-results/go-test/results.xml \
--jsonfile test-results/go-test/results.json \
-- \
-tags "${GO_TAGS} ${EXTRA_TAGS}" \
-timeout=60m \
-parallel=20 \
<< parameters.extra_flags >> \
${package_names}
else
GOARCH=<< parameters.arch >> \
GOCACHE=<< parameters.cache_dir >> \
gotestsum --format=short-verbose \
--junitfile test-results/go-test/results.xml \
--jsonfile test-results/go-test/results.json \
-- \
-tags "${GO_TAGS}" \
-tags "${GO_TAGS} ${EXTRA_TAGS}" \
-timeout=60m \
-parallel=20 \
<< parameters.extra_flags >> \
Expand Down
12 changes: 12 additions & 0 deletions .circleci/config/commands/setup-go.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
---
description: >
Ensure the right version of Go is installed and set GOPATH to $HOME/go.
parameters:
GOPROXY:
description: >
Set GOPROXY. By default this is set to "off" meaning you have to have all modules pre-downloaded.
type: string
default: "off"
GOPRIVATE:
description: Set GOPRIVATE, defaults to github.com/hashicorp/*
type: string
default: github.com/hashicorp/*
steps:
- run:
working_directory: ~/
Expand All @@ -16,6 +26,8 @@ steps:
mkdir $GOPATH 2>/dev/null || { sudo mkdir $GOPATH && sudo chmod 777 $GOPATH; }
echo "export GOPATH='$GOPATH'" >> "$BASH_ENV"
echo "export PATH='$PATH:$GOPATH/bin:/usr/local/go/bin'" >> "$BASH_ENV"
echo "export GOPROXY=<<parameters.GOPROXY>>" >> "$BASH_ENV"
echo "export GOPRIVATE=<<parameters.GOPRIVATE>>" >> "$BASH_ENV"

echo "$ go version"
go version
14 changes: 5 additions & 9 deletions .circleci/config/executors/@executors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ go-machine:
machine: true
shell: /usr/bin/env bash -euo pipefail -c
environment:
GO111MODULE: "off"
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_VERSION: 1.16.2 # Pin Go to patch version (ex: 1.2.3)
GO_VERSION: 1.16.7 # Pin Go to patch version (ex: 1.2.3)
GOTESTSUM_VERSION: 0.5.2 # Pin gotestsum to patch version (ex: 1.2.3)
GO_TAGS: ""
working_directory: /go/src/github.com/hashicorp/vault
node:
docker:
- image: docker.mirror.hashicorp.services/node:10-buster
- image: docker.mirror.hashicorp.services/node:14-buster
shell: /usr/bin/env bash -euo pipefail -c
working_directory: /go/src/github.com/hashicorp/vault
python:
Expand All @@ -26,27 +25,24 @@ alpine:
docker-env-go-test-remote-docker:
resource_class: medium
docker:
- image: "docker.mirror.hashicorp.services/circleci/golang:1.16.2-buster"
- image: "docker.mirror.hashicorp.services/circleci/golang:1.16.7-buster"
environment:
GO111MODULE: "off"
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_TAGS: ""
working_directory: /go/src/github.com/hashicorp/vault
docker-env-go-test:
resource_class: large
docker:
- image: "docker.mirror.hashicorp.services/circleci/golang:1.16.2-buster"
- image: "docker.mirror.hashicorp.services/circleci/golang:1.16.7-buster"
environment:
GO111MODULE: "off"
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_TAGS: ""
working_directory: /go/src/github.com/hashicorp/vault
docker-env-go-test-race:
resource_class: xlarge
docker:
- image: "docker.mirror.hashicorp.services/circleci/golang:1.16.2-buster"
- image: "docker.mirror.hashicorp.services/circleci/golang:1.16.7-buster"
environment:
GO111MODULE: "off"
CIRCLECI_CLI_VERSION: 0.1.5546 # Pin CircleCI CLI to patch version (ex: 1.2.3)
GO_TAGS: ""
working_directory: /go/src/github.com/hashicorp/vault
1 change: 1 addition & 0 deletions .circleci/config/jobs/build-go-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ executor: go-machine
steps:
- setup-go
- checkout
- restore_go_mod_cache
- attach_workspace:
at: .
- run:
Expand Down
11 changes: 0 additions & 11 deletions .circleci/config/jobs/go-mod-vendor.yml

This file was deleted.

19 changes: 10 additions & 9 deletions .circleci/config/jobs/pre-flight-checks.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
description: Ensures nothing obvious is broken for faster failures.
docker:
- image: circleci/buildpack-deps
shell: /usr/bin/env bash -euo pipefail
environment:
CCI_VERSION: 0.1.5691
description: Ensure nothing obvious is broken, and pre-cache Go modules.
executor: go-machine
steps:
# Setup Go enabling the proxy for downloading modules.
- setup-go:
GOPROXY: https://proxy.golang.org,direct
- checkout
- run:
name: Install CircleCI CLI
environment:
ARCH: linux_amd64
BASE: https://github.com/CircleCI-Public/circleci-cli/releases/download
command: |
export CCI_PATH=/tmp/circleci-cli/$CCI_VERSION
export CCI_PATH=/tmp/circleci-cli/$CIRCLECI_CLI_VERSION
mkdir -p $CCI_PATH
NAME=circleci-cli_${CCI_VERSION}_${ARCH}
URL=$BASE/v${CCI_VERSION}/${NAME}.tar.gz
NAME=circleci-cli_${CIRCLECI_CLI_VERSION}_${ARCH}
URL=$BASE/v${CIRCLECI_CLI_VERSION}/${NAME}.tar.gz
curl -sSL $URL \
| tar --overwrite --strip-components=1 -xz -C $CCI_PATH "${NAME}/circleci"
# Add circleci to the path for subsequent steps.
Expand All @@ -26,3 +25,5 @@ steps:
which circleci
circleci version
- run: make ci-verify
- configure-git
- refresh_go_mod_cache
2 changes: 1 addition & 1 deletion .circleci/config/jobs/test-go-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
executor: go-machine
steps:
- check-branch-name
- setup-go
- checkout
- restore_go_mod_cache
- go_test:
log_dir: "/tmp/testlogs"
save_cache: true
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config/jobs/test-go-race-remote-docker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
executor: docker-env-go-test-remote-docker
parallelism: 8
steps:
- check-branch-name
- exit-if-ui-or-docs-branch
- checkout
- setup_remote_docker:
version: 18.09.3
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config/jobs/test-go-race.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
executor: docker-env-go-test-race
parallelism: 8
steps:
- check-branch-name
- exit-if-ui-or-docs-branch
- checkout
- go_test:
extra_flags: "-race"
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config/jobs/test-go-remote-docker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
executor: docker-env-go-test-remote-docker
parallelism: 8
steps:
- check-branch-name
- exit-if-ui-or-docs-branch
- checkout
- setup_remote_docker:
version: 18.09.3
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config/jobs/test-go.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
executor: docker-env-go-test
parallelism: 8
steps:
- check-branch-name
- exit-if-ui-or-docs-branch
- checkout
- go_test:
log_dir: "/tmp/testlogs"
Expand Down
1 change: 1 addition & 0 deletions .circleci/config/jobs/test-ui.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
executor: node
resource_class: xlarge
steps:
- exit-if-branch-does-not-need-test-ui
- checkout
- restore_yarn_cache
- attach_workspace:
Expand Down