Commit Graph

965 Commits (d9251e30c87f34a14af9bd6c01f3499e86411dac)

Author SHA1 Message Date
Ryan Uber 5ad8bfbd41 agent: log a message when making a new scada connection
9 years ago
Ryan Uber 4b715a7d2c agent: don't reload scada client if there is no config change
9 years ago
Ryan Uber ed70720d55 agent: testing scada client creation in command
9 years ago
Ryan Uber 52a7206ff3 agent: test scada HTTP server creation
9 years ago
Ryan Uber eb8974160f agent: clean up scada connection manager
9 years ago
Ryan Uber 87c1e4fcd3 agent: document the scada http creation func
9 years ago
Ryan Uber 2e6ccded2c agent: scada client and HTTP server are tracked separately
9 years ago
Andy Lo-A-Foe 85321301e1 Remove duplicate code
9 years ago
Andy Lo-A-Foe 3e046d3efc Use Ports.HTTP directly
9 years ago
Andy Lo-A-Foe 4e2c3373bc Add documentation for http-port option
9 years ago
Shawn Cook ab91590bcb Update tests - NodeService init needs bool
9 years ago
Shawn Cook 96785edd9a Add EnableTagDrift logic to command/agent/local.go
9 years ago
Shawn Cook a0f8c0a2a0 Remove from command/agent/config_test.go
9 years ago
Shawn Cook 6a835939b8 EnableTagDrift in NodeService struct
9 years ago
Ryan Uber 134db62937 Merge pull request #1166 from hashicorp/f-dns-log
9 years ago
Ryan Uber 05216d3cc4 agent: log network address of DNS clients
9 years ago
Andy Lo-A-Foe 7b5da2a240 Add -http-port option to change the HTTP API port
9 years ago
Armon Dadgar 066e772536 Merge pull request #1158 from mfischer-zd/fix_1155
9 years ago
Michael S. Fischer 6875e8d6b4 lock.go: fix race condition
9 years ago
J.R. Garcia 4cb6f3e943 Remove trailing slash from lock
9 years ago
Ryan Breen 018fd69aa2 Merge pull request #1143 from hashicorp/GH-1142
9 years ago
Ryan Breen 0a7dc85076 Test for GH-1142.
9 years ago
Armon Dadgar 0363d4b54b Merge pull request #1137 from 42wim/fix-1124
9 years ago
Ryan Breen 42648438a0 Check NXDOMAIN after filtering nodes
9 years ago
Ryan Uber 93c9c87f7a Merge pull request #1141 from hashicorp/f-travis
9 years ago
Ryan Uber 40f3e3fae7 travis-ci: skip syslog tests for container-based travis infra
9 years ago
Wim 5647a37ffe Recurse when PTR answer is empty
9 years ago
Armon Dadgar 4a9b91f2a2 Merge pull request #1130 from pdf/check_socket
9 years ago
Ryan Uber a6317f2fb2 Merge pull request #1090 from hashicorp/f-keyring-acl
9 years ago
Peter Fern b023904298 Add TCP check type
9 years ago
Ryan Uber 7aa8539c10 agent: disable ACLs for RPC client tests
9 years ago
Armon Dadgar 981c62ccba command/lock: Check for shutdown during lock acquisition. Fixes #800
9 years ago
Benjamin Abbott-Scott f877b9ecc4 Return every time lock acquisition fails
9 years ago
Ryan Uber 1bbdf3b03b agent: vet fixes
10 years ago
Ryan Uber 5682b715c4 Merge pull request #995 from 42wim/rfc2308-soa-ttl
10 years ago
Ryan Uber 79ac4f3512 agent: testing keyring ACLs
10 years ago
Ryan Uber 5c65bc7df2 agent: write-level keyring ACLs work
10 years ago
Ryan Uber bffc0861cc agent: read-level keyring ACLs work
10 years ago
Ryan Uber e37b5ecb69 Merge pull request #1046 from hashicorp/f-event-acl
10 years ago
Ryan Uber d0348d1291 Merge pull request #1004 from i0rek/advertise_addrs
10 years ago
Hans Hasselberg 267e0caf81 Implement advertise_addrs for SerfLan, SerfWan and RPC.
10 years ago
Ryan Uber 320ab1448d command: remote exec takes -token parameter
10 years ago
Ryan Uber 71aae88f3f command: event command supports -token arg
10 years ago
Ryan Uber 5bde81bcdc agent: avoid masking errors when ACLs deny a request
10 years ago
Ryan Uber beb27fb3ef agent: testing user event endpoint ACLs
10 years ago
Ryan Uber 6e084f6897 consul: always fire events from server nodes
10 years ago
Ryan Uber 6f309c355f agent: enforce event policy during event fire
10 years ago
Wim 3b1bcaea98 Send SOA with negative responses
10 years ago
Ryan Uber 8ffa0ea8b7 Merge pull request #1028 from sebastianmarkow/master
10 years ago
Ryan Uber f7f7c4695e agent: testing dns when acls are in use
10 years ago
Ryan Uber fb3938d88e agent: dns uses the configured token during queries
10 years ago
Sebastian Klatt 6ef6e43418
consul: Remove unreachable error handling
10 years ago
Ryan Uber 1b4167699f agent: don't replace empty tokens in the logs, fixes #1020
10 years ago
Ryan Uber f5f7e401d5 agent: fix failing test
10 years ago
Ryan Uber 69921808ee agent: use persist/load/purge convention for function names
10 years ago
Ryan Uber 2d1b873e4b agent: test check state restoration from AddCheck
10 years ago
Ryan Uber 1636a35289 agent: check state is purged if expired
10 years ago
Ryan Uber 2ee8fa8e15 agent: purge check state when checks are deregistered
10 years ago
Ryan Uber 7e6e861394 agent: testing state persistence, recovery, and expiration
10 years ago
Ryan Uber 7597d3d798 agent: first stab at persisting check state
10 years ago
Ryan Uber ebe57a1f65 agent: refactor loadChecks/loadServices, fixes a few minor bugs
10 years ago
Ryan Uber 5226e29a69 agent: don't replace config on SIGHUP if parsing fails
10 years ago
Emil Hessman 3bfc6dfe49 command/agent: skip unix file permissions test on windows
10 years ago
Adam Renberg 7d0959b34e Sort members in by name for consul members
10 years ago
Adam Renberg 6aa21152d1 Sort tags in consul members -detailed output
10 years ago
Ryan Uber 78a80f3a57 agent: flush progress info to console during migrations
10 years ago
Anton Lindström ce93fdd76b Set the User Agent for HTTP health checks
10 years ago
Adam Renberg ed3b0dd9ee Include DC in the members command output
10 years ago
Ryan Uber 2b98ebca78 agent: log a message when data migrations start
10 years ago
Ryan Uber 72ee584df3 Fix tests after merge
10 years ago
Armon Dadgar ebf961ef8b Merge pull request #927 from hashicorp/f-tls
10 years ago
Armon Dadgar 8d86290ebf Fixing merge conflict
10 years ago
Armon Dadgar a485eb8447 agent: copy config into consul config
10 years ago
Armon Dadgar 59d5992355 agent: Adding new VerifyHostname config
10 years ago
Cameron Ruatta 9271d94532 Adding documentation about specifying multiple configuration directories
10 years ago
Ryan Uber ecf43cf14e command: fix configtest help format
10 years ago
Ryan Uber 3ad94bd81d Merge pull request #904 from josephholsten/configtest-clean
10 years ago
Joseph Anthony Pasquale Holsten afbf68878c command/configtest: add
10 years ago
Ryan Uber 3ed0146e44 agent: use service ID field to determine associated health checks during deregister
10 years ago
Ryan Uber 204c11ec01 agent: restore check status when re-registering (updating) services
10 years ago
Armon Dadgar f3a8f907fb Merge pull request #909 from hashicorp/f-create
10 years ago
Ryan Uber 8ef01236e1 agent: allow persisted services to be updated on disk
10 years ago
Ryan Uber 739d1fdf03 Merge pull request #891 from hashicorp/f-token
10 years ago
Armon Dadgar 532c06ac43 agent: Support ACL upserting
10 years ago
Armon Dadgar 27a820d611 agent: Adding test for DNS enable_truncate
10 years ago
Armon Dadgar ea577fbf70 command/agent: Lowercase DC. Fixes #761
10 years ago
Ryan Uber 2b62f2f172 agent: use an additional parameter for passing tokens
10 years ago
Armon Dadgar a86f31517b Merge pull request #816 from pepov/master
10 years ago
Armon Dadgar b381cca304 Merge pull request #902 from hashicorp/f-stats-prefix
10 years ago
Armon Dadgar 0dc58140f3 Merge pull request #862 from hashicorp/f-recurse-cname
10 years ago
Ryan Uber 72524e911d agent: allow configuring the stats prefix
10 years ago
Ryan Uber 35f5a65fb7 agent: more tests
10 years ago
Ryan Uber 18356328c4 agent: restore tokens for services and checks in config
10 years ago
Ryan Uber 663a86f9b9 agent: backwards compat for persisted services from pre-0.5.1
10 years ago
Ryan Uber 442933650e agent: safer read methods for tokens
10 years ago
Ryan Uber 1557f7f19c agent: test coverage loading service/check tokens from persisted files
10 years ago
Ryan Uber 1264f7edf3 agent: fix deadlock reading tokens from state
10 years ago
Ryan Uber bebb5d9641 agent: add service/check token methods to reduce invasiveness
10 years ago
Ryan Uber 92add18e1e agent: persist tokens from API registrations
10 years ago
Ryan Uber bfb27d18cd agent: initial pass threading through tokens for services/checks
10 years ago
artushin cc07734d6e remove config
10 years ago
artushin 7b4720a957 use existing randomStagger
10 years ago
artushin fc0331ddfc add CheckUpdateStagger to MergeConfig
10 years ago
artushin 8decf5d394 adding check_update_stagger
10 years ago
Ryan Uber c9fd3eb469 agent: re-work DNS tests to not rely on the external network
10 years ago
Ryan Uber 116f8b9131 agent: pass through CNAME types for service resolution
10 years ago
Ryan Uber 6f0b1a3b46 agent: Add test for CNAME recursion
10 years ago
Ryan Uber 507917748a agent: parse raw query URL to avoid closing the request body early
10 years ago
Ryan Uber ee5659858a agent: hide tokens from logs and monitor
10 years ago
Ryan Mills 275af975e8 Allow specifying a status field in the agent/service/register and agent/check/register endpoints.
10 years ago
Ryan Uber 9c85ea0c47 agent: Don't attempt migration on new server
10 years ago
Ryan Uber 6cc0eefa76 Merge pull request #857 from hashicorp/f-boltdb
10 years ago
Ryan Uber 60a6da213f agent: handle nil node services in anti-entropy
10 years ago
Ryan Uber ac0f66a91e command: automatically migrate raft data on start
10 years ago
Ryan Uber 7e170b047e agent: fix anti-entropy check sync
10 years ago
Ryan Uber f417279761 agent: test anti-entropy sync
10 years ago
Ryan Uber a60f4adf95 agent: anti-entropy sync services/checks if they don't exist in the catalog
10 years ago
Ryan Uber deec3bef9e agent: fix dns test
10 years ago
Matt Good 062e4f94c0 Remove unnecessary DNS test entry
10 years ago
Matt Good 65ada1a62d Use DNS server startup callbacks
10 years ago
pepov ebaee31874 add and test -advertise-wan cli flag
10 years ago
pepov a1f6647a2c add AdvertiseAddrWan to TestMergeConfig and use different values for Addr values in b than in a
10 years ago
pepov bac3ae9494 Add configuration option to specify a separate address for advertising on the wan
10 years ago
Michael Fraenkel 8c26836783 Support SesionTTLMin configuration
10 years ago
Johannes 'fish' Ziemke f935a8a506 Add -domain command line flag to agent
10 years ago
Ryan Uber 952ec284a4 agent: disable HTTP keepalives for checks
10 years ago
Ryan Uber 04a2faed22 agent: warn and purge checks which cannot be restored from agent state
10 years ago
Ryan Uber bd14b90861 Merge pull request #723 from hashicorp/f-agent-block
10 years ago
Ryan Uber 84f04ff4c9 command: clarify -recursor agent arg
10 years ago
Mohammad Zolfaghari f067ad873b Support multiple recursor flag
10 years ago
Ryan Uber 6ce6d2d806 agent: write API's on /v1/agent block for anti-entropy
10 years ago
Ryan Uber 6f0fecc73c agent: fix test compilation
10 years ago
Ryan Uber 4193525931 agent: Better warning for keyring with -encrypt option. Fixes #718.
10 years ago
Ryan Breen b78eb40ef4 s/data center/datacenter/g
10 years ago
Armon Dadgar cd3cd4d3b8 agent: Cleanup a comment
10 years ago
Armon Dadgar 0101ee38eb agent: Fixing blocking queries on internal endpoints
10 years ago
Armon Dadgar 847eaadc56 agent: Enable UI endpoints for SCADA
10 years ago
Armon Dadgar 62c3d49d64 agent: Do not expose AtlasToken or AtlasACLToken
10 years ago
Armon Dadgar ea42b04593 agent: Updating for new client API
10 years ago
Armon Dadgar ad3016100c agent: Test ACL token resolution
10 years ago
Armon Dadgar 8fb642d332 agent: Adding SCADA tests
10 years ago
Armon Dadgar c495a5434d agent: Use AtlasACLToken
10 years ago
Armon Dadgar 8d184a241f agent: Rename AtlasCluster to AtlasInfrastructure
10 years ago
Armon Dadgar b9cdb94f19 agent: Fixing setup of SCADA HTTP listener
10 years ago
Armon Dadgar 6a640604dd agent: Fixing panic on shutdown
10 years ago
Armon Dadgar e99f9dd070 agent: Provide auto-join metadata to SCADA
10 years ago
Armon Dadgar 85a47ba584 agent: Adding atlas_join configuration
10 years ago
Armon Dadgar 32aaee5185 agent: SCADA HTTP integration
10 years ago
Armon Dadgar 456645f2fb agent: SCADA HTTP listener
10 years ago
Armon Dadgar 55597dc38f agent: Starting SCADA integration
10 years ago
Armon Dadgar ebfd35898b agent: Adding Atlas CLI flags
10 years ago
Armon Dadgar b4929c090a agent: Adding new Atlas configs
10 years ago
Armon Dadgar b319c41bd9 agent: Snapshot and restore health state on reload. Fixes #693
10 years ago
Armon Dadgar 05610966df command/exec: Handle a missing key during cancelation. Fixes #626
10 years ago
artushin 2ae843d51c oops. DefaultTransport being used.
10 years ago
artushin 5ec92971ac close idle connections after stopping http checks to service
10 years ago
Ryan Uber 103e9e7fc1 agent: clarify the valid characters for dns
10 years ago
Ryan Uber 722b255816 agent: warn on service tags with invalid chars
10 years ago
Ryan Uber 5e801c905d agent: Warn on dns-incompatible characters during service registration. Fixes #683.
10 years ago
lalyos 190f15458f fixing version numbers RCs should be labeled x.x.x-rcx
10 years ago
Ryan Uber 84f8c70a79 agent: fix test case examples
10 years ago
Ryan Uber 45097f9f3d Merge pull request #654 from arnaudbriche/http-check-timeout
10 years ago
arnaud briche bbb5f4696a - add tests for CheckHTTP with new timeout parameter && CheckType.Timeout parsing
10 years ago
arnaud briche 7f91782478 - add proper parsing of CheckType.Timeout from string
10 years ago
Ryan Uber 3c85d7e231 agent: http checks work inside of service definitions
10 years ago
Ryan Uber 544299efa5 agent: pass locally configured token during remote exec
10 years ago
arnaud briche e87afe341b - add Timeout field to CheckType and CheckHTTP to make http request timeout configurable by the client
10 years ago
Ryan Uber 58eba95b98 agent: test service/check deletion with empty ID
10 years ago
Ryan Uber c537799ce8 Merge pull request #644 from foostan/add_validation_of_deregistration
10 years ago
foostan 2df98c1824 Validation ServiceID/CheckID when deleting in deleteService() in local.go
10 years ago
foostan 9316596e25 Add tests to remove service/check without an ID
10 years ago
foostan 401bc71cb2 Validate ServiceID/CheckID when deregistering.
10 years ago
Emil Hessman abce80f7bc docs: describe child process handling on Windows for lock command
10 years ago
Emil Hessman 8cdbde20bd command: fix Windows build
10 years ago
Ryan Uber 8b0fe52be2 agent/http: fix service registration with nil checks value
10 years ago
Ryan Uber b5e8111485 agent/http: clean up socket setup
10 years ago
Ryan Uber eda2171bbe agent: make check tests more reliable
10 years ago
Ryan Uber b69b780408 agent: error from KVS endpoint if incompatible flags are passed. Fixes #432
10 years ago
Ryan Uber 67190e6f68 agent: more lenient dns response test
10 years ago
Armon Dadgar e1a5d537d4 Merge pull request #625 from hashicorp/f-maintcmd
10 years ago
Ryan Uber 5049a5eb7b command/maint: better arg conflict checking
10 years ago
Ryan Uber 44f3c20e50 command/maint: clean up
10 years ago
Ryan Uber 09fd2a7e94 command/maint: display active maintenance when no args are passed
10 years ago
Armon Dadgar cf04d6ae31 Merge pull request #622 from hashicorp/f-sockets
10 years ago
Ryan Uber 124e7bfa7e agent: use const for default maintenance reason strings
10 years ago
Ryan Uber 5aa69827f8 agent: fix test
10 years ago
Ryan Uber eaaa96922d command: more maint command tests
10 years ago
Ryan Uber 47c4ab6863 command: test maint command
10 years ago
Ryan Uber 61d17e65f5 agent: prevent duplicate error messages for maintenance api
10 years ago
Ryan Uber 7d663aa1ed command: maint command works
10 years ago
Ryan Uber aa8672203c command: starting maint command
10 years ago
Ryan Uber f00b5b542e agent: support passing ?reason= for custom notes field values on maintenance checks
10 years ago
Ryan Uber b6a0f2baae agent: fix maintenance check ID
10 years ago
Ryan Uber d9a3e673b0 agent: change node maintenance endpoint
10 years ago
Ryan Uber 9c69dc05fb agent: use strconv.ParseBool for parsing maintenance enable flag
10 years ago
Ryan Uber 46d5dcfc17 agent: comments for new anti-entropy functionality
10 years ago
Ryan Uber a4039aaa4d agent: simplify anti-entropy of services with multiple checks, add tests
10 years ago
Ryan Uber 0c31e5851c agent: only send service with check sync if it is out of sync
10 years ago
Ryan Uber 949ddefbc8 agent: refactor syncChecks
10 years ago
Ryan Uber 2a7211cd5d agent: support adding multiple checks during service registration from the API
10 years ago
Ryan Uber 674be58e55 agent: support multiple checks per service
10 years ago
Ryan Uber c958824bb6 agent: use squash mapstructure tag to properly decode embedded structs
10 years ago
Ryan Uber b1dae530d4 agent: use interface for file permissions
10 years ago
Ryan Uber 782b0ddd88 agent: test permissions are set on rpc socket
10 years ago
Ryan Uber 99d4e7831e agent: fix tests
10 years ago
Ryan Uber a6c877c7ee agent: re-add support for user name in socket perms
10 years ago
Ryan Uber 145c56b47d agent: test Unix domain socket permission settings
10 years ago
Ryan Uber 450d05575d agent: adjusting tests for new behavior of sockets
10 years ago
Ryan Uber 21dd95d9af agent: beginning socket user/group/mode support as discussed in #612
10 years ago
Armon Dadgar d998bb3d67 Fixing merge conflict
10 years ago
Armon Dadgar ce4fa17d22 command/lock: Fixing mixed spaces and tabs
10 years ago
Armon Dadgar d6837e2f31 command/lock: Adding simple test
10 years ago
Armon Dadgar 876de111bf command/lock: Calculate name, use provided token
10 years ago
Armon Dadgar 08c0a81e4f command/lock: Ensure a conflict between lock and semaphore with shared prefix
10 years ago
Armon Dadgar f2f980f5bc command/lock: First pass at lock
10 years ago
Ryan Uber 2530e5ff05 agent: test agent rpc unix socket create failure
10 years ago
Emil Hessman 60011d3e2e command: address vet report in test
10 years ago
Ryan Uber 58806bc7bb command: fix up env var/cli arg precedence and tests
10 years ago
Ryan Uber ba96535cfc Merge pull request #610 from dave-tucker/bug/609
10 years ago
Dave Tucker 18b5ab3539 Don't forget to Shutdown the DNS Server!
10 years ago
Ryan Uber ba2d0fa7e3 agent: maintenance logging + unique service check IDs
10 years ago
Ryan Uber 8cf4e9889e agent: test node maintenance mode
10 years ago
Ryan Uber 7748c62d09 agent: node maintenance mode works
10 years ago
Ryan Uber 9ee1e6e858 agent: maintenance mode api's are idempotent
10 years ago
Ryan Uber 8819d71f99 agent: maintenance mode is persistent
10 years ago
Ryan Uber 35c10a902f agent: test http endpoints for maintenance mode
10 years ago
Ryan Uber 3fbb2be6c0 agent: test agent service maintenance mode
10 years ago
Ryan Uber 2973cd9131 agent: first pass at service maintenance mode
10 years ago
Ryan Uber 41ec10a120 command: fix env var reader for HTTP addr
10 years ago
Ryan Uber f01bb5cf3b agent: error if binding to existing socket file
10 years ago
Ryan Uber 56c3e488a9 agent: test socket file overwrite
10 years ago
Ryan Uber e2eff5698e command: style fixes for env addr reading
10 years ago
Ryan Uber 4c3ec248a5 agent: fixing up tests
10 years ago
Ryan Uber bf48651c58 agent: only ignore errors on IsNotExist()
10 years ago
Ryan Uber 4675cdf01c agent: beginning refactor
10 years ago
Jeff Mitchell 9fcea08dbb Ensure a socket is created for permissions adjustment tests and fix some
10 years ago
Jeff Mitchell 32d2c6b848 Add a Unix socket RPC test. I modified some code in the testing library to not make assumptions about the listening socket; all RPC tests still pass. Still to do: Unix socket HTTP test.
10 years ago
Jeff Mitchell 0cc009c480 Remove unnecessary ClientListenerAddr function. Rework config test functions to be cleaner. Start of runtime tests.
10 years ago
Jeff Mitchell 8362e3e9eb Tests for populateUnixSocket. Still need to write tests for the other major function, and basic socket listening tests.
10 years ago
Jeff Mitchell 11a3ce0bdd RPC and HTTP interfaces fully generically-sockified so Unix is supported.
10 years ago
Armon Dadgar 96c7ce120e command/agent: Minor cleanups
10 years ago
Armon Dadgar 713d30c73e Merge pull request #592 from nicholascapo/check-http
10 years ago
Armon Dadgar aedaf7a7c8 Merge pull request #595 from ebroder/dns-only-passing
10 years ago
Evan Broder a0228a64e2 Add more thorough testing for only_passing behavior
10 years ago
Nicholas Capo 641476a822 command/agent: Add tests for HTTP Check
10 years ago
Ryan Uber b2fbaea18c agent: make dns randomization test more reliable
10 years ago
Nicholas Capo 98eb935392 command/agent: HTTP Check: Create httpClient in Start()
10 years ago
Nicholas Capo bcb983edbe command/agent: HTTP Check: Include response in check status
10 years ago
Nicholas Capo 50853265dd command/agent: Stop HTTP checks when the check is removed
10 years ago
Nicholas Capo 6a2d763d5c command/agent: HTTP check: Any 2xx is OK, 429 is WARNING
10 years ago