Commit Graph

438 Commits (cc0499da3de7e751aae7e0720df72f42e8dbd9f2)

Author SHA1 Message Date
Frank Schroeder 7fede4472d config: document telemetry options
7 years ago
Frank Schroeder 21a7d399bd
config: address review comments
7 years ago
Frank Schroeder cf0a571a76
config: document remaining config options
7 years ago
Frank Schroeder 149ab13a13
config: document more config options
7 years ago
Frank Schroeder a8f709a875
config: document more config options
7 years ago
Frank Schroeder 6c64cf9b5d
config: document more acl options
7 years ago
Frank Schroeder ffb0f6ec8b
config: document config options
7 years ago
Frank Schroeder 70270d6d98
config: document acl options
7 years ago
Frank Schroeder 7f214b1e1c
config: document autopilot options
7 years ago
Frank Schroeder cfc891fc25
config: document dns options
7 years ago
Frank Schroeder d27617c60b
config: document http options
7 years ago
Frank Schroeder 625713dd72
config: document telemetry options
7 years ago
Frank Schroeder 35f4acdddc local state: remove stale comment
7 years ago
Frank Schroeder f9267380db local state: make test more robust
7 years ago
Frank Schroeder af1243c725 local state: clone check to avoid side effect
7 years ago
Frank Schroeder 39a2d8d25e local state: use synchronized access to internal maps
7 years ago
Frank Schroeder bd00814301 ae: do not trigger on Resume while holding the lock
7 years ago
Frank Schroeder c32915bb4f ae: add remaining test cases
7 years ago
Frank Schroeder 8a45365f68 ae: refactor StateSyncer to state machine for better testing
7 years ago
Frank Schroeder 8158cec829 ae: add test that we run a full before a partial sync
7 years ago
Frank Schroeder b9a8b53d52 ae: make control flow more explicit
7 years ago
Frank Schroeder e88f49e2cc ae: fix typo in constructor name
7 years ago
Frank Schroeder cd0262744d ae: add test for resume triggering SyncChanges
7 years ago
Frank Schroeder f5177ef332 ae: add test for ifNotPausedRun
7 years ago
Frank Schroeder 066ad01c38 ae: make stagger function pluggable for testing
7 years ago
Frank Schroeder 126046be23 ae: restore previous pause/resume behavior
7 years ago
Frank Schroeder ffb265dd93 ae: ensure that syncs are blocked when paused
7 years ago
Frank Schroeder 9280841a80 local state: rename Add{Check,Service}State to Set{Check,Service}State
7 years ago
Frank Schroeder 9bc8127728 local state: move Metadata methods together
7 years ago
Frank Schroeder e86521e637 local state: update documentation of updateSyncState
7 years ago
Frank Schroeder 42188164f8 local state: update comments
7 years ago
Frank Schroeder 1d315075b1 local state: address review comments
7 years ago
Frank Schroeder c28e23eac8 local state: refactor TestAgentAntiEntropy_EnableTagOverride
7 years ago
Frank Schroeder 86f7ea6013 local state: fix TestAgentAntiEntropy_EnableTagOverride
7 years ago
Frank Schroeder ff62eaf063 local state: rename tests
7 years ago
Frank Schroeder 2bdba8ab06 local state: drop retry loops from tests
7 years ago
Frank Schroeder ce1f35373e agent: skip non-sensical TestCatalogRegister
7 years ago
Frank Schroeder f8e20cd996 local state: fix anti-entropy state tests
7 years ago
Frank Schroeder e9149f64d9 local state: fix test with updated error message
7 years ago
Frank Schroeder 76682da4a0 local state: fix failing tests
7 years ago
Frank Schroeder 1af52bf7be local state: tests compile
7 years ago
Frank Schroeder ccbae7da5b local state: replace multi-map state with structs
7 years ago
Frank Schroeder d447e823c6 local state: move to separate package
7 years ago
Frank Schroeder b5dbad910c agent: simplify some loops
7 years ago
Frank Schroeder 7a2af206ea agent: refactor sync loop to linear flow of control
7 years ago
Frank Schroeder b7136e100b agent: cleanup StateSyncer
7 years ago
Frank Schroeder a842dc9c2b agent: decouple anti-entropy from local state
7 years ago
Frank Schroeder 1db8d3cb00 config: do not allow an ANY address as DNS recursor
7 years ago
Frank Schroeder 72bee6284d config: add support for go-sockaddr templates for DNS recursors
7 years ago
James Phillips 23d4b24792
Cleans up import sorting.
7 years ago
Hadar Greinsmark 7e1a860978 Implement HTTP Watch handler (#3413)
7 years ago
Frank Schroeder c94751ad43 test: replace porter tool with freeport lib
7 years ago
Frank Schröder 350932161d dns: return NXDOMAIN if datacenter is invalid (#3200) (#3596)
7 years ago
Frank Schroeder 8a9c81ed85
config: do not allow an ANY address as DNS recursor
7 years ago
Frank Schroeder 0a0d6af04d
config: add support for go-sockaddr templates for DNS recursors
7 years ago
James Phillips 53f67c3993 Fixes API client for ScriptArgs and updates documentation. (#3589)
7 years ago
Ryan Slade 85e4aea9d1 Replace time.Now().Sub(x) with time.Since(x)
7 years ago
James Phillips f25c66dfd9 Fixes an XSS issue with unescaped node names. (#3578)
7 years ago
James Phillips c943b1b151 Adds a brief wait and poll period to update check status after a timeout. (#3573)
7 years ago
James Phillips 575d70aaa7
Cleans up some drift between the OSS and Enterprise trees.
7 years ago
Kyle Havlovitz 106b8b0b33 Kill check processes after the timeout is reached (#3567)
7 years ago
Frank Schroeder 6780964eb8
config: remove redundant code
7 years ago
Frank Schroeder 0faff32c73
config: fix check for segment.port <= 0 and add test
7 years ago
James Phillips 16eb2ef014
Adds check to make sure port is given so we avoid a nil bind address.
7 years ago
James Phillips e6c50f4a71
Removes obsolete segment stub.
7 years ago
Frank Schröder 94f58199b1 agent: add option to discard health output (#3562)
7 years ago
preetapan 77c972f594 Fixes agent error handling when check definition is invalid. Distingu… (#3560)
7 years ago
Frank Schröder 759ef8a1d4 config: add generic method to translate between CamelCase and snake_case (#3557)
7 years ago
James Phillips bb12368eac Makes RPC handling more robust when rolling servers. (#3561)
7 years ago
Preetha Appan e7dc345cfa Fix unit test after dns library upgrade to account for correct data length
7 years ago
James Phillips 4dab70cb93 Fixes handling of stop channel and failed barrier attempts. (#3546)
7 years ago
Victor Boivie 8e361beb7a Minor typo (boostrap)
7 years ago
James Phillips 3bc6df5f0e
Adds script warning and fixes Docker args recognition.
7 years ago
Kyle Havlovitz adf29675f3 Merge pull request #3535 from hashicorp/metric-docs
7 years ago
Kyle Havlovitz a3e9ac5840
Add a test for legacy metrics with a whitelist filter
7 years ago
Kyle Havlovitz 198ed6076d Clean up subprocess handling and make shell use optional (#3509)
7 years ago
Kyle Havlovitz c728564994
Update metric names and add a legacy config flag
7 years ago
Frank Schröder ce887a0c45 Provide stable config for agent/self (#3532)
7 years ago
James Phillips 4f2dccc2a9 Merge pull request #3531 from hashicorp/pr-3521-slackpad
7 years ago
James Phillips b34d576193
Updates checked in web assets to pick up CSS change.
7 years ago
Preetha Appan 8dcd7e700c Remove extra newline
7 years ago
Preetha Appan 26accb3b8a Only allow 'list' policies within 'key' policy definitions. Consolidated two similar tests into one and fixed alignment.
7 years ago
Preetha Appan 51a04ec87d Introduces new 'list' permission that applies to KV store recursive reads, and enforced only when opted in.
7 years ago
Frank Schroeder 1944218492 use ports from derived addresses
7 years ago
Frank Schroeder 42f8ff7b3c config: drop advertise_addrs
7 years ago
Frank Schroeder abe41d231c
Fix tests after config refactor
7 years ago
Patrick Sodré 7501331d13
Implement encodeKVasRFC1464 function
7 years ago
Patrick Sodré 2cc6ac542c
Add RFC1464 tests
7 years ago
Patrick Sodré 865f087ec9
Turn encodeKVasRFC1464 into a plain function
7 years ago
Patrick Sodré 12fb0bfd5b
Use verify for NodeLookup CNAME, and TXT tests
7 years ago
Patrick Sodré d5e3b9d843
Refactor formatTxtRecords as encodeKVasRFC1464
7 years ago
Patrick Sodré 655c89ee10
Fix editorial suggestions
7 years ago
Patrick Sodré afb0c92334
Remove redundant check of Node.Meta size
7 years ago
Patrick Sodré 53e812e759
Return Node.Meta info using the DNS interface
7 years ago
Patrick Sodré ab90865865
Add test for NoteLookup ANY request
7 years ago
Patrick Sodré 4c6b8022c2
Add test for querying Node.Meta with DNS TXT
7 years ago
Frank Schröder 07dea89f31 fail early when advertise addr is set to ANY (#3507)
7 years ago
Frank Schröder 9a67556bb5 only detect advertise address if derived value is any (#3506)
7 years ago
James Phillips 98850322c0
Adds a comment about Datacenter and NodeName being stable interfaces
7 years ago
Frank Schröder 21118cafeb Recursive sanitize (#3505)
7 years ago
James Phillips 0190c4a081
Gets rid of flaky clause in stats fetcher unit test.
7 years ago
preetapan 4d9fc638b4 Issue 3452 (#3500)
7 years ago
Frank Schröder e84c2b2edd Metrics service prefix (#3498)
7 years ago
James Phillips 49058fee11 Merge pull request #3501 from hashicorp/snapshot-test-hang
7 years ago
James Phillips 5fa2322e0b
Cleans up some edge cases in TestSnapshot_Forward_Leader.
7 years ago
Kyle Havlovitz bfa70a10ca Fix watch error when http & https are disabled (#3493)
7 years ago
Preetha Appan 3c4a108769 Move Raft protocol version for list peers end point to server side, fix unit tests. This fixes #3449
7 years ago
Frank Schroeder 56e6439be9
fix data race
7 years ago
Frank Schroeder 7bd85792b2 config: do not clobber multiple check and service definitions
7 years ago
James Phillips a75a779469
Renames `enable_ui` to `ui` to keep compatibility with existing configs.
7 years ago
Frank Schröder 1e461110e6 agent: consolidate handling of 405 Method Not Allowed (#3405)
7 years ago
preetapan 73951d8319 Merge pull request #3494 from hashicorp/enforce_json_extension
7 years ago
James Phillips 45646ac3f4 Bumps default Raft protocol to version 3. (#3477)
7 years ago
Preetha Appan a286ad7533 Enforce json or hcl extension to Consul config files, updated unit tests
7 years ago
James Phillips f42e85ce22
Removes unused imports in agent_test.go.
7 years ago
Preetha Appan d7e27e67c1 Introduce Code Policy validation via sentinel, with a noop implementation
7 years ago
Frank Schröder 12216583a1 New config parser, HCL support, multiple bind addrs (#3480)
7 years ago
James Phillips d84c0b1a01
Robustifies check in TestCatalog_ListNodes_ConsistentRead_Fail test.
7 years ago
James Phillips 828be5771a
Revert "Manages segments list via a pointer."
7 years ago
James Phillips c277a42504
Manages segments list via a pointer.
7 years ago
James Phillips 96a89a3381
Cleans up formatting.
7 years ago
James Phillips 00605c0214
Shows the segment name in the keyring API and command output.
7 years ago
James Phillips aa5ef4a098
Populates the segment keyrings based on the LAN keyring.
7 years ago
James Phillips 88a150cee1
Moves reconcile loop into segment stub.
7 years ago
James Phillips 5c03cb571d
Takes the skip out of the client check.
7 years ago
James Phillips 3418c7ff93 Merge pull request #3447 from hashicorp/issue-3070
7 years ago
James Phillips 520060e138
Fixes incorrect comment.
7 years ago
James Phillips 084679ab65
Pulls down some code for the check loop.
7 years ago
James Phillips 3535652595
Uses the Raft configuration for the self-add skip check.
7 years ago
Preetha Appan 5f2e1c9b07 Change member join reconcile step to process joining itself, to handle node IP address changes correctly when number of servers < 3
7 years ago
James Phillips 1333fa57a1
Skips unique node ID check for old versions of Consul.
7 years ago
James Phillips 67b19ac065
Allow _all for WAN as a no-op.
7 years ago
James Phillips 1a117ba0a8
Makes the all segments query explict, and the default for `consul members`.
7 years ago
James Phillips 9258506dab Adds simple rate limiting for client agent RPC calls to Consul servers. (#3440)
7 years ago
Kyle Havlovitz 220db48aa7 Merge pull request #3431 from hashicorp/network-segments-oss
7 years ago
Kyle Havlovitz 0e33e2ecab
Pass listeners into setupSegments
7 years ago
Kyle Havlovitz 62102a537e
Organize segments for a cleaner split between enterprise and OSS
7 years ago
Kyle Havlovitz baa501e0c5
Fill in the segment in the QuerySource for prepared query lookups
7 years ago
Kyle Havlovitz 7e565d7338
Fix some inconsistencies with segment logic and comments
7 years ago
Kyle Havlovitz 16aaf27208
Default bind/advertise for segments to BindAddr/AdvertiseAddr
7 years ago
Preetha Appan 2386214655 Wire server provider for raft layer only on protocol version 3 and above, and update changelog
7 years ago
Kyle Havlovitz 21513b0393
Update coord display in ui to account for segments
7 years ago
Kyle Havlovitz 14b027a3c2
Add segment addr field to tags for LAN flood joiner
7 years ago
Kyle Havlovitz d129767657
Add agent.segment interpolation to prepared queries
7 years ago
Kyle Havlovitz 2ada0439d4
Add rpc_listener option to segment config
7 years ago
Kyle Havlovitz a30e7657af
Add segment config validation
7 years ago
James Phillips b1a15e0c3d
Adds open source side of network segments (feature is Enterprise-only).
7 years ago
Preetha Appan a231eea0e7 More cleanup from code review
7 years ago
Preetha Appan c6ee9bfa69 Remove copy pasted duplicate line, update documentation.
7 years ago
Preetha Appan 0f4e24f72c Consolidate server lookup into one place and replace usages of localConsuls.
7 years ago