Commit Graph

144 Commits (76319f751d09a8c77ff9cff8302ce089b17a4ec5)

Author SHA1 Message Date
Preetha Appan 76319f751d
Added back glue records in NS response, expanded unit test. Also reused same function used in node lookup for adding A/AAAA records in the extra section of the NS response
7 years ago
Preetha Appan f01f17bda3
Don't add A records for NS requests, because the record being returned already resolves correctly. Also fixed all the unit tests, and ignored hostnames that don't meet valid dns hostname criteria
7 years ago
Frank Schroeder 7ea11c2f45
dns: provide correct SOA and NS responses
7 years ago
Preetha Appan 824fc4ee20
Unify regex used to identify invalid dns characters
7 years ago
Preetha Appan 37f75a393e
Use sanitized version of node name of server in NS record, and start with "server" rather than "ns"
7 years ago
Preetha Appan 794d1afe44
Removed a copy pasted irrelevant comment, and other code review feedback
7 years ago
Preetha Appan f9db387097
Add NS records and A records for each server. Constructs ns host names using the advertise address of the server.
7 years ago
James Phillips 4bee2e49f5 Adds secure introduction for the ACL replication token. (#3357)
7 years ago
Frank Schroeder 9ffeba18ee
agent: fix code for updated go-discover signature
7 years ago
James Phillips c0a5ad7903 Adds a new /v1/acl/bootstrap API (#3349)
7 years ago
Miguel Prokop 6852dec3f2 agent: Fix script quoting on windows (#1875)
7 years ago
Frank Schroeder 2fac427cd4 agent: use github.com/hashicorp/go-discover
7 years ago
Preetha Appan 4076c0d741 Return nil instead of empty list when returning a PermissionDenied error, updated unit test
7 years ago
Preetha Appan 6336014a86 Return 403 rather than a 404 when acls cause all results to be filtered out. This fixes #2637
7 years ago
preetapan 0f494d8b86 Merge pull request #3332 from hashicorp/issue_3322
7 years ago
Preetha Appan 2d84cd2330 Tweaked parsing error message to quote properly
7 years ago
James Phillips 10b660d77a Adds missing autopilot snapshot test and avoids snapshotting nil. (#3333)
7 years ago
Preetha Appan 5aeab1463b Validate unix sockets and ip addresses as needed, more test cases
7 years ago
Preetha Appan 4cec55e8db Modify ResolveTmplAddrs to parse advertise IPs, added test cases that fail to parse correctly
7 years ago
Preetha Appan 13c118ea51 Removed extra newlines
7 years ago
Preetha Appan 840749db7e Fix comments, and remove redundant TestConfig init from a couple of unit tests
7 years ago
Frank Schroeder b19b062194
add tests for go-sockaddr template parsing
7 years ago
Frank Schroeder ac9602e798
agent: unix sockets are not ip addrs
7 years ago
Frank Schroeder 2fcdb35cbb
config: refactor tmpl resolution fn
7 years ago
Preetha Appan aa98aeb4b1 Moved handling advertise address to readConfig and out of the agent's constructor, plus unit test fixes
7 years ago
Preetha Appan 25acd1534a Move go-socketaddr template parsing into config package to make it happen before creating a new agent. Also removed redundant parsetemplate calls from agent.go.
7 years ago
James Phillips 6250cd70f5 Adds option to prepared queries to remove empty tags. (#3330)
7 years ago
James Phillips 496b0bcf07 Adds support for agent-side ACL token management via API instead of config files. (#3324)
7 years ago
Preetha Appan b94617b281 Add extra test case for deleting entire tree with empty prefix
7 years ago
Preetha Appan 4498814843 Don't insert tombstone for empty prefix delete. Other minor unit test fixes
7 years ago
Preetha Appan fee418d378 Removed redundant comments and unit test
7 years ago
Preetha Appan b772c477c2 Removed redundant call to reap tombstone from unit test
7 years ago
Preetha Appan ae443e21d6 Improved unit test per code review
7 years ago
Preetha Appan 36acf8d6a4 Use new DeletePrefixMethod for implementing KVSDeleteTree operation. This makes deletes on sub trees larger than one million nodes about 100 times faster. Added unit tests.
7 years ago
James Phillips c413a9161e Removes an unnecessary close.
7 years ago
Preetha Appan f8b633c69e Removed redundant logging
7 years ago
Preetha Appan c26fd66edd Clean up temporary files on write errors, and ignore any temporary service files on load with a warning. This fixes #3207
7 years ago
James Phillips 1774fdc237
Tweaks the error when scripts are disabled.
7 years ago
Kyle Havlovitz d74390ef86 Fix UpgradeVersionTag field not being passed correctly (#3304)
7 years ago
Preetha Appan 1f35aa6ff2 Made unit test for AddCheck error check the actual error string
7 years ago
Preetha Appan c32e4ebe26 Unit test for failure case of AddCheck
7 years ago
Frank Schroeder 0047b7d3f0
fix spelling in filenames
7 years ago
Frank Schroeder 83577e0daa agent: make docker client work on windows
7 years ago
Frank Schroeder b97ab92d87
build: add missing build tags
7 years ago
preetapan fb43953894 Merge pull request #3296 from hashicorp/ensure_registration_race
7 years ago
Preetha Appan e50f0e6722 Clean up any watch monitors associated with a failed AddCheck
7 years ago
Preetha Appan 6a257f242e Removed unit test, added clarifying comment and returned a friendlier error message similar to the one in agent's AddService method
7 years ago
Preetha Appan 9f048afe29 Fix race condition between removing a service and adding a check for the same service, which was causing orphaned checks
7 years ago
Kyle Havlovitz 19eae3d14b
Add UpgradeVersionTag to autopilot config
7 years ago
Frank Schroeder 0d9b53730f agent: stop docker checks on shutdown
7 years ago