Commit Graph

210 Commits

Author SHA1 Message Date
Clint
8e7fd9e794
Replace go-bindata-assetfs build dependency with native go:embed (#11208)
* copy over the webui

move web_ui to http

remove web ui files, add .gitkeep

updates, messing with gitkeep and ignoring web_ui

update ui scripts

gitkeep

ignore http/web_ui

Remove debugging

remove the jwt reference, that was from something else

restore old jwt plugin

move things around

Revert "move things around"

This reverts commit 2a35121850f5b6b82064ecf78ebee5246601c04f.

Update ui path handling to not need the web_ui name part

add desc

move the http.FS conversion internal to assetFS

update gitignore

remove bindata dep

clean up some comments

remove asset check script that's no longer needed

Update readme

remove more bindata things

restore asset check

update packagespec

update stub

stub the assetFS method and set uiBuiltIn to false for non-ui builds

update packagespec to build ui

* fail if assets aren't found

* tidy up vendor

* go mod tidy

* updating .circleci

* restore tools.go

* re-re-re-run make packages

* re-enable arm64

* Adding change log

* Removing a file

Co-authored-by: hamid ghaf <hamid@hashicorp.com>
2021-08-18 11:05:11 -04:00
Meggie
913fd23327
Updating go version to 1.16.6 for security fix (#12245)
* Updating go version to 1.16.6 for security fix

* Changelog
2021-08-04 11:30:43 -04:00
Arnav Palnitkar
e8bcb692c7
Update node to latest stable version (#12049)
* Update node to latest stable version

- v10 has reached EOL so upgrading node to v14 which is the latest
stable build

* Added changelog

* Resolve merge conflicts
2021-07-22 14:09:12 -07:00
Jim Kalafut
d341378c63
Rename some references from master to main (#11897)
* Rename some references from master to main

* Update changelog-checker
2021-06-18 11:24:54 -07:00
Vishal Nayak
6b3f3dfbbd
Udate to Go 1.16.5 (#11802)
* Udate to Go 1.16.5

* Add CL

* Update packages-oss.yml

* Update go_test.yml
2021-06-09 10:38:52 -04:00
Theron Voran
d06e2a015d
Passing BUILD_TAGS to the docker-dev commands (#11769)
Adds BUILD_TAGS to the docker build commands for docker-dev and
docker-dev-ui. Also changes the respective Dockerfile's to use double
quotes with ${BUILD_TAGS} so that it's interpolated.
2021-06-04 08:51:55 -07:00
Sam Salisbury
96db50a235
upgrade-packagespec script: open browser for PR (#11486) 2021-04-28 11:35:25 +01:00
Sam Salisbury
ab9ed405cb
add scripts/upgrade-packagespec (#10276)
* add scripts/upgrade-packagespec

* upgrade-packagespec script: docs + actionable logs

* upgrade-packagespec script: escape branch name

- This is now more accurate and handles branch names with
  slashes and pluses better.

* Update scripts/upgrade-packagespec

Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>

Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2021-04-26 11:53:00 +01:00
Scott Miller
addbdd1f95
Darwin/ARM64 build target (#11321)
* Update to Go 1.16.2 for build/dev

* Update SDK version_base

* 1st attempt

* Update docker images

* wip

* wip
2021-04-09 09:53:03 -05:00
Shahar Danus
64c04a7439
bumping alpine version, improving security (#11271) 2021-04-08 10:45:03 -07:00
Scott Miller
2e169ad267
Update Go to 1.16.2 for the 1.8-dev cycle (#11267)
* Update to Go 1.16.2 for build/dev

* Update SDK version_base

* Update docker images

* make packages
2021-04-07 15:46:42 -05:00
Sam Salisbury
759f9c1f21
Revert "Remove use of go cache from go test CI", bump Go to 1.15.11 (#11279)
* Revert "Saving and restoring the go cache was an experiment to reduce build times, but it worked too inconsistently. (#10493)"

This reverts commit 1e72bb1c41.

* make ci-config

* ci: update default go image to use docker mirror

* bump to go1.15.11

- Previously there was version skew: 1.15.10 and 1.15.4 were in use.
2021-04-06 14:42:14 +01:00
Calvin Leung Huang
3d4a346307
go: update references to go1.15.10 (#11233) 2021-03-30 09:15:48 -07:00
Hridoy Roy
c41ecae9ba
Minimal changes to solve Dependency CVEs [VAULT-871] (#11015)
* minimal changes to solve most of the cves

* cleanup

* finished go mod vendor upgrades
2021-03-01 14:35:40 -08:00
Clint
4d16944401
Bundle new Vault plugin: Terraform secrets (#10931)
* Bundle Terraform secrets engine

* update go.mod/sum

* vendor update

* add changelog entry

* add secrets terraform
2021-02-19 16:38:56 -06:00
Josh Black
a597742065
Update to go 1.15.7 (#10730)
* Update to go 1.15.6

* Just kidding, how about 1.15.7

* And the associated CI config

* Add changelog and update go version in more places
2021-01-20 11:02:33 -08:00
Nick Cabatoff
0545ea4bb2
Use 1.15.4 in CI and Dockerfile. (#10587) 2021-01-15 12:39:33 -05:00
Brian Kassouf
c1bcc9803b
Update go version to 1.15.3 (#10279)
* Update go version to 1.15.3

* Fix OU ordering for go1.15.x testing

* Fix CI version

* Update docker image

* Fix test

* packagespec upgrade -version 0.1.8

Co-authored-by: Sam Salisbury <samsalisbury@gmail.com>
2020-10-30 16:44:06 -04:00
Jason O'Donnell
9204c47af7
docker-dev: add go version as build arg (#10117) 2020-10-08 14:30:31 -04:00
Tom Proctor
fd71582572
Remove incorrect couchbase command (#9851) 2020-08-28 16:34:00 +01:00
Tom Proctor
d8995bfe42
Bundle couchbase database plugin with vault (#9664) 2020-08-07 11:01:04 +01:00
Jason O'Donnell
e6ec457488
Add docker dev build targets (#9426)
* Add docker dev build target

* Update scripts/docker/Dockerfile

Co-authored-by: Jim Kalafut <jkalafut@hashicorp.com>

* Add multi-stage build

* Add comment about multi-stage

* Add docker-dev-ui

Co-authored-by: Jim Kalafut <jkalafut@hashicorp.com>
2020-07-20 14:11:34 -04:00
Calvin Leung Huang
6036c4fb89
scripts: make build.sh gocmd aware (#9394) 2020-07-02 17:45:41 -07:00
Becca Petrin
acade9eb32
Add Transform to enterprise OpenAPI doc (#8746)
* add transform to gen_openapi.sh

* add license
2020-04-15 09:12:12 -07:00
Jim Kalafut
538bf25223
Add mongodbatlas to gen_openapi (#8387) 2020-02-19 09:39:14 -08:00
Sam Salisbury
e5bb30110f update to go1.13.8 2020-02-19 07:30:04 +00:00
Jason O'Donnell
7d550e24da
Add OpenLDAP Secret Plugin (#8360)
* Add openldap secret plugin

* go mod vendor

* Revert to go-ldap 3.1.3

* go mod vendor
2020-02-15 13:21:07 -05:00
Sam Salisbury
a1190ded7e
upgrade to go1.13.7 (#8332) 2020-02-11 15:03:49 +00:00
Becca Petrin
bef1fcfaa0
Update gen_openapi.sh (#8273)
* enable more auth backends in openapi gen

* cf and pcf are the same, with cf being preferred
2020-01-31 16:05:39 -08:00
Jim Kalafut
61c5efc0eb
Allow easier swapping of Go version (#8102) 2020-01-09 09:35:32 -08:00
Sam Salisbury
0e6c4a428b bump Docker builder image to go1.12.12 2019-11-13 10:19:55 +00:00
Jeff Mitchell
8046fa1e71
Handpick cluster cipher suites when they're not user-set (#7487)
* Handpick cluster cipher suites when they're not user-set

There is an undocumented way for users to choose cluster cipher suites
but for the most part this is to paper over the fact that there are
undesirable suites in TLS 1.2.

If not explicitly set, have the set of cipher suites for the cluster
port come from a hand-picked list; either the allowed TLS 1.3 set (for
forwards compatibility) or the three identical ones for TLS 1.2.

The 1.2 suites have been supported in Go until at least as far back as
Go 1.9 from two years ago. As a result in cases where no specific suites
have been chosen this _ought_ to have no compatibility issues.

Also includes a useful test script.
2019-10-28 12:51:45 -04:00
Matthew Irish
657477e941
embed yarn (#7740)
* embed yarn binary using yarn policies set-version and loosen the restriction on yarn in the dockerfile and the package.json

* don't lint the embedded yarn package
2019-10-25 16:00:45 -05:00
Matthew Irish
b01234d2bb
update yarn to 1.19.1 (#7731) 2019-10-24 17:08:23 -05:00
Jeff Mitchell
1bba7fa3c2 Bump Go in Dockerfile to 1.12.9 2019-09-09 14:45:14 -04:00
Matthew Irish
d1cc107a02
Update ui dependencies (#7244)
* be more specific about node version, and specify a yarn version

* update ember, ember-cli, ember-data, ember-data-model-fragments

* use router handlers to access transition information

* fix shadowing of component helper

* update ivy-codemirror, ember-cli-inject-live-reload

* remove custom router service

* don't use transition.queryParams

* update ember-cli-deprecation-workflow

* refactor kv v1 to use 'path' instead of 'id' on creation

* fix auth-jwt-test and toolbar-link-test

* update ember composable helpers

* remove Ember.copy from test file

* no more deprecations in the workflow

* fix more secret tests

* fix remaining failed tests

* move select component to core because it's used by ttl-picker

* generate new model class for each test instead of reusing an existing one

* fix selectors on kmip tests

* refactor how control groups construct urls from the new transition objects

* add router service override back in, and have it be evented so that we can trigger router events on it

* move stories and markdown files to core if the component lives in core

* update ember-cli, ember-cli-babel, ember-auto-import

* update base64js, date-fns, deepmerge, codemirror, broccoli-asset-rev

* update linting rules

* fix test selectors

* update ember-api-actions, ember-concurrency, ember-load-initializers, escape-string-regexp, normalize.css, prettier-eslint-cli, jsdoc-to-markdown

* remove test-results dir

* update base64js, ember-cli-clipboard, ember-cli-sass, ember-cli-string-helpers, ember-cli-template-lint, ember-cli-uglify, ember-link-action

* fix linting

* run yarn install without restoring from cache

* refactor how tests are run and handle the vault server subprocess

* update makefile for new test task names

* update circle config to use the new yarn task

* fix writing the seal keys when starting the dev server

* remove optional deps from the lockfile

* don't ignore-optional on yarn install

* remove errant console.log

* update ember-basic-dropdown-hover, jsonlint, yargs-parser

* update ember-cli-flash

* add back optionalDeps

* update @babel/core@7.5.5, ember-basic-dropdown@1.1.3, eslint-plugin-ember@6.8.2

* update storybook to the latest release

* add a babel config with targets so that the ember babel plugin works properly

* update ember-resolver, move ember-cli-storybook to devDependencies

* revert normalize.css upgrade

* silence fetchadapter warning for now

* exclude 3rd party array helper now that ember includes one

* fix switch and entity lookup styling

* only add -root suffix if it's not in versions mode

* make sure drop always has an array on the aws role form

* fix labels like we did with the backport

* update eslintignore

* update the yarn version in the docker build file

* update eslint ignore
2019-08-19 15:45:39 -05:00
Jeff Mitchell
f51c32c971 Use separate env var for Vault commit in plugin update script 2019-08-14 17:02:28 -04:00
Jeff Mitchell
d158f26c97 Use Go 1.12.8 for building 2019-08-14 10:45:19 -04:00
Jeff Mitchell
61cea2c1c5 Fix Dockerfile 2019-07-25 14:11:03 -04:00
Jeff Mitchell
3d1846736c Add gomiports to Dockerfile 2019-07-25 14:08:51 -04:00
Jeff Mitchell
814f7709b4 Allow specifying branch for plugin module updating via $API_BRANCH 2019-07-25 12:38:47 -04:00
Becca Petrin
d570c565c9 Add engines to OpenAPI (#7098) 2019-07-24 17:03:03 -07:00
Jeff Mitchell
f235e9270f Add ability for module update script to only download plugins, not also update them 2019-07-22 12:56:13 -04:00
Jeff Mitchell
41d3939b1f Quick and dirty script to update all plugins against latest Vault
sdk/api and then pull those into Vault itself
2019-07-19 10:56:48 -04:00
Jeff Mitchell
6c7822380d
Bump cross Dockerfile to 1.12.7 (#7126)
This version fixes a bug that is bad, but hard to say whether it might
affect us or not -- or more crucially, any of our dependencies. It's
almost certainly worth updating just in case. See
https://github.com/golang/go/issues/32560
2019-07-17 06:32:08 -04:00
Jeff Mitchell
57612184ad Revert "Migrate build to use go modules"
This reverts commit 3439a34989.

For the moment with bad wifi this is just taking too, too long. We may
be able to figure out an approach that bind mounts the cache in which
should help drastically.
2019-07-09 04:15:03 -04:00
Jeff Mitchell
450736c3d1 Buster is released, so switch off testing for Dockerfile 2019-07-09 03:51:05 -04:00
Jeff Mitchell
3439a34989 Migrate build to use go modules 2019-07-05 19:59:04 -04:00
Jeff Mitchell
cd0e64e430 Bump Go version in build Dockerfile 2019-06-12 09:38:35 -04:00
Jim Kalafut
8b6ea178b2
Don't show TypeHeader fields as being sent as headers in OpenAPI (#6679)
Fixes #6671
2019-05-03 15:12:24 -07:00
Jeff Mitchell
901060d479 Bump Dockerfile Go version 2019-04-15 10:58:28 -04:00
Jeff Mitchell
170521481d
Create sdk/ and api/ submodules (#6583) 2019-04-12 17:54:35 -04:00
Jeff Mitchell
4daf77258a Update dep script 2019-03-25 20:38:08 -04:00
Jim Kalafut
01a6c5c976
Add UI asset file checks to Makefile (#6428) 2019-03-25 12:07:14 -05:00
Jeff Mitchell
88741e9956 Sync over 2019-03-18 09:33:01 -04:00
Matthew Irish
fc64a47750 add apt-get flags (#6389) 2019-03-09 02:58:18 -05:00
Matthew Irish
fa13c45e7c update to node v10 for all of the things (#6218)
* update to node v10 for all of the things

* combine apt-get commands
2019-02-13 09:34:38 -05:00
Jeff Mitchell
671131669a Add npm to apt-get command 2019-01-31 15:56:04 -05:00
Jeff Mitchell
7043a08b8a Bump Dockerfile Go version 2019-01-29 13:43:29 -05:00
Jeff Mitchell
de380ce624 Allow devel in go version check and bump to 1.11 2019-01-29 11:27:04 -05:00
Jeff Mitchell
f55dafbf6a Force circonus v2 as directed by them 2019-01-28 10:27:02 -05:00
Jeff Mitchell
6500c3ca0d Update update deps script 2019-01-26 18:43:35 -05:00
Jeff Mitchell
d4bcc13072 Prepare for 1.0.2 2019-01-15 11:25:11 -05:00
Jeff Mitchell
4523aa261a Attempt to fix dockerfile again 2018-12-14 11:05:42 -05:00
Jeff Mitchell
2fd62e9020 Changes in Go don't like the old import path 2018-12-14 10:56:03 -05:00
Jeff Mitchell
0ddc104ba3 Bump dockerfile Go version 2018-12-14 09:10:32 -05:00
Ferdy Pruis
e08300ad3a Fixed typo in a comment (#5868) 2018-11-29 16:08:44 -08:00
Jeff Mitchell
77d6441fe3 Bump Go version in Dockerfile 2018-11-13 11:45:32 -05:00
Jim Kalafut
35328c50e7
Framework and API changes to support OpenAPI (#5546) 2018-11-05 12:24:39 -08:00
Matthew Irish
be33d6580b
UI - new token renew banner (#5662)
* move warning banner out of token-expire-warning and into user menu
* check renewal status every 5s, and resume auto-renew if a user becomes active again
* use a link in the token-expire-warning
* add test for new expiration functionality
* fix license test
* use features helper in license test
* fix import
* use yarn 1.12.1
* remove mirage
* skip some tests for now
* use eslintignore
* logout after auth tests
* use new alert-banner for auth info warning
* add data-test selector back
* move identity back to a button, and style button.link
* make the warning message the right color
* fix shamir test
* review feedback
2018-11-05 10:56:59 -06:00
Jeff Mitchell
e6219bf98e Update Dockerfile go version 2018-10-02 14:16:05 -04:00
Matthew Irish
9a0dc6061e
Update yarn version in the cross Dockerfile 2018-10-02 10:56:51 -05:00
Calvin Leung Huang
60d4dac8a0 Small Makefile and script cleanup (#5354) 2018-09-18 14:28:37 -07:00
Jeff Mitchell
dba48d5265
Re-add dockertest and fix up imports and update script (#4909) 2018-07-11 17:49:13 -04:00
Jeff Mitchell
64a9f87e0f Bump Go version in cross Dockerfile 2018-06-09 18:09:45 -04:00
Jeff Mitchell
674c107ad4 Specify go-oidc v2 for update-deps 2018-05-22 15:42:54 -04:00
Matthew Irish
b5a39d422a
Ember cli update to 2.15 (#4526)
* update ember-cli to 2.15

* remove bower

* update ivy-codemirror

* update build and ci to not use bower or phantomjs
2018-05-08 10:43:20 -05:00
Jeff Mitchell
9d0d9c8d30 Bump yarn 2018-04-03 11:04:02 -04:00
Jeff Mitchell
7a312d7c37 Add Makefile/Dockerfile UI bits 2018-04-03 10:46:45 -04:00
Jeff Mitchell
b6513c1ddc
1.10 Updates (#4218) 2018-03-29 15:32:16 -04:00
Jeff Mitchell
b7da6a74fd Add the ability for make dev to honor XC_OSARCH 2018-03-03 12:35:36 -05:00
Jeff Mitchell
f3b93fbfe6 Go 1.9.4 breaks Solaris builds 2018-02-26 18:55:02 -05:00
Jeff Mitchell
0c8d40b82a Fix the version of Go in the Dockerfile 2018-02-26 18:34:14 -05:00
Jeff Mitchell
18a1be4283 It's not a 1.10 thing apparently.
Revert "Revert "Remove netbsd/arm as it won't compile""

This reverts commit 8b43db120c.
2018-02-26 12:40:49 -05:00
Jeff Mitchell
8b43db120c Revert "Remove netbsd/arm as it won't compile"
This reverts commit 3d4bd6f3cb.
2018-02-26 12:27:25 -05:00
Jeff Mitchell
25d029f219 Migrate Dockerfile back down to 1.9 2018-02-25 20:29:01 -05:00
Jeff Mitchell
3d4bd6f3cb Remove netbsd/arm as it won't compile 2018-02-20 15:27:33 -05:00
Jeff Mitchell
d6366e5f24 Bump files for new version 2018-02-20 14:51:20 -05:00
Guillaume
d6e38ddf8a Minor tweaks to Windows build scripts (#3931) 2018-02-08 18:09:39 -05:00
Jeff Mitchell
752c646858 Use debian:testing for building 2018-01-28 14:58:52 -05:00
Jeff Mitchell
93abbbca1d
Update Dockerfile 2018-01-22 19:47:44 -05:00
Jeff Mitchell
c1ed4a06de Bump go version in Dockerfile 2017-11-14 01:16:59 -05:00
Bharath B
ba0eac153a Remove symbols from vault binary (#3369) 2017-11-08 07:53:08 -05:00
Joel Thompson
7e03a4aed7 Explicitly check go version in build (#3309)
* Explicitly check go version in build

Several GH issues have been opened by people trying to use an older
version of Go to build Vault (e.g., #3307 is the most recent). This adds
an explicit check to the build to hopefully make it more clear to users
in the future.

* Also add checking for go patch version

* Up minimum go version

And fix a comment

* Bump travis to go1.9.1
2017-10-19 16:30:19 -04:00
Chris Hoffman
33e004f637 adding ability to set gcflags on build (#3451) 2017-10-11 11:36:26 -04:00
Jeff Mitchell
859e670416 Bump Go dep 2017-09-03 12:34:07 -04:00
Jeff Mitchell
b0ce99d22f Update dockerfile to use debian stable 2017-07-25 16:44:31 -04:00
Jeff Mitchell
75c8c88c47 Sirupsen->sirupsen 2017-07-25 15:49:10 -04:00
Jeff Mitchell
82ff1bd4df Bump Go version in cross Dockerfile 2017-05-30 14:33:56 -04:00
emily
38ffde5a9d add gofmt checks to Vault and format existing code (#2745) 2017-05-19 08:34:17 -04:00