Commit Graph

1575 Commits (b523a01ac1c75bf28c70bf20835fc4ed85eb59f0)

Author SHA1 Message Date
Frank Schroeder d7e23857ad golint: No stutter
8 years ago
Frank Schroeder cf3ec1cf5c golint: Rename fields and structs
8 years ago
Frank Schroeder 5a3961f31f golint: Replace a += 1 with a++
8 years ago
Frank Schroeder 6688a510e1 golint: Consistent receiver name
8 years ago
Frank Schroeder 8bb7792799 golint: Drop the unused value from range
8 years ago
Frank Schroeder eddb1af603 Remove duplicate constants
8 years ago
Frank Schroeder ee5b06a231 Use fmt.Fprint/Fprintf/Fprintln
8 years ago
Kyle Havlovitz f25cac4c8f Show raft protocol in list-peers command (#2929)
8 years ago
Kyle Havlovitz 29a4a42f17
Fix help text on client cert/key options
8 years ago
mckennajones a489f2b734
Added check to see if ui and ui-dir flags are both specified
8 years ago
Kyle Havlovitz b1d98522ee
Fix help text for -ca-path
8 years ago
Kyle Havlovitz ae6bf56ee1
Add tls client options to api/cli
8 years ago
James Phillips fb089e2bbb Merge pull request #2842 from vaLski/supress_sigpipe_logging
8 years ago
James Phillips 4de270326e
Updates static assets to pick up #2899.
8 years ago
James Phillips 2843da5cd9 Merge pull request #2904 from hashicorp/non-host-id
8 years ago
James Phillips fa04c24978
Adds a new -disable-host-node-id option to help when testing with containers.
8 years ago
Ralph Caraveo 7ab576891e Ensure to exit with a non-zero status code when a timeout occurs and we don't complete all the jobs.
8 years ago
Ralph Caraveo 87f1a1a3ee Fixed spelling for consul kv get command --help comments.
8 years ago
Alex Dadgar 7f6d95f1c9 Hash host ID so its stable and well distributed
8 years ago
James Phillips 86870ae51d Merge pull request #2854 from hashicorp/remote-exec
8 years ago
Kyle Havlovitz da9c825592
Add CLI/API endpoints for removing peer by ID
8 years ago
James Phillips 7e2dcb61bf
Changes `disable_remote_exec` default to true so remote exec is opt-in.
8 years ago
James Phillips 11ee9a9e72
Disables agent-level enforcement on Consul agents unless acl_datacenter is set.
8 years ago
vaLentin chernoZemski 1e5163d241 Supress signal logging on SIGPIPE. Should address #2768
8 years ago
James Phillips 59a599a14b
Cleans up a stray mark and fixes unit tests.
8 years ago
James Phillips 7ce7d157da
Fixes up some broken unit tests.
8 years ago
James Phillips 8940d1c3fe
Keeps the service and check tokens around for deregistration.
8 years ago
James Phillips 4d3f3ea8d2
Changes verson 8 ACLs to opt-out.
8 years ago
Seth Vargo 0170a28ec9
Use new APIs
8 years ago
Seth Vargo 4622ac634b
Re-add RPC parsing
8 years ago
James Phillips 00a5fc2947
Renames some operator unit tests.
8 years ago
Kyle Havlovitz 390f41d8d5
Add advanced autopilot features
8 years ago
James Phillips 3b3cb0d07b Merge pull request #2801 from hashicorp/spoken-hub-oss
8 years ago
James Phillips 2696dd52b8
Updates to latest built-in static assets.
8 years ago
James Phillips a8ee32cbdd
Fixes RTT command to only compare coordinates in the same area.
8 years ago
James Phillips 1091c7314e
Removes remoteConsuls in favor of the new router.
8 years ago
Kyle Havlovitz 09e2663d10 Merge pull request #2802 from hashicorp/f-autopilot-improvements
8 years ago
Kyle Havlovitz 5353221666
Reorganized cluster health check loop and logic
8 years ago
Kyle Havlovitz 51b11cd344
Fix an issue with changing server IDs and add a few UX enhancements around autopilot features
8 years ago
James Phillips 26dddb428c
Forces user-supplied node IDs to lower case for consistency.
8 years ago
Kyle Havlovitz 7608a3c15f
Use defers for WaitGroup and Ticker stop
8 years ago
Kyle Havlovitz 9b4497de09
Cleaned up and reorganized some autopilot-related code
8 years ago
Kyle Havlovitz c3d638e2c5
Move RaftStats to Status endpoint
8 years ago
Kyle Havlovitz fb259e3d04
Merge branch 'master' into f-autopilot-2
8 years ago
Kyle Havlovitz 2eefe3ca5b
Add autopilot server health tracking
8 years ago
Sean Chittenden a791de3ecf Revert "Change `ClientAddr` to default to `BindAddr` when not present."
8 years ago
Sean Chittenden beae5c6bba
Change `ClientAddr` to default to `BindAddr` when not present.
8 years ago
James Phillips 3103f7f673 Merge pull request #2690 from zeroae/f-simple-rfc2782
8 years ago
Kyle Havlovitz ab6c49ab4c Merge pull request #2771 from hashicorp/f-autopilot
8 years ago
Kyle Havlovitz 5f125324db Merge pull request #2774 from hashicorp/f-cli-deprecation-docs
8 years ago
Kyle Havlovitz 92c8b9c3a0
Rename DeadServerCleanup and make wording adjustments
8 years ago
Kyle Havlovitz f389b59fd5
Fix up command and api tests
8 years ago
Kyle Havlovitz 9221aed856
Remove the RPC client interface and update docs
8 years ago
Sean Chittenden cbbbf5ee39
Follow the lead in 6fc901a8f3 and set the default `DisplayName` to `Consul`
8 years ago
Kyle Havlovitz 211995bc3c
Convert agent command to use base.Command
8 years ago
Kyle Havlovitz 5429e8ce66
Add cli docs and minor test/comment tweaks
8 years ago
Kyle Havlovitz bf735aa008
Use BoolValue for flag type
8 years ago
Kyle Havlovitz 2ea36d7bd4
Merge branch 'master' into f-autopilot
8 years ago
Kyle Havlovitz c1f776c78b
Added operator autopilot subcommands
8 years ago
Kyle Havlovitz c2e7f45002
Add CAS capability to autopilot config endpoint
8 years ago
James Phillips e37f66d0b2
Exports config functions from base.
8 years ago
James Phillips a48ecf56a9
Exports visit function from base.
8 years ago
Kyle Havlovitz 81c7a0299e
Add state store table and endpoints for autopilot
8 years ago
Kyle Havlovitz 950a9d2212
Move raft_protocol out of autopilot config
8 years ago
Kyle Havlovitz b20fd222f6
Add raft version 2/3 compatibility
8 years ago
Kyle Havlovitz c8d0273f1b
Condense raft subcommand into one doc page
8 years ago
Kyle Havlovitz e85b401eb9
Split operator raft command into subcommands
8 years ago
Jeff Mitchell 73035f9ef8 Update TestHTTPServer_UnixSocket with DialContext
8 years ago
Kyle Havlovitz 466e39d27a Merge pull request #2732 from hashicorp/f-validate-command
8 years ago
Kyle Havlovitz 2aebff3bd3
Add -quiet flag to validate
8 years ago
Kyle Havlovitz c9abafab92
Update docs and give better error for unknown client scheme
8 years ago
Kyle Havlovitz eee5eb3fb8
Update website docs for validate command
8 years ago
Kyle Havlovitz fe7b26a996
Deprecate the configtest command and add the validate command
8 years ago
Kyle Havlovitz 9e23dabbfa
Allow internal watches to use https and unix sockets
8 years ago
Kyle Havlovitz a7a6ee9f4c
Allow prefixing -http-addr with http/https schemes
8 years ago
Kyle Havlovitz a8eaad3ba4
Remove cli rpc functions
8 years ago
Kyle Havlovitz 152b71ec89
Formatting fix in members output
8 years ago
Kyle Havlovitz 55ee1b0aed
Merge branch 'master' into f-cli-rework-3
8 years ago
Kyle Havlovitz bad037fb58
Cleanup and formatting adjustments
8 years ago
Kyle Havlovitz ea66375063
Convert watch command to use base.Command
8 years ago
Kyle Havlovitz edbb0ce0b8
Add missing doc page for version command
8 years ago
Kyle Havlovitz aa0d2502f8
Convert snapshot command to use base.Command
8 years ago
Kyle Havlovitz 8236af47ba
Convert rtt command to use base.Command
8 years ago
Kyle Havlovitz 8c14f93fb1
Convert reload command to use base.Command
8 years ago
Kyle Havlovitz 369b4b6d73
Convert operator command to use base.Command
8 years ago
Kyle Havlovitz be17779c42
Convert monitor command to use base.Command
8 years ago
Kyle Havlovitz 14415741a3
Convert members command to use base.Command
8 years ago
Kyle Havlovitz 6c4d4f9a32
Convert maint command to use base.Command
8 years ago
Kyle Havlovitz ccb193f77f
Convert leave command to use base.Command
8 years ago
Kyle Havlovitz 746dbc1c51
Make join exit non-zero if no nodes were joined
8 years ago
Kyle Havlovitz 14a7ffc098
Convert kv commands to use base.Command
8 years ago
Kyle Havlovitz abdf1fbab3
Convert keyring command to use base.Command
8 years ago
Kyle Havlovitz d67151908d
Convert keygen command to use base.Command
8 years ago
Kyle Havlovitz 8775b031d3
Convert join command to use base.Command
8 years ago
Kyle Havlovitz a3d02a4cbc
Convert info command to use base.Command
8 years ago
Kyle Havlovitz aa1c464961
Convert exec command to use base.Command
8 years ago
Kyle Havlovitz 8985398c7e
Convert event command to use base.Command
8 years ago
Kyle Havlovitz 0b85bbfed1
Small tweaks to base command
8 years ago
Kyle Havlovitz 197dc10a7f
Add utility types to enable checking for unset flags
8 years ago
Kyle Havlovitz 49d2ce1c3d
Move command Meta to base.Command and split http options
8 years ago
Kyle Havlovitz edc353914d
Fix the check for displaying the command options
8 years ago
Kyle Havlovitz 8009432b1b
Convert configtest and force-leave commands to use Meta
8 years ago
Kyle Havlovitz 3d09fb880f
Merge branch 'master' into f-cli-rework
8 years ago
Kyle Havlovitz 5d888f5303
Added -relay-factor param to keyring operations
8 years ago
Kyle Havlovitz a533e255ab Merge pull request #2699 from hashicorp/f-tls-min-version
8 years ago
Kyle Havlovitz 07ba3ddb6e
Add TLSMinVersion to config options
8 years ago
Sean Chittenden fd2ae702c9
Re-cherry-pick 71d807f607 and e2320d69b6.
8 years ago
James Phillips e9cc66ab51
Fixes issue with missing CNAME for services with non-IP addresses set in SRV responses.
8 years ago
Patrick Sodré c135c08fb2 Simple RFC 2782 support with optional .service tag
8 years ago
James Phillips f0f52bd5f6
Redacts AWS join credientials from /v1/agent/self output.
8 years ago
James Phillips eaa8fde298
Updates a comment to point to new blockingQuery function.
8 years ago
James Phillips 4c1a156417
Pulls in latest static asset updates.
8 years ago
Kyle Havlovitz bbfd25b530
Fix test import
8 years ago
Kyle Havlovitz a55968f009
Merge branch 'master' into f-prepared-query-nodemeta
8 years ago
Kyle Havlovitz 3f3d7f9891
Add tests for node meta in prepared queries and update docs
8 years ago
David Black 507e6769f8 s/givne/given/
8 years ago
James Phillips 6ca0173907
Adds catalog support for node IDs.
8 years ago
James Phillips e719ff8ef1
Adds a test to make sure we get the same ID on the second run.
8 years ago
James Phillips bd605e330c
Adds basic support for node IDs.
8 years ago
James Phillips 8d57727ff0 Merge pull request #2639 from tanuck/master
8 years ago
James Phillips 25fb498b20 Merge pull request #2578 from ybubnov/concurrent-safe-notification-mock
8 years ago
Kyle Havlovitz 5acd69b4fc
Add node metadata filtering to remaining health/catalog endpoints
8 years ago
Kyle Havlovitz fb68a6bab0
Style tweaks and vendor.json cleanup
8 years ago
Kyle Havlovitz 5ddea8a5df
Merge branch 'master' into f-gce-discovery
8 years ago
Kyle Havlovitz dbc72eaac0
Condense gce discovery logging a bit
8 years ago
Kyle Havlovitz 23ce10f889 Merge pull request #2643 from hashicorp/f-node-metadata
8 years ago
Kyle Havlovitz 7f91cd12f4
Add -node-meta to agent command line options
8 years ago
Kyle Havlovitz c9e430c396
Validate metadata config earlier and handle multiple filters
8 years ago
Andrew Glen-Young 01de3b3cb9 Pedantic typo fix
8 years ago
Kyle Havlovitz 03273e4ed2
Fix formatting
8 years ago
Kyle Havlovitz 84504a20fc
Add meta key validations and more tests
8 years ago
Kyle Havlovitz e44bcb9716
Add tests for node metadata functionality
8 years ago
Kyle Havlovitz 52d6fd831e
Add support for setting node metadata fields
8 years ago
James Phillips 66f3a0f1c3 Merge pull request #2635 from hashicorp/kv-put-crash
8 years ago
James Nugent 19921290c4 cli: Fix printf format in KV Export Test
8 years ago
James Nugent ae83b71b08 cli: Fix panic on empty data argument to `kv put`
8 years ago
James Nugent d4e8c8a2c1 cli: Add KV `export` and `import`
8 years ago
James Tancock 5151c64f54 Standardize the case of all check log messages
8 years ago
James Nugent 2e8f440ac7 cli: Add -base64 option to `consul kv put`
8 years ago
James Nugent 5334649355 Merge pull request #2631 from hashicorp/kv-get-base64
8 years ago
James Nugent b79296ac70 cli: Add -base64 option to `consul kv get`
8 years ago
Kyle Havlovitz 8494b06ce0
Don't error if the given data-dir doesn't exist
8 years ago
James Phillips d6dc6a1fcc
Adds exception for data-dir check in -dev mode.
8 years ago
James Phillips 2f9c05a75b
Updates web assets to match latest.
8 years ago
James Phillips a67d308175 Merge pull request #2594 from hashicorp/acl-complete
8 years ago
James Phillips ededf330ba
Adds complete ACL support for listing events.
8 years ago
James Phillips babb0a1235
Adds remaining unit tests for agent ACL vet and filter functions.
8 years ago
James Phillips 171ec6e487
Fixes a race in the monitor endpoint test that would cause panics.
8 years ago
Kyle Havlovitz cb96aa8eb3 Merge pull request #2529 from mckennajones/bug/1838
8 years ago
Kyle Havlovitz daa5ba87d4 Handle error from stat on data-dir and shorten error message
8 years ago
James Phillips 4ffd824547
Adds a leader wait when testing with ACLs.
8 years ago
James Phillips 03f40116f4
Adds complete ACL coverage for non-utility agent endpoints.
8 years ago
Kyle Havlovitz 7fbac3ffad Merge pull request #2553 from mckennajones/bug/ignoresigpipe
8 years ago
Kyle Havlovitz 7f5f1fed81
Add a notice about deprecation of atlas features
8 years ago
James Phillips 01b6766099
Adds complete ACL support for agent utility endpoints.
8 years ago
James Phillips ca7a243b70
Adds ACL management support to the agent.
8 years ago
James Phillips 34da7ccd64
Adds a unit test to make sure the status endpoint doesn't ever show anything
8 years ago
James Phillips 8b67991ef7
Adds complete ACL coverage for /v1/session endpoints.
8 years ago
James Phillips bcf1ffad99
Adds complete ACL coverage for /v1/coordinate/nodes and Coordinate.Update RPC.
8 years ago
James Phillips 0139bbb963
Adds support for a new "acl_agent_token" which is used for internal
8 years ago
James Phillips 0ed6b1bb18
Bans anonymous queries that aren't tied to a session.
8 years ago
James Phillips 66b437ca33
Removes the exception for the "consul" service in the catalog.
8 years ago
Yakau Bubnou e52fd6e0af Concurrent-safe notification mock
8 years ago
Chris Marchesi 6500d1afaa command/agent: Google Compute Engine host discovery
8 years ago
James Phillips 8ae9e17dff
Adds an opt-in for new ACL policies and features coming in Consul 0.8.
8 years ago
Sean Chittenden 830125a8b3
Run all known addresses through go-sockaddr/template.
8 years ago
Kyle Havlovitz ead30ca62b Fix race issue in monitor endpoint test
8 years ago
James Phillips 681e7d9ebf Merge pull request #2533 from mckennajones/bug2526
8 years ago
James Phillips c07bdb173b Merge pull request #2555 from hashicorp/pr-2497-slackpad
8 years ago
Kyle Havlovitz bd69c6d871 Add reload/leave http endpoints (#2516)
8 years ago
mckennajones 8b3ab100ef ignore sigpipe signals to fix journalctl issue #2404
8 years ago
mckennajones 6bc1164825 Unit test for kv_put with negative values
8 years ago
Seth Vargo 4179aacf11
Add an API method for determining the best status
8 years ago
Kyle Havlovitz 338e36cc5d Add logWriter to agent Create() method
8 years ago
Kyle Havlovitz 124f907063 Add monitor http endpoint
8 years ago
mckennajones 40a8f13cd9 Simple check to differentiate between stdin flag or value that contains
8 years ago
James Phillips dd31e47eef
Updates static assets to pick up #2340 and and #2525.
8 years ago
Kyle Havlovitz 6bd65c668b Combine keyring endpoints into one
8 years ago
Kyle Havlovitz dd3368c19e Add keyring http endpoints
8 years ago
mckennajones 8daa45c5b4 check if data-dir is actually a directory
8 years ago
James Phillips fa680bded7
Defaults to pretty JSON in dev mode.
8 years ago
James Phillips c744792fc4 Merge pull request #2238 from hasyimibhar/master
8 years ago
Benjamin Farley b78cf3de1f Operator docs update
8 years ago
James Phillips 16f8e04bfe
Revert "Updates Circonus metrics library and adds support for display name and tags."
8 years ago
Kyle Havlovitz 92ce2c9e39 Use uuids in persist temp files to avoid race (#2494)
8 years ago
Kyle Havlovitz b1760b223e Improve logging when deregistering a nonexistent service (#2492)
8 years ago
matt maier bd490ec937 Updates Circonus metrics library and adds support for display name and tags.
8 years ago
matt maier 91a8b43d5a Update Circonus integration expose Check Display Name and Check Tags configuration options.
8 years ago
James Phillips 2f341738a1 Removes stale reference to reap lock which causes a panic. (#2490)
8 years ago
James Phillips bc47511d26
Runs the static asset packaging inside the container; updates assets.
8 years ago
James Phillips 8af20ff1a5
Updates embedded static assets.
8 years ago
Kyle Havlovitz 8e621eb9c8 Set MaxStale default to 10 years and add a stale counter (#2481)
8 years ago
Brian Hays 1c01b10c87 Lowercase ACL Datacenter (#2478)
8 years ago
Kyle Havlovitz 83d2f36b54 Merge pull request #2480 from hashicorp/b-atomic-writes
8 years ago
Kyle Havlovitz 7a3e0f8275
Add a note about not calling sync for persistCheckState
8 years ago
Kyle Havlovitz e30b289c6f
Call fsync() for saving check/service state
8 years ago
Kyle Havlovitz e665ec87aa Add WaitForResult to some flaky tests (#2477)
8 years ago
James Phillips 2d4fd24eaf Moves the snapshot package up one level. (#2472)
8 years ago
James Phillips 925c46f725 Moves logger setup into its own package. (#2471)
8 years ago
James Phillips 2d43dcfc0c Finishes move of datacenter into client vs. options. (#2470)
8 years ago
Kyle McCullough 73b281a27c Add setting to skip ssl certificate verification for HTTP checks (#1984)
8 years ago
James Phillips 233a3a101b Supports WAN and LAN Serf Bind Addresses. (#2468)
8 years ago
James Phillips c06a107638
Removes unnecessary clause in unit test check.
8 years ago
James Phillips 7b98ae921e Adds support for DNS recurse truncation. (#2467)
8 years ago
James Phillips 4b5f9115b5 Adds missing datacenter arg to API client for snapshot commands. (#2466)
8 years ago
Kyle Havlovitz 073798594d Merge pull request #2459 from hashicorp/f-aws-autodiscovery
8 years ago
Kyle Havlovitz 1de39d23d1
Small tweaks to docs and syntax
8 years ago
Kyle Havlovitz 1b204eb88d Disallow -bootstrap-expect flag in dev mode (#2464)
8 years ago
James Phillips e8caf76339
Builds static assets to pick up #2456 (redux).
8 years ago
Kyle Havlovitz f3efab5f84
Add support for ECS task roles as an auth mechanism
8 years ago
Kyle Havlovitz d4d6e2b482
Move EC2 discovery logic into retryJoin for robustness
8 years ago
Kyle Havlovitz 468bf736b4
Support more forms of EC2 authentication
8 years ago
Kyle Havlovitz 9c75e69f65
Add testing around EC2 discovery config
8 years ago
Kyle Havlovitz 043e6891d6
Fixed up config structure for EC2 discovery
8 years ago
Kyle Havlovitz c908121c72 Merge branch 'master' of github.com:hashicorp/consul into aws_autodiscovery
8 years ago
James Phillips 723f70ed31
Builds static assets to pick up #2456.
8 years ago
Kyle Havlovitz e1f8a41a35 Retry periodically for 60s if syslog setup fails (#2455)
8 years ago
Kyle Havlovitz 606662c502 Add snapshot inspect subcommand (#2451)
8 years ago
Kyle Havlovitz dce6702268 More flaky unit test fixes (#2449)
8 years ago
Kyle Havlovitz 63534aca7e Added tests for lookups on the 'addr.consul' domain
8 years ago
Kyle Havlovitz 84c87325ae Add a service address SRV lookup test for IPv6
8 years ago
Kyle Havlovitz f7ef84812d Fix test cases
8 years ago
Kyle Havlovitz 2a26597769 Give the service address in SRV lookup when it differs from the node's
8 years ago
Kyle Havlovitz 554440ab1d Resolve Consul CNAME records on external services (#2444)
8 years ago
James Phillips c01a3871c9 Adds support for snapshots and restores. (#2396)
8 years ago
Kyle Havlovitz e2d9114b34 Agent anti-entropy test fixes
8 years ago
Kyle Havlovitz 3add830b3a Test fixes (#2434)
8 years ago
James Phillips 03ae813bc7 Merge pull request #2389 from hashicorp/jbs-2019
8 years ago
Seth Vargo de1718a8a6
Centralize command-line parsing
8 years ago
James Phillips 95d418d7da
Removes reap config option.
8 years ago
Brian Shumate 74a8fbef06
Lower Service tag DNS warning to DEBUG for #2019
8 years ago
Adam Wolfe Gordon 5ac5a8ccfc agent: Stop reaping child processes (resolves #1988)
8 years ago
Seth Vargo 1898d071ce
Fix kv put flags
8 years ago
Seth Vargo d0ac899f79
Fix up kv put help output
8 years ago
Seth Vargo f9a7be9315
Remove debugging code
8 years ago
Seth Vargo 39fb70ff67
Fix CAS operations for put
8 years ago
Seth Vargo c7496c5652
Change delete CAS behavior to require ModifyIndex
8 years ago
Seth Vargo 6cdf354270
Fix copy-paste comments
8 years ago
Seth Vargo 297a22383f
Add kv delete command
8 years ago
Seth Vargo 82bddd7f9b
Add kv put command
8 years ago
Seth Vargo c8fdc5c50d
Add kv get
8 years ago
Seth Vargo 87ad6d466c
Add kv command stubs
8 years ago
Seth Vargo 8c30edc54e
Add test function for returning an API client
8 years ago
James Phillips 5f0835fae7
Runs go-fmt (incidental to this PR).
8 years ago
James Phillips 1f5ae4827e
Makes string search for Windows case-insensitive.
8 years ago
James Phillips 216c5c7786 Merge pull request #2353 from hashicorp/b-local-panic
8 years ago
James Phillips c780149b5d
Calls remove on checks and services in the local test.
8 years ago
James Phillips c8ce41f459
Cleans up state management for remote deletes from local state.
8 years ago
James Phillips b0b05f48f3 Merge pull request #2262 from WIZARD-CXY/master
8 years ago
Felix f0eb0ba549 return an error if no logOutput is provided
8 years ago