Files
vault/command
Clint 0e7604ca50 Vault Agent Template follow-ups (#7739)
* Vault Agent Template: parse templates  (#7540)

* add template config parsing, but it's wrong b/c it's not using mapstructure

* parsing consul templates in agent config

* add additional test to configuration parsing, to cover basics

* another test fixture, rework simple test into table

* refactor into table test

* rename test

* remove flattenKeys and add other test fixture

* Update command/agent/config/config.go

Co-Authored-By: Jim Kalafut <jkalafut@hashicorp.com>

* return the decode error instead of swallowing it

* Update command/agent/config/config_test.go

Co-Authored-By: Jim Kalafut <jkalafut@hashicorp.com>

* go mod tidy

* change error checking style

* Add agent template doc

* TemplateServer: render secrets with Consul Template (#7621)

* add template config parsing, but it's wrong b/c it's not using mapstructure

* parsing consul templates in agent config

* add additional test to configuration parsing, to cover basics

* another test fixture, rework simple test into table

* refactor into table test

* rename test

* remove flattenKeys and add other test fixture

* add template package

* WIP: add runner

* fix panic, actually copy templates, etc

* rework how the config.Vault is created and enable reading from the environment

* this was supposed to be a part of the prior commit

* move/add methods to testhelpers for converting some values to pointers

* use new methods in testhelpers

* add an unblock channel to block agent until a template has been rendered

* add note

* unblock if there are no templates

* cleanups

* go mod tidy

* remove dead code

* simple test to starT

* add simple, empty templates test

* Update package doc, error logs, and add missing close() on channel

* update code comment to be clear what I'm referring to

* have template.NewServer return a (<- chan) type, even though it's a normal chan, as a better practice to enforce reading only

* Update command/agent.go

Co-Authored-By: Jim Kalafut <jkalafut@hashicorp.com>

* update with test

* Add README and doc.go to the command/agent directory (#7503)

* Add README and doc.go to the command/agent directory

* Add link to website

* address feedback for agent.go

* updated with feedback from Calvin

* Rework template.Server to export the unblock channel, and remove it from the NewServer function

* apply feedback from Nick

* fix/restructure rendering test

* Add pointerutil package for converting types to their pointers

* Remove pointer helper methods; use sdk/helper/pointerutil instead

* update newRunnerConfig to use pointerutil and empty strings

* only wait for unblock if template server is initialized

* update test structure

* some test cleanup

* follow up tests

* remove debugging, fix issue in replacing runner config

* need to handle first render/token

* Simplify the blocking logic to support exit after auth

* fix channel name

* expand TestAgent_Template to include multiple scenarios

* cleanup

* test cleanups after feedback
2019-11-11 17:27:23 -06:00
..
2019-11-07 08:54:34 -08:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:28:06 -04:00
2019-03-25 10:56:04 -07:00
2017-10-24 09:30:47 -04:00
2019-11-07 08:54:34 -08:00
2017-10-24 09:28:06 -04:00
2019-02-14 11:54:47 -08:00
2019-10-15 15:39:19 -07:00
2019-10-15 15:39:19 -07:00
2018-10-22 23:34:02 -07:00
2018-02-12 18:12:16 -05:00
2018-07-12 10:18:50 -04:00
2017-10-24 09:30:47 -04:00
2018-02-12 18:12:16 -05:00
2019-09-26 08:46:41 -04:00
2019-07-05 13:36:44 -07:00
2018-08-27 12:02:57 -04:00
2018-08-27 12:02:57 -04:00
2018-08-24 12:09:03 -04:00
2018-08-22 14:37:40 -04:00
2019-06-20 21:32:00 -04:00
2019-04-12 18:12:13 -04:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:39:34 -04:00
2018-11-06 17:21:24 -08:00
2017-10-24 09:30:48 -04:00
2018-09-17 23:03:00 -04:00
2017-10-24 09:30:48 -04:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:48 -04:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:48 -04:00
2018-08-14 14:20:49 -04:00
2017-10-24 09:39:34 -04:00
2018-02-12 18:12:16 -05:00
2018-02-12 18:12:16 -05:00
2018-02-12 18:12:16 -05:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:30:47 -04:00
2018-03-20 14:54:10 -04:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:48 -04:00
2018-04-04 04:41:46 -04:00