Commit Graph
42 Commits
Author SHA1 Message Date
Jeff MitchellandSam Salisbury 324f4d5532 Bump to Go 1.16.6, which fixes some important issues (#1407)
* Bump to Go 1.16.6, which fixes some important issues

* use linux/arm64 golang base image

- Discovered the correct digest using:
  'docker manifest inspect golang:1.16.6 | jq -r '.manifests[] | select(.platform.os == "linux" and .platform.architecture == "amd64") | .digest'

Co-authored-by: Sam Salisbury <samsalisbury@gmail.com>
2021-07-22 09:17:22 -04:00
Jim f483828286 update to 0.4.0 version 2021-06-29 07:19:00 -04:00
df35699c4e Integrate with Vault to retrieve and manage per session credentials (#1308)
* Fix down migrations

* Udpates due to merge

* Sentinel values only have to be greater than 0

* Create credential related sdk structs and methods.

* Post merge interface updating.

* Removing scratch code that was not cleaned up.

* updates

* Convert client certificate and client certificate keys into pem blocks and validate.

* Add newline at end of file.

* Faster check for "s" at the end of a resource name when generating from templates.

* make fmt

* updates

* Add dynamic credentials to a session

* Refactor: move contents of file

* updates

* Updates

* Add InvalidDynamicCredential error

* Assign credentials

* Allow updating client certificates seperate from the client certificate key.

* Replace application purpose string with enum value

* PR feedback / fix go test .

* Delete dead code

* Use common view

* Refactor: extract interface and rename method

* Refactor: move code to eliminate privPurpLibrary

* Add comment to requestMap

* Refactor: do not export methods on an unexported struct

* Update internal/db/schema/migrations/postgres/10/03_vault_credential.up.sql

Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com>

* Add comments to credential Purpose constants

* Reorder switch statements to handle errors first

* PR feedback

* update

* fix merge

* Organizing the scheduler code and extract the individual store creation test helper function.

* Run 'make fmt'

* Create certificate when creating store.  Allow vault address to be passed in as option

* Refactor: rename database views and associated structs

This change renames two database views and associated go structs to use
a consistent naming pattern. Views ending in 'private' contain encrypted
credentials needed for connecting to Vault. Views ending in 'public'
mirror the 'private' views but do not include any encrypted values.

This change does not include any changes to functionality or behavior.

* Adding SAD target operations for credential libraries to the SDK.

* Add status field and enumeration table for credential status

* Refactor: rename Status to TokenStatus

* Add status to vault credentials

* Creating the template for the CLI and helper functions.

* Add private database view for vault credentials

* Add scope_id to view and cleanup TODO comment

* Reformat embedded sql queries

* Add vault client helpers

* updates

* white space

* Add LookupLease test

* CLI commands for Store work.  Renamed fields in proto w/ vault prefix.

* Test issue credentials with client TLS

* Add additional checks to vault ping

* Add an error for vault token capabilities and create a VaultToken error kind

* Add support for working with Vault policies

* Use Vault 1.7.2 for testing

* Add testing helper for creating a vault client with a non-root token

* Fix Vault renew lease test

The Vault renew lease endpoint accepts an optional duration parameter
for requesting the number of seconds to extend the lease by. However,
Vault is not required to honor this request.

* Add a var for the required capabilities of a boundary Vault token

* Enhance the test helper for adding a policy to Vault

* Allow the test role in postgresql to revoke credentials

* Remove out of date comments

* Enhance Vault test helpers for the database secrets engine

* Reformat comments

* Add a method for getting the capabilities of the current Vault token

* Add revoke lease to internal Vault client

* Reformat: combine err return line with check for nil line

* Remove redundant checks in test code

Remove checks in test code that are redundant with checks in the test
harness.

* Refactor CreateToken test helper to return the secret and the token

* Fix build failures caused by signature change in vault.CreateToken

* Fix Vault version and Vault API link in comments

* ran `make gen` after merging from mgaffney-vault.

* Remove Vault prefix from attribute fields in API, create a base CLI option for adding field prefixes. format now uses that prefix for error reporting.

* Template now allows attaching attribute field prefixes.

* Credential store uses PrefixAttributeFieldErrorsWithSubactionPrefix.

* Fixing naming of vault flags and helper flags.

* Updating more references to generated api methods.

* Make the capabilities String method more readable

* Add comment outlining PrintApiError usage of Options.

* Refactor test to move declarations closer to first use

* Fix comment

* Implement revoke method on vault repository

* Tests now verify certs, CA, and tokens, addresses can be updated in a store.

* Added test for creating store with pk/cert in same field.

* Allo updating certificates seperate from private key.  Only contact backing vault service when updating token.

* Fixing bad tests and removing unused code.

* Adding tests for various ways of updating tokens.

* Add private credential

* Add token revocation job and cred renewal/revocation job

* Regen after merge.

* Fixing field mask related merge error.

* Create Library CLI. Removes vault prefix from path. Adds a WithoutCleanup testOption for vault.

* Set all credentials to revoked when a token is revoked

* Fixing missed renaming update.

* fix copy/paste error.

* Fixing code generation errors after merge.

* make gen after merge.

* Update internal/cmd/commands/credentialstorescmd/vault_funcs.go

Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com>

* Update internal/cmd/commands/credentialstorescmd/vault_funcs.go

Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com>

* Update internal/cmd/commands/credentialstorescmd/vault_funcs.go

Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com>

* Refactor: move migrations from 10 to 12

* Removing logic from transaction.

* wrapping client errors in the calling op for CredentialStore's client() method.

* Redact token

* redact client key

* updates

* Add trigger to revoke credentials when session is canceled or terminated

* Fixing some help text for some flags.

* Add ability to load values from files (file://) or environment variables (env://).

* Updating comments

* fix bad merge

* feedback

* Adding issued credentials to sessions.

* Error on capabilities

* updates

* Expose NewVaulTestServer

* Add godoc

* Adding generated SessionCredential struct for API.

* Progress on building handler test for Authorize Session.

* feedback

* Update policies

* Add 'revoke' as a status for Vault Tokens

* Add delete_time to vault credential store

* Create dynamic credentials at session creation time.

* Tests pass with credentials attached to AuthorizedSession result.

* Only call issue if there are credentials to issue.

* Fixing output only issues. Adding type to credential library.

* Fix test to clear un/pw generated.  confirm generated un/pw changes from 1 authorize session call to another.

* Update lookupTokenError

* Add delete_time to private credential store

* Refactor: move private store to separate file

* Fixing tests for AuthorizeSession and verifying error cases.

* Only create the credential repo if there are credentials to issue.

* Rename Library field to CredentialLibrary.

* Fixing missing change of Library to CredentialLibrary.

* Removing Default SDK functions for fields which are required and update CLI to match.

* Replace resource specific id variables with "id" and the input parmater for paths to be just a single string and the resource name as it should show up in the path.

* Soft delete vault credential stores

* Prevent new SQL functions from silently overwriting existing functions

* Rename "Hmac" to "HMAC" in the human readable cli response table.

* Fix tests

* Add vault database cleanup jobs

* Add ability to set the token period in the vault test harness

* updates

* Add not_null_columns func test

* remove unused struct

* Up no output timeout

* Validate current vault token on addr update

* Fix client cert change test

* add cert test

* Update revocation job where

* Fix comment

* Use Vault's default port in CLI help strings

* Remove down migrations

* Increase migration file numbers by 1

* Run make migrations

* Move migrations from 12 to 10

* Increase Circle CI timeout for acceptance tests

* Fix spelling mistake in error messages

* ASD cmds for Target and returning credentials to AuthSession request (#1338)

* Add Add/Set/Remove commands for libraries on Targets.  Return credentials on AuthorizeSession request.

Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com>

Co-authored-by: Louis Ruch <louisruch@gmail.com>
Co-authored-by: Todd Knight <T.Alan.Knight@gmail.com>
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
2021-06-22 22:26:26 -04:00
Jim Lambert 407a21991a make packages changes to stage 0.3.0 2021-06-08 13:37:53 -04:00
Jim Lambert ed5e34082c staging release 0.2.3 required version changes 2021-05-21 14:08:09 -04:00
Michele Degges e0138ce286 Upgrade build node version & packagespec (#1237) 2021-05-18 11:47:17 -04:00
Jim Lambert 5aef5cc8dd staging 0.2.2 2021-05-17 19:13:04 -04:00
Jeff Mitchell ea611b4f6a Update build to Go 1.16.4 (#1222) 2021-05-14 15:56:25 -04:00
Sam Salisbury b0fbd9b905 circleci: don't force config regeneration (#1203) 2021-05-05 11:57:20 +01:00
Jim Lambert f7e7e54fd8 updated for 0.2.1 release 2021-05-04 22:04:31 -04:00
Sam Salisbury 7f071a099c packagespec upgrade -version 0.2.4 (#1172)
* packagespec upgrade -version 0.2.4

* update circleci-multi-file-config

* make ci-config
2021-04-26 14:34:11 +01:00
Sam Salisbury 93554f6f38 ci: delete unneeded SSH key import (#1158) 2021-04-26 13:48:42 +01:00
Jeff MitchellandSam Salisbury a90a64d787 Use Go 1.16 native embedding and remove go-bindata (#1151)
Co-authored-by: Sam Salisbury <samsalisbury@gmail.com>
2021-04-20 10:45:05 -04:00
Jim Lambert db29c83daf update all the version bits to 0.2.0 2021-04-13 20:39:05 -04:00
Jeff Mitchell 025f214cad Bump to Go 1.15.11 (#1068)
This has some important fixes, including for a potential SQL transaction
deadlock.
2021-04-05 16:33:51 -04:00
Jeff Mitchell 42ababa9b6 Update versions 2021-03-09 14:15:42 -05:00
Michele Degges a4005b04f3 Remove jfrog references (#969) 2021-02-26 17:03:45 -05:00
Jeff Mitchell bc565922fb Prep for release 2021-02-16 14:16:09 -05:00
Jeff Mitchell 9761f1deee Prep for release 2021-02-12 11:53:32 -05:00
Jeff Mitchell 942fa7bc9c Update to Go 1.15.8 2021-02-05 11:11:56 -05:00
Jeff Mitchell ba6c0df8ca Prep for 0.1.5 2021-01-29 18:36:14 -05:00
Jeff Mitchell f8577519b6 Prep for 0.1.4 2021-01-05 09:26:21 -05:00
Sarah ThompsonandJeff Mitchell 1d3cdbe630 fixing base-image (#837)
* fixing base-image - should be : and not -
running make packages

* make packages

Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
2020-12-18 11:34:29 -05:00
Jeff Mitchell 0614559f80 Prep for 0.1.3 2020-12-17 15:26:59 -05:00
Jeff Mitchell e52db40d1f Run packagespec upgrade 2020-12-17 14:22:19 -05:00
Jeff Escalante 3739427139 Update DocsPage Component (#801)
* wip

* update openapi docs page

* remove old component

* styling fixes

* update dependencies

* fix firefox bug with downloads page logo

* update deps, trim outdated deps, add search

* cleanup and polish

* fix circle shenanigans
2020-12-16 16:43:06 -05:00
Susmitha Girumala 7f1a12ecaa Update ui build to use 'admin' folder instead of 'core' (#792)
* Update ui build to use 'admin' folder instead of 'core'

Post release of v0.1.2, ui/core folder has been renamed to ui/admin.
Update ui build scripts to be aware of the path change.

* Update packagespec to reflect "admin" ui folder change
2020-11-18 16:29:48 -05:00
Jeff Mitchell b6e2e8df65 Bump version in package spec 2020-11-16 15:27:19 -05:00
Jeff Mitchell b895988235 Bump golang version 2020-11-16 15:17:37 -05:00
Sam Salisbury 00c8b757ba Use Docker Mirror + packagespec0.1.8 + go1.15.3 (#762)
* packagespec upgrade -version 0.1.8

* build: use hc mirror for base image

* build: upgrade to go1.15.3
2020-11-05 10:15:18 +00:00
Jeff Mitchell eccd68d73c Run make packages 2020-10-22 12:38:03 -04:00
Sam Salisbury 27abaf7922 changes for after boundary-ui is made public (#671) 2020-10-14 16:54:57 +01:00
Sam Salisbury 6b1ee96245 build: fix injection of PRODUCT_VERSION_PRE 2020-10-13 19:44:09 +01:00
Sam Salisbury 2fd37b8a88 release prep v0.1.0 (#651) 2020-10-13 16:51:56 +01:00
Sam Salisbury ce40b69ffa build: add all platforms (#599) 2020-10-09 22:02:21 +01:00
Sam Salisbury 97c4c86987 build: remove auth for go mod download (#588)
* build: remove auth for go mod download

- Not needed now that all module deps are public.

* mark generated ci config as generated

* build: no GOPRIVATE needed
2020-10-09 20:51:28 +01:00
Sam Salisbury 4d2d4293b1 build: fix go-modules layer (nee "remove meta.POST_PROCESSORS") (#579)
* packagespec: remove meta.POST_PROCESSORS

- This is no longer needed in the spec file, as post-processor
  definitions are now standardized and not project-specific,
  as of Packagespec v0.1.4

* build: include go.{mod,sum} from go submodules
2020-10-08 12:26:22 +01:00
Jeff Mitchell 5b73367529 Update packages 2020-10-02 14:24:54 -04:00
Sam Salisbury 498a840862 Add packagespec CI (#479) 2020-09-28 17:15:28 +01:00
Jeff Mitchell 6661117d4c The name. The name. The name! 2020-08-10 17:15:02 -04:00
Jeff Malnick c3c07f1556 ci: add slack integration for master branch failures (#223) 2020-07-28 09:32:12 -07:00
Jeff Malnick ccb19caf1e test: add ability to run tests in ci as status checks (#219) 2020-07-24 20:37:44 -07:00