Commit Graph

1080 Commits (8a12d803fd79eee5ce2192497f60b8ca2fa7c594)

Author SHA1 Message Date
Paul Banks 382ce8f98a Only set precedence on write path
7 years ago
Paul Banks 4a54f8f7e3 Fix some tests failures caused by the sorting change and some cuased by previous UpdatePrecedence() change
7 years ago
Paul Banks bf7a62e0e0 Sort intention list by precedence
7 years ago
Mitchell Hashimoto 181fbcc9b9 agent: intention update/delete responess match ACL/KV behavior
7 years ago
Mitchell Hashimoto 3c17144fb5 agent/structs: JSON marshal the configuration for a managed proxy
7 years ago
Mitchell Hashimoto e9e6514c9b agent: disallow deregistering a managed proxy directly
7 years ago
Mitchell Hashimoto 66a573e496 agent: deregister service deregisters the proxy along with it
7 years ago
Mitchell Hashimoto a82726f0b8 agent: RemoveProxy also removes the proxy service
7 years ago
Mitchell Hashimoto e2653bec02 Fix broken tests from PR merge related to proxy secure defaults
7 years ago
Mitchell Hashimoto cf9b377c78 agent/cache: always fetch with minimum index of 1 at least
7 years ago
Mitchell Hashimoto 6a438c25d0 agent/proxy: remove debug println
7 years ago
Mitchell Hashimoto 0d6dcbd2f1 agent: disallow API registration with managed proxy if not enabled
7 years ago
Mitchell Hashimoto f7fc026e18 agent/config: AllowManagedAPIRegistration
7 years ago
Mitchell Hashimoto ed98d65c2b agent/proxy: AllowRoot to disable executing managed proxies when root
7 years ago
Mitchell Hashimoto 5ae32837f7 agent/proxy: set the proper arguments so we only run the helper process
7 years ago
Mitchell Hashimoto 4897ca6545 agent/config: add AllowManagedRoot
7 years ago
Kyle Havlovitz 82a4b3c13f connect: fix two CA tests that were broken in a previous PR (#60)
7 years ago
Paul Banks 41a29a469e Fix roots race with CA setup hammering bug and defensive nil check hit during obscure upgrade scenario
7 years ago
Kyle Havlovitz aafa3ca64a agent: format all CA config fields
7 years ago
Kyle Havlovitz edbeeeb23c agent: update accepted CA config fields and defaults
7 years ago
Mitchell Hashimoto 316bdbe010 agent/proxy: fix build on Windows
7 years ago
Paul Banks 0824d1df5f Misc comment cleanups
7 years ago
Paul Banks e57aa52ca6 Warn about killing proxies in dev mode
7 years ago
Mitchell Hashimoto 028aa78e83 agent/consul: set precedence value on struct itself
7 years ago
Mitchell Hashimoto 927b45bf91 agent/config: move ports to `ports` structure, update docs
7 years ago
Paul Banks d1c67d90bc Fixs a few issues that stopped this working in real life but not caught by tests:
7 years ago
Paul Banks 85d6502ab3 Don't kill proxies on agent shutdown; backport manager close fix
7 years ago
Paul Banks b2ff583392 Test for adopted process Stop race and fix
7 years ago
Mitchell Hashimoto 62d4aaa33e agent: accept connect param for execute
7 years ago
Mitchell Hashimoto daf46c9cfa agent/consul: support a Connect option on prepared query request
7 years ago
Mitchell Hashimoto 440b1b2d97 agent/consul: prepared query supports "Connect" field
7 years ago
Mitchell Hashimoto 8bcadddda7 agent: intention create returns 500 for bad body
7 years ago
Mitchell Hashimoto 1830c6b308 agent: switch ConnectNative to an embedded struct
7 years ago
Paul Banks df2cb30b01 Make tests pass and clean proxy persistence. No detached child changes yet.
7 years ago
Paul Banks cdc7cfaa36 Abandon daemonize for simpler solution (preserving history):
7 years ago
Paul Banks a2fe604191 WIP
7 years ago
Paul Banks 8cf4b3a6eb Sanity check that we are never trying to self-exec a test binary. Add daemonize bypass for TestAgent so that we don't have to jump through ridiculous self-execution hooks for every package that might possibly invoke a managed proxy
7 years ago
Mitchell Hashimoto 827b671d4a agent/proxy: Manager.Close also has to stop all proxy watchers
7 years ago
Paul Banks ef9c40643e Fix import tooling fail
7 years ago
Paul Banks ba0fb58a72 Make daemoinze an option on test binary without hacks. Misc fixes for racey or broken tests. Still failing on several though.
7 years ago
Paul Banks 2b377dc624 Run daemon processes as a detached child.
7 years ago
Paul Banks e21723a891 Persist proxy state through agent restart
7 years ago
Mitchell Hashimoto eb3fcb39b3 agent/consul/state: support querying by Connect native
7 years ago
Mitchell Hashimoto 6b745964c4 agent/cache: update comment from PR review to clarify
7 years ago
Mitchell Hashimoto 424272361d agent: agent service registration supports Connect native services
7 years ago
Mitchell Hashimoto d6a823ad0d agent/consul: support catalog registration with Connect native
7 years ago
Mitchell Hashimoto d609ad216b agent/cache: update comments
7 years ago
Mitchell Hashimoto 839d3c323d agent/cache: correct test name
7 years ago
Mitchell Hashimoto 45e49f31de agent/cache: change behavior to return error rather than retry
7 years ago
Mitchell Hashimoto 311d503fb0 agent/cache: perform backoffs on error retries on blocking queries
7 years ago
Matt Keeler 3afa4f9c7e
Merge pull request #4234 from hashicorp/feature/default-new-ui
7 years ago
Matt Keeler af910bda39
Merge pull request #4216 from hashicorp/rpc-limiting
7 years ago
Matt Keeler 0d4e8676d1
Merge pull request #4215 from hashicorp/feature/config-node-meta-dns-txt
7 years ago
Matt Keeler 7f7c703118 Update the runtime tests
7 years ago
Matt Keeler 8216816e3f Make filtering out TXT RRs only apply when they would end up in Additional section
7 years ago
Matt Keeler 197e2f69d5 Switch over to defaulting to the new UI
7 years ago
Kyle Havlovitz ab4a9a94f4
Re-use uint8ToString
7 years ago
Kyle Havlovitz 5683d628c4
Support giving the duration as a string in CA config
7 years ago
Mitchell Hashimoto eb2a6952ba
address comment feedback
7 years ago
Mitchell Hashimoto cd39f09693
agent: leaf endpoint accepts name, not service ID
7 years ago
Mitchell Hashimoto 1906fe1c0d
agent: address feedback
7 years ago
Mitchell Hashimoto 0accfc1628
agent: rename test to check
7 years ago
Mitchell Hashimoto d1c21a8629
agent: implement HTTP endpoint
7 years ago
Mitchell Hashimoto 2a29679e9d
agent/consul: forward request if necessary
7 years ago
Mitchell Hashimoto 54ac5adb08
agent: comments to point to differing logic
7 years ago
Mitchell Hashimoto d68462fca6
agent/consul: implement Intention.Test endpoint
7 years ago
Paul Banks a80559e439
Make invalid clusterID be fatal
7 years ago
Paul Banks 140f3f5a44
Fix logical conflicts with CA refactor
7 years ago
Paul Banks c58d47ba59
Fix broken api test for service Meta (logical conflict rom OSS). Add test that would make this much easier to catch in future.
7 years ago
Paul Banks f4b8e8c96d
Add default CA config back - I didn't add it and causes nil panics
7 years ago
Paul Banks 1228a5839a
Ooops remove the CA stuff from actual server defaults and make it test server only
7 years ago
Paul Banks 4aeab3897c
Fixed many tests after rebase. Some still failing and seem unrelated to any connect changes.
7 years ago
Paul Banks bc07ff4983
Comment cleanup
7 years ago
Paul Banks 1722734313
Verify trust domain on /authorize calls
7 years ago
Paul Banks b4803eca59
Generate CSR using real trust-domain
7 years ago
Paul Banks 622a475eb1
Add CSR signing verification of service ACL, trust domain and datacenter.
7 years ago
Paul Banks c1f2025d96
Return TrustDomain from CARoots RPC
7 years ago
Kyle Havlovitz e00088e8ee
Rename some of the CA structs/files
7 years ago
Kyle Havlovitz 6e9f1f8acb
Add more metadata to structs.CARoot
7 years ago
Kyle Havlovitz 627aa80d5a
Use provider state table for a global serial index
7 years ago
Kyle Havlovitz 988510f53c
Add test for ca config http endpoint
7 years ago
Kyle Havlovitz de72834b8c
Move connect CA provider to separate package
7 years ago
Mitchell Hashimoto 4f3b5647e5
agent/cache: change uint8 to uint
7 years ago
Mitchell Hashimoto fc5508f8a3
agent/cache: string through attempt rather than storing on the entry
7 years ago
Mitchell Hashimoto cfcd733609
agent/cache: implement refresh backoff
7 years ago
Mitchell Hashimoto bc605a1576
agent/consul: change provider wait from goto to a loop
7 years ago
Mitchell Hashimoto c8b65217c3
agent/consul: check nil on getCAProvider result
7 years ago
Mitchell Hashimoto 9b3495dddb
agent/consul: retry reading provider a few times
7 years ago
Mitchell Hashimoto e54e69d11f
agent: verify local proxy tokens for CA leaf + tests
7 years ago
Mitchell Hashimoto a099c27b07
agent: verify proxy token for ProxyConfig endpoint + tests
7 years ago
Mitchell Hashimoto 6e386ba6be
agent/proxy: pass proxy ID as an env var
7 years ago
Mitchell Hashimoto 37dde6d64a
agent/config: add managed proxy upstreams config to skip
7 years ago
Mitchell Hashimoto 965a902474
agent/structs: validate service definitions, port required for proxy
7 years ago
Mitchell Hashimoto 9a62bce03b
agent/config: default connect enabled in dev mode
7 years ago
Paul Banks d13be6b952
Make CSR work with jank domain
7 years ago
Mitchell Hashimoto de3f49a880
agent/proxy: delete pid file on Stop
7 years ago
Mitchell Hashimoto aaca1fbcf5
agent: increase timer for blocking cache endpoints
7 years ago
Mitchell Hashimoto b4ba31c61b
agent/proxy: address PR feedback
7 years ago
Mitchell Hashimoto f5e7993249
agent: clarify why we Kill still
7 years ago
Mitchell Hashimoto 2809203408
agent: restore proxy snapshot but still Kill proxies
7 years ago