Daniel Nephin
606121fae6
stream.EventSnapshot: reduce the fields on the struct
...
Many of the fields are only needed in one place, and by using a closure
they can be removed from the struct. This reduces the scope of the variables
making it esier to see how they are used.
2020-07-14 15:57:45 -04:00
Daniel Nephin
7196917051
stream.EventBuffer: Seed the fuzz test with time.Now()
...
Otherwise the test will run with exactly the same values each time.
By printing the seed we can attempt to reproduce the test by adding an env var to override the seed
2020-07-14 15:57:45 -04:00
Daniel Nephin
525b275a52
state: memdb_wrapper.go -> memdb.go
...
Renaming in a separate commit so that git can merge changes to the file.
2020-07-14 15:57:45 -04:00
Daniel Nephin
b5d2bea770
state: publish changes from Commit
...
Make topicRegistry use functions instead of unbound methods
Use a regular memDB in EventPublisher to remove a reference cycle
Removes the need for EventPublisher to use a store
2020-07-14 15:57:45 -04:00
Daniel Nephin
f626c3d6c5
EventPublisher: docstrings and getTopicBuffer
...
also rename commitCh -> publishCh
2020-07-14 15:57:45 -04:00
Daniel Nephin
2020e9c7c7
ProcessChanges: use stream.Event
...
Also remove secretHash, which was used to hash tokens. We don't expose
these tokens anywhere, so we can use the string itself instead of a
Hash.
Fix acl_events_test.go for storing a structs type.
2020-07-14 15:57:45 -04:00
Daniel Nephin
2e45bbbb3e
stream: Use local types for Event Topic SubscriptionRequest
2020-07-14 15:57:45 -04:00
Daniel Nephin
3d62013062
Rename stream_publisher.go -> event_publisher.go
2020-07-14 15:57:44 -04:00
Daniel Nephin
526fb53f85
Add streaming package with Subscription and Snapshot components.
...
The remaining files from 7965767de0bd62ab07669b85d6879bd5f815d157
Co-authored-by: Paul Banks <banks@banksco.de>
2020-07-14 15:57:44 -04:00
Alvin Huang
b478b09312
remove GIT_DESCRIBE variable since we have a revision line ( #8310 )
2020-07-14 15:17:45 -04:00
John Cowen
2c8cae6786
ui: Make sure the intention create form has a cancel button ( #8308 )
2020-07-14 18:44:00 +01:00
Matt Keeler
adf53f5113
Add ability for notifications when one of the agent tokens is updated ( #8301 )
...
Co-authored-by: Chris Piraino <cpiraino@hashicorp.com>
2020-07-14 09:53:55 -04:00
John Cowen
cda90556e5
ui: Only try and load sessions and coordinates if the node exists ( #8305 )
2020-07-14 14:50:44 +01:00
R.B. Boyer
4b458955c2
update changelog
2020-07-13 15:46:20 -05:00
Hans Hasselberg
0c39b2c820
add support for envoy 1.14.4, 1.13.4, 1.12.6 ( #8216 )
2020-07-13 15:44:44 -05:00
Chris Piraino
b80cbb499f
Set enterprise metadata after resolving the token ( #8302 )
...
The token can encode enterprise metadata information, and we must make
sure we set that on the reply so that we can correct filter ACLs.
2020-07-13 13:39:57 -05:00
John Cowen
ea9701dbd5
ui: Replaces old request method with rpc. ( #8298 )
...
`rpc` is used to define how to make a HTTP request/response messages.
This used to be called 'request' but the term is overused and sounded
like only one leg of the message, so the naming was moved to `rpc` a
while ago, this cleans up the places where we still used the old term.
2020-07-13 14:23:15 +01:00
John Cowen
fa524b9edb
ui: Move dc sorting to the view/template ( #8297 )
...
* ui: Move dc sorting to the view/template
* Cleanup unused coordinates service from Node repo
* Fix up integration test to not expect a sorted result
2020-07-13 14:22:58 +01:00
John Cowen
73a6afc880
ui: Ensure any colons in headers aren't split out ( #8293 )
2020-07-13 14:22:15 +01:00
Daniel Nephin
979a3d2844
watch: Allow args from different types
...
Fixes a bug where specifying a slice of args with a single item was being converted to
a string when config was loaded, causing an error.
2020-07-10 17:18:32 -04:00
Freddy
a30c10a18c
Add api mod support for /catalog/gateway-services ( #8278 )
2020-07-10 13:01:45 -06:00
Chris Piraino
51f71d43ab
docs: add section for /health/ingress/:service API ( #8108 )
...
* docs: add section for /health/ingress/:service API
* Add documentation around consul version for API
* docs: add note about gateway-services API release version
2020-07-10 12:36:46 -05:00
Daniel Nephin
90acc6a920
watch: extract makeWatchPlan to facilitate testing
...
There is a bug in here now that slices in opaque config are unsliced. But to test that bug fix we
need a function that can be easily tested.
2020-07-10 13:33:45 -04:00
John Cowen
1e5212b257
ui: Revert ember-composable-helpers to ~4.0.0 due to faster sort-by ( #8289 )
2020-07-10 17:38:50 +01:00
Matt Keeler
b4a5a68525
Update CHANGELOG.md
2020-07-10 10:07:32 -04:00
Matt Keeler
c9ccbab65a
Merge pull request #8268 from hashicorp/feature/improved-version-output
...
Add Revision to version CLI output and add JSON support
2020-07-10 10:01:57 -04:00
John Cowen
12d8660572
ui: Adds definition-table class to RTT values table ( #8286 )
...
We changed our default definition list layout in
https://github.com/hashicorp/consul/pull/8117 .
We replaced the default with a definition-table class but missed one
place where the old default was previously used.
This adds the definition-table class in RTT where it used to use the
default.
2020-07-10 14:27:02 +01:00
John Cowen
e39da2fc14
ui: Lint staged no longer requires git add to be specified ( #8285 )
2020-07-10 14:25:59 +01:00
Warren
b8aed05a17
Small typo in docstring ( #8280 )
2020-07-09 17:38:50 -06:00
R.B. Boyer
17df2bf713
update changelog
2020-07-09 17:13:22 -05:00
R.B. Boyer
6e3d07c995
xds: version sniff envoy and switch regular expressions from 'regex' to 'safe_regex' on newer envoy versions ( #8222 )
...
- cut down on extra node metadata transmission
- split the golden file generation to compare all envoy version
2020-07-09 17:04:51 -05:00
Daniel Nephin
43cd6e91d1
Merge pull request #8231 from hashicorp/dnephin/unembed-HTTPServer-Server
...
agent/http: un-embed the http.Server
2020-07-09 17:42:33 -04:00
Daniel Nephin
b80a0e0def
agent/http: Update TestSetupHTTPServer_HTTP2
...
To remove the need to store the http.Server. This will allow us to
remove the http.Server field from the HTTPServer struct.
2020-07-09 16:42:19 -04:00
Daniel Nephin
13e0d258b5
Merge pull request #8237 from hashicorp/dnephin/remove-acls-enabled-from-delegate
...
Remove ACLsEnabled from delegate interface
2020-07-09 16:35:43 -04:00
Jeff Escalante
51f2a6e5b7
remove extra dependencies
2020-07-09 14:56:22 -04:00
Daniel Nephin
fe59cff384
Merge pull request #8270 from hashicorp/dnephin/oss-store-jsonfile
...
ci: Store a jsonfile for go-test and go-test-api
2020-07-09 14:17:51 -04:00
John Cowen
4a33c6a3d4
ui: Dependency upgrade ( #8276 )
...
* Remove curly brackets and pass through attributes
* yarn upgrade and part manual deps upgrade of non-problematic things
* from-entries from ember-composable helpers receives an array
* PowerSelect destruction bug seems to be fixed upstream
* Ensure all policies have a default 0 date for ember-c-h upgrade
sorting no longer works correctly unless CreateTime has a value
2020-07-09 17:13:41 +01:00
Matt Keeler
b4795ec543
Merge pull request #8253 from hashicorp/feature/auto-config/rpc-delegate
2020-07-09 10:24:11 -04:00
John Cowen
7417aea972
ui: Use top-level 'named index files' instead of in folder index files ( #8274 )
...
* Remove unused phrase-editor CSS
* Move index.scss files to top-level named files to make them more obvious
2020-07-09 14:51:08 +01:00
John Cowen
60533647a4
ui: Replace dom-buffering components with ember-stargate Portals ( #8273 )
...
* ui: Replace dom-buffering components with ember-stargate Portals
2020-07-09 14:30:17 +01:00
John Cowen
84dc2954bd
ui: Extract and organize popover-menu and related from main-nav ( #8272 )
2020-07-09 14:26:52 +01:00
John Cowen
5b4c3057a5
ui: Enable keyboard access for the sorting dropdown menus ( #8267 )
2020-07-09 13:41:34 +01:00
John Cowen
239d42ebd3
ui: New Intention Form/List components ( #8172 )
2020-07-09 10:08:47 +01:00
Daniel Nephin
d013999e52
ci: Store a jsonfile
2020-07-08 19:45:27 -04:00
Sabeen Syed
65768f6516
docs: Add Audit Logging page under Consul Enterprise
2020-07-08 18:16:12 -05:00
Jeff Escalante
7d590e62c5
update deps, format all files
2020-07-08 19:12:34 -04:00
Jeff Escalante
734beb069a
update and hard-pin dependencies
2020-07-08 18:44:34 -04:00
Matt Keeler
ca169ef6ed
Add Revision to version CLI output and add JSON support
...
Also add JSON format support
2020-07-08 16:32:46 -04:00
Matt Keeler
39d9babab3
Pass the Config and TLS Configurator into the AutoConfig constructor
...
This is instead of having the AutoConfigBackend interface provide functions for retrieving them.
NOTE: the config is not reloadable. For now this is fine as we don’t look at any reloadable fields. If that changes then we should provide a way to make it reloadable.
2020-07-08 12:36:11 -04:00
Matt Keeler
a77ed471c8
Rename (*Server).forward to (*Server).ForwardRPC
...
Also get rid of the preexisting shim in server.go that existed before to have this name just call the unexported one.
2020-07-08 11:05:44 -04:00