Commit Graph

873 Commits (051f00468381e2f76476d1678cee8bbdaf0246c5)

Author SHA1 Message Date
Guido Iaquinti 3d230dee80 Attach server.ID label to client.rpc.failed
7 years ago
Guido Iaquinti e85e63c18c Client: add metric for failed RPC calls to server
7 years ago
Matt Keeler 88a8c5e968
Merge pull request #4156 from hashicorp/enterprise-coexistence
7 years ago
Jack Pearkes aa1c993806
Merge pull request #4013 from sethvargo/sethvargo/user_agent
7 years ago
Matt Keeler 27fe219918
Merge pull request #4131 from pierresouchay/enable_full_dns_compression
7 years ago
Matt Keeler 1fbe828c35 Add RunWithConfig and put Run signature back to normal
7 years ago
Matt Keeler 53fbe2b111 Update unit tests to reflect change to func signature
7 years ago
Matt Keeler 8e0e239e42 Allow passing in a config to the watch plan to use when creating the API client
7 years ago
Pierre Souchay fa37f262eb Fixed comments for max DNS records returned as requested by @mkeeler
7 years ago
Seth Vargo accb85a6a9
Use new discover and useragent libs
7 years ago
Matt Keeler b6e9abe926 Allow for easy enterprise/oss coexistence
7 years ago
Matt Keeler 0d197c32dc Add BadRequestError handling
7 years ago
Wim 16ce8d9ed2 Add service reverse lookup tests
7 years ago
Wim d10e6d0292 Do reverse service lookup only if address doesn't match node
7 years ago
Wim 5c04864b28 Add support for reverse lookup of services
7 years ago
Pierre Souchay bb92420873 Test fix, trying to pass Travis tests
7 years ago
Pierre Souchay 486417a0fc Ensure to never send messages more than 64k
7 years ago
Pierre Souchay cfa5986df7 Fixed unit tests and updated limits
7 years ago
Pierre Souchay 6e80b6b127 Re-Enable compression while computing Len(), so we can send more answers
7 years ago
Matt Keeler cfd09c88c6 Update bindata_assetfs for 1.1
7 years ago
Paul Banks 863ac12811
v1.1.0 UI Build
7 years ago
Paul Banks ff37194fc0
Go fmt cleanup
7 years ago
Preetha Appan ca67094619
Change default raft threshold config values and add a section to upgrade notes
7 years ago
Preetha Appan 3ff5fd6ec5
More docs and removed SnapShotInterval from raft timing struct stanza
7 years ago
Preetha Appan d721da7b67
Also make snapshot interval configurable
7 years ago
Preetha Appan ad09865562
fix spacing
7 years ago
Preetha Appan 66f31cd25a
Make raft snapshot commit threshold configurable
7 years ago
Kyle Havlovitz 876d251b95
Merge pull request #4108 from hashicorp/vendor-go-discover
7 years ago
Kyle Havlovitz 48560848fc
Move cloud auto-join docs to a separate page and add Triton
7 years ago
Jack Pearkes 291e8b83ae
Merge pull request #4097 from hashicorp/remove-deprecated
7 years ago
John Cowen e5eeb0aa7c
UI V2 (#4086)
7 years ago
Paul Banks 92c6fe0b1e
Make it work for WAN join too and add tests
7 years ago
Dominik Lekse ba9991a145
Added support for sockaddr templates in start-join and retry-join configuration
7 years ago
Kyle Havlovitz 75953273e2
Remove unused retry join structs from config
7 years ago
Kyle Havlovitz ba3971d2c1
Remove deprecated metric names
7 years ago
Kyle Havlovitz b73323aa42
Remove the script field from checks in favor of args
7 years ago
Paul Banks b7fa3358d1
Merge pull request #3970 from pierresouchay/node_health_should_change_service_index
7 years ago
Kyle Havlovitz cc214d45b6
Remove support for EnableTagOverride in config files
7 years ago
Kyle Havlovitz 6461087c25
Remove support for CheckID field in service check definitions
7 years ago
Dino Lukman d538b5666c Fix telemetry default prefix filter
7 years ago
Jack Pearkes 733c0df0a0
Merge pull request #4021 from fomentia/master
7 years ago
Paul Banks c8db140ff7
Merge pull request #4047 from pierresouchay/added_missing_meta_in_service_definition
7 years ago
Pierre Souchay 303997ff55 Improved unit test (example close to actual value)
7 years ago
Paul Banks 4de68fcb4b
Merge pull request #4016 from pierresouchay/support_for_prometheus
7 years ago
Pierre Souchay eccc223480 Fixed Meta name for JSON + Added unit tests for HCL/JSON
7 years ago
Pierre Souchay 26388503e0 Removed Nanoseconds cast as requested by @banks
7 years ago
Pierre Souchay 62a68a008d Removed content negotiation of Prometheus as requested by @banks
7 years ago
Pierre Souchay c152cb7bdf Added Missing Service Meta synchronization and field
7 years ago
Pierre Souchay c715408c87 More Tests cases compression/no compression
7 years ago
Pierre Souchay 076ecf9712 Removed unecessary copy of Extra and index
7 years ago
Pierre Souchay 06a181955d Use safer stringVal()
7 years ago
Pierre Souchay 9bb15730a6 Added unit test on key length
7 years ago
Pierre Souchay 2f5e67534d Added unit tests for bad meta values
7 years ago
Pierre Souchay d2ab3deacf [BUGFIX] Added Service Meta support in configuration files
7 years ago
Pierre Souchay 36827418b7 Improved unit tests debug info when it fails
7 years ago
Pierre Souchay 728c5308df Fixed sync of Extra in binarySearch
7 years ago
Pierre Souchay 9243daeb0e Run new test in parallel
7 years ago
Pierre Souchay 5b4905e11d More test cases + travis flacky
7 years ago
Pierre Souchay fadfb95e07 Added Unit tests + fixed boudary limit
7 years ago
Pierre Souchay c838376dfa Added comment for function dnsBinaryTruncate
7 years ago
Pierre Souchay 94c0bf978a Perform a binary search to find optimal size of DNS responses
7 years ago
Kyle Havlovitz 2a636275ad
Update static assets
7 years ago
Kyle Havlovitz af4be34a2a
Update make static-assets goal and run format
7 years ago
Matt Keeler d926679278
Merge pull request #4023 from hashicorp/f-near-ip
7 years ago
Matt Keeler 0619efc254 GH-3798: More PR Updates
7 years ago
Matt Keeler 136efeb3be GH-3798: A couple more PR updates
7 years ago
Matt Keeler cec8d5145b GH-3798: A few more PR updates
7 years ago
Matt Keeler d065d3a6db GH-3798: Updates for PR
7 years ago
Matt Keeler 283a7942c4 GH-3798: Wrap DNS request validation in a retry
7 years ago
Jack Pearkes 265359959b
Merge pull request #4015 from hashicorp/ui-service-tags
7 years ago
Matt Keeler 5794fa8837 GH-3798: Add DNS near=_ip test
7 years ago
Matt Keeler de403d6515 GH-3798: Add HTTP prepared query near=_ip test
7 years ago
Matt Keeler 45a537def9 GH-3798: Add near=_ip support for prepared queries
7 years ago
Isaac Williams 01f5db46e8 Close HTTP response in Agent test (HTTPAPI_MethodNotAllowed_OSS)
7 years ago
Paul Banks 0d8993e338
Allow ignoring checks by ID when defining a PreparedQuery. Fixes #3727.
7 years ago
Pierre Souchay a680c8e91b Clearer documentation and comments for enabling Prometheus support
7 years ago
Pierre Souchay 27362320e8 Enable compression / automatic Mime-Type detection for Prometheus endpoint
7 years ago
Matt Keeler 39c17084b6
Merge pull request #4006 from kjothen/patch-1
7 years ago
Pierre Souchay 93a01b0949 Now use prometheus_retention_time > 0 to enable prometheus support
7 years ago
Pierre Souchay fd98fb1449 Added support exposing metrics in Prometheus format
7 years ago
Jack Pearkes eb447f51e6 api/ui: return tags on internal UI endpoints
7 years ago
Matt Keeler 0d1d03c793
Merge pull request #3752 from yfouquet/issue_3687
7 years ago
Yoann 0f6e05d4c1 Add support for compression in http api
7 years ago
Preetha 2c931c92d4
Merge pull request #3998 from zte-opensource/wip-fix-shutdown
7 years ago
Kieran Othen e4b7465193
Update check.go
7 years ago
Matt Keeler 27899f9f46
Merge pull request #3948 from pierresouchay/fix_tcp_dns_limit
7 years ago
Preetha a67d27c756
Adds discovery_max_stale (#4004)
7 years ago
Preetha 1609b2c6b7
Merge pull request #3994 from hashicorp/f-rename-servicemeta
7 years ago
runsisi b082c8d3ab minor fix for endpoints shutdown
7 years ago
Matt Keeler ea6767d8bc
Merge pull request #3990 from hashicorp/b-gh-3854
7 years ago
Preetha Appan c7581d68c6
Renames agent API layer for service metadata to "meta" for consistency
7 years ago
Preetha daa61c5803
Merge pull request #3881 from pierresouchay/service_metadata
7 years ago
Preetha 3c96d64eaa
Merge pull request #3984 from hashicorp/f-allow-federation-disable
7 years ago
Matt Keeler ebc6f414ac Formatting update
7 years ago
Pierre Souchay 980189a33f Added validation of ServiceMeta in Catalog
7 years ago
Preetha Appan 226cb2e95c
fix typo and remove comment
7 years ago
Matt Keeler 3facce6bfa GH-3854: Warn when node name isnt a valid DNS label
7 years ago
Preetha Appan 010a459365
Remove unnecessary nil checks
7 years ago
Preetha Appan 6c0bb5a810
Fix test and remove unused method
7 years ago
Preetha Appan d77ab91123
Allows disabling WAN federation by setting serf WAN port to -1
7 years ago
Pierre Souchay 18baff80ae Merge remote-tracking branch 'origin/master' into node_health_should_change_service_index
7 years ago
Pierre Souchay 5fb1b18073 More test cases
7 years ago
Pierre Souchay 39a7b5c20d Added new test regarding checks index
7 years ago
Pierre Souchay dd9efb755a Fixed minor typo in comments
7 years ago
Guido Iaquinti 8cd11d5888 Add package name to log output
7 years ago
Josh Soref 94835a2715 Spelling (#3958)
7 years ago
Paul Banks a8f7681c70
Merge pull request #3962 from canterberry/upgrade/tls-cipher-suites
7 years ago
Pierre Souchay b6914617d9 Fixed typo in comments
7 years ago
Pierre Souchay 5e974843f1 Refactoring to have clearer code without weird bool
7 years ago
Pierre Souchay a44b9e84b1 [BUGFIX] When a node level check is removed, ensure all services of node are notified
7 years ago
Preetha Appan 2eed7766a8
cleanup unit test code a bit
7 years ago
Preetha c87699abf2
Merge pull request #3885 from eddsteel/support-options-requests
7 years ago
Devin Canterberry 2187ab1e1c
🎨 Formatting changes only; convert leading space to tabs
7 years ago
Devin Canterberry 7236c95e11
Match expectation of TLSCipherSuites to values of tls_cipher_suites
7 years ago
Devin Canterberry a61abcd931
🐛 Formatting changes only; add missing trailing commas
7 years ago
Devin Canterberry c901307a47
🔒 Update supported TLS cipher suites
7 years ago
Pierre Souchay aebfcb6767 Fixed minor typo (+ travis tests is unstable)
7 years ago
Pierre Souchay 93fa1f6f49 Optimize size for SRV records, should improve performance a bit
7 years ago
Preetha 210cfe5ef9
Merge pull request #3940 from pierresouchay/dns_max_size
7 years ago
Pierre Souchay d0e45f22df Fixed wrong format of debug msg in unit test
7 years ago
Pierre Souchay ce3f47a75d Performance optimization for services having more than 2k records
7 years ago
Pierre Souchay 7d59249d96 Avoid issue with compression of DNS messages causing overflow
7 years ago
Pierre Souchay 419bf29041 Cleaner Unit tests from suggestions from @preetapan
7 years ago
Pierre Souchay b77fd5ce9d 64000 max limit to DNS messages since there is overhead
7 years ago
Pierre Souchay be39fb20cc [BUGFIX] do not break when TCP DNS answer exceeds 64k
7 years ago
Mitchell Hashimoto 8217564c48
agent/consul/fsm: begin using testify/assert
7 years ago
Pierre Souchay 0b7f620dc6 Allow to control the number of A/AAAA Record returned by DNS
7 years ago
Edd Steel 41b1d45cc7
Re-use defined endpoints for tests
7 years ago
Paul Banks 9a47449c6d
Merge pull request #3899 from pierresouchay/fix_blocking_queries_index
7 years ago
Pierre Souchay 360dc1dd8d Simplified error handling for maxIndexForService
7 years ago
Paul Banks dbaabb1dbc
Fix test running in non-bash shells
7 years ago
Paul Banks 6da6e086ef
Merge pull request #3900 from hashicorp/fix-monitor-sigint-3891
7 years ago
Preetha Appan 80791d5b21
Remove extra newline
7 years ago
Preetha Appan 907b97b7f2
Unit test that calls revokeLeadership twice to make sure its idempotent
7 years ago
Preetha Appan f59abcc394
Make sure revokeLeadership is called if establishLeadership errors
7 years ago
Alex Dadgar 18bf9647d5 Test autopilots start/stop idempotency
7 years ago
Alex Dadgar 33c5afdb31 Improve autopilot shutdown to be idempotent
7 years ago
Pierre Souchay a8d3745104 Fixed comments for function maxIndexForService
7 years ago
Pierre Souchay 09351ba9a6 [Revert] Only update services if tags are different
7 years ago
Pierre Souchay 60454b570a Only update services if tags are different
7 years ago
Pierre Souchay a05d38737c Enable Raft index optimization per service name on health endpoint
7 years ago
Paul Banks de58eb1820
Fixes #3891: agent monitor no longer unresponsive before logs stream.
7 years ago
Pierre Souchay 4f10fae3c3 Get only first service to test whether we have to cleanup index of a service
7 years ago
Pierre Souchay bac8fb046f Fixed comment about raftIndex + use test.Helper()
7 years ago
Pierre Souchay 73127ef407 Services Indexes modified per service instead of using a global Index
7 years ago
Edd Steel d0f0d67b4a
Clarify comments
7 years ago
Edd Steel f770f360e9 Test every endpoint for OPTIONS/MethodNotFound
7 years ago
Edd Steel c5f0bb3711 Allow endpoints to handle OPTIONS/MethodNotFound themselves
7 years ago
Edd Steel f5af8b0f03
Initialise `allowedMethods` in init()
7 years ago
Kyle Havlovitz 139b98a427
Fix the coordinate update endpoint not passing the ACL token
7 years ago
Edd Steel 77f19f7505
Support OPTIONS requests
7 years ago
Andrei Burd b608091014 adding human readability for dns requests debug log (#3751)
7 years ago
Pierre Souchay b259b1609c Merge remote-tracking branch 'origin/master' into service_metadata
7 years ago
Pierre Souchay 9a57dfd68a Fixed TestSanitize unit test
7 years ago
James Phillips 3724e49ddf
Fixes a panic on TCP-based DNS lookups.
7 years ago
Pierre Souchay 66fdf445e8 Added unit tests for structs and fixed PartialClone()
7 years ago
James Phillips c2a59f1e6c
Addresses additional state mutations.
7 years ago
James Phillips 1c6de1d623
Fixes all the racy output-side updates to tags.
7 years ago
James Phillips 11f6961e47
Adds a more robust unit test for index churn.
7 years ago
Pierre Souchay 80dde5465b Added support for Service Metadata
7 years ago
James Phillips d9a6e2a901
Makes server manager shift away from failed servers from Serf events.
7 years ago
James Phillips fc155dac19
Adds a before/after test for #3845.
7 years ago
James Phillips 533f65b7a6
Merge pull request #3845 from 42wim/tagfix
7 years ago
Kyle Havlovitz f6ecaa4a1c
Add enterprise default config section
7 years ago
James Phillips e748c63fff
Merge pull request #3855 from hashicorp/pr-3782-slackpad
7 years ago
James Phillips 5f31c8d8d3
Changes "TLS" to "GRPCUseTLS" since it only applies to GRPC checks.
7 years ago
Wim ce771f1fb3 Fix service tags not added to health check. Part two
7 years ago
Veselkov Konstantin 5f38e1148a fix refactoring
7 years ago
Veselkov Konstantin 8e16bd7d77 fix refactoring
7 years ago
Veselkov Konstantin 7de57ba4de remove golint warnings
7 years ago
James Phillips 9cd602de06
Improves user lookup error message.
7 years ago
Kyle Havlovitz 144e6e7d31
Remove nonvoter from metadata.Server
7 years ago
James Phillips 64acd0ade0
Gets rid of named return parameters.
7 years ago
James Phillips b443bd1438
Moves non-stdlib includes into their own section.
7 years ago
Kyle Havlovitz bfeb09983b
Reset clusterHealth when autopilot starts
7 years ago
Kyle Havlovitz 17805e4634
Move autopilot health loop into leader operations
7 years ago
James Phillips c190b35b0e
Updates web assets to latest.
7 years ago
Kyle Havlovitz cde1e7ceb6
Merge pull request #3821 from hashicorp/persist-file-handling
7 years ago
Kyle Havlovitz f156b12b22
Merge pull request #3820 from hashicorp/serfwan-port-fix
7 years ago
James Phillips 93fd6bfeb4
Moves the coordinate fetch after the ACL check.
7 years ago
Kyle Havlovitz 68ae92cb8c
Don't remove the files, just log an error
7 years ago
Kyle Havlovitz 8c5be2dd97
Enforce a valid port for the Serf WAN since it can't be disabled.
7 years ago
Kyle Havlovitz 4e325a6b8f
Add graceful handling of malformed persisted service/check files.
7 years ago
James Hartig aedab91a66 Resolve symlinks in config directory
7 years ago
James Phillips 9509aa6c4b
Adds the NodeID field back to the /v1/agent/self Config block.
7 years ago
James Phillips ebcd1787db
Adds more info about how to fix the private IP error.
7 years ago
James Phillips 48cfe6ff5f
Fixes crash where body was optional for PQ endpoint (it is not).
7 years ago
Dmytro Kostiuchenko 1a10b08e82 Add gRPC health-check #3073
7 years ago
Diptanu Choudhury 294151c1ad Using labels
7 years ago
Diptanu Choudhury 006eab2394 Added telemetry around Catalog APIs
7 years ago
James Phillips 5b88b8df38
Updates the checked in web assets.
7 years ago
James Phillips 6412d8d9aa
Updates the built-in web assets.
7 years ago
James Phillips 7a46d9c1e3
Wraps HTTP mux to ban all non-printable characters from paths.
7 years ago
James Phillips 2edc11b44c
Updates the built-in web UI assets.
7 years ago
James Phillips da6a4635b0
Fixes a `go fmt` cleanup.
7 years ago
Kyle Havlovitz 11a0c9cc58
Fix vet error
7 years ago
Kyle Havlovitz 77dc52f430
Move autopilot initializing to oss file
7 years ago
Kyle Havlovitz 039e7f1880
Move autopilot setup to a separate file
7 years ago
Kyle Havlovitz d08ab9fd19
Make some final tweaks to autopilot package
7 years ago
Kyle Havlovitz a86d11ec0a
Merge pull request #3737 from hashicorp/autopilot-refactor
7 years ago