Commit graph

298 commits

Author SHA1 Message Date
Tony Li
73914fdbd5
update server cli usage 2018-01-29 19:21:32 -05:00
Tony Li
e1a695bd04
update agent cli usage 2018-01-29 19:00:14 -05:00
Jacob McCann
8295166ca4 Update usage for keepalive-min-time 2018-01-24 08:41:11 -06:00
jhernandezb
546e0bad00
Fix autocert generation 2018-01-18 10:33:41 -06:00
Brad Rydzewski
4db23fae05
Merge pull request #2301 from jhernandezb/feature/acme-http-01
migrate to http-01 challenge
2018-01-15 17:00:25 -08:00
jhernandezb
32e80eca20
lets encrypt: migrate to http-01 challenge 2018-01-12 22:54:49 -06:00
Jacob McCann
36f99c9a3f Add explicit default for DRONE_KEEPALIVE_TIMEOUT 2018-01-10 13:39:40 -06:00
Jacob McCann
6eb9af01c6 Allow setting MinTime for keepalive enforcement on server
This allows setting agent keepalive Time at value < 5m
2018-01-08 14:46:44 -06:00
Jacob McCann
164fd0ad3f Update keepalive config to use DurationFlag 2018-01-08 12:47:08 -06:00
Jacob McCann
06fa27d937 Add keepalive to agents 2018-01-08 09:28:38 -06:00
Jesse Lang
b339532e0c Fix DRONE_HOST check 2017-12-20 06:49:02 -06:00
Jesse Lang
453f415cc4 Validate DRONE_HOST to ensure it contains a scheme and not a trailing slash 2017-12-19 20:08:55 -06:00
Mark Spicer
8476c90bbf Set the redirect handler for lets encrypt.
This commit sets the http handler to the redirect function for let's encrypt
enabled drone instances. In addition, the `Strict-Transport-Security` header is
added to the redirect given `header.Secure` will only be added for gin routes.

This commit resolves #2261.
2017-11-15 23:27:57 -05:00
Mark Spicer
238e916fa0 Redirect HTTP to HTTPS when SSL is enabled.
In our current drone setup, we are not using a proxy, thus letting drone handle
SSL termination. In addition, we are not exposing port 80 (effectively disabling
insecure drone access). When new engineers join and attempt to access drone,
they are not sent a 301 and often complain that they either do not have access
or that drone is broken (when in reality they are just accessing drone via the
incorrect protocol/port).

This commit changes the default behavior when running drone with a server-cert
by only sending redirects on port 80 rather than allowing both secure and
insecure access.
2017-11-15 21:36:02 -05:00
Bo-Yi Wu
7c1b1c6d95 fix wrong filter variable.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-17 16:52:35 +08:00
Brad Rydzewski
ec6016062b show loading status in user interface 2017-09-20 12:29:57 -07:00
Brad Rydzewski
ae51e9d1b9 force downgrade to http/1.1 because safari 2017-09-19 15:30:31 -07:00
Brad Rydzewski
8c7d48ebed graceful shutdown on SIGTERM 2017-09-14 18:42:00 -07:00
Brad Rydzewski
2f2144c4bd Merge remote-tracking branch 'origin/master' 2017-09-14 09:40:12 -07:00
Brad Rydzewski
63001a7c66 expose agent name to pipeline 2017-09-14 09:39:52 -07:00
Brad Rydzewski
bf454572f2 Merge pull request #2215 from bradrydzewski/master
add gitlab v3 option for backward compat
2017-09-14 07:57:53 -07:00
Brad Rydzewski
913d8701f2 add gitlab v3 option for backward compat 2017-09-14 07:50:07 -07:00
Matt Leung
820d07263b Add server env var to specify .drone.yml location
Allow setting DRONE_REPO_CONFIG to override default location of .drone.yml
2017-09-12 17:06:12 -07:00
Brad Rydzewski
42b60bd822 more advanced health check logic 2017-09-12 13:40:24 -07:00
Brad Rydzewski
eca91f4ec7 provide a basic agent healthcheck 2017-09-12 11:25:55 -07:00
Brad Rydzewski
8795cf039f reduce logfile upload limit 2017-09-12 09:03:32 -07:00
Brad Rydzewski
25c9b8050a introduce limiter for planned refactoring 2017-09-11 10:22:45 -07:00
Matt Leung
b79dae403e Let agent pass filter expression string for builds
Drone agent accepts DRONE_FILTER env var
2017-09-08 14:27:27 -07:00
Brad Rydzewski
e11dd116a2 Merge pull request #2155 from frebib/fix-repo-user
Fix extractRepositoryName() in agent logs
2017-08-23 15:44:10 -07:00
Joachim Hill-Grannec
c30198e412 Adding Environment variable to configure the session expiration 2017-08-17 12:50:31 -07:00
Joe Groocock
fbb9526a39
Fix extractRepositoryName() in agent logs 2017-08-10 15:55:58 +01:00
Brad Rydzewski
9a5c2d5481 structured agent logging 2017-08-03 15:36:22 -04:00
Brad Rydzewski
60cd607450 capture file metadata 2017-08-02 16:04:00 -04:00
Brad Rydzewski
241d994a26 abstract the user interface 2017-07-31 15:15:05 -04:00
Brad Rydzewski
99b10537ba enable redirect for http to https when certs provided 2017-07-26 10:44:38 -04:00
Brad Rydzewski
5e735c2632 improve experimental quic setup 2017-07-24 21:46:00 -04:00
Brad Rydzewski
2c8dbef79f implement quic server 2017-07-24 19:15:25 -04:00
Brad Rydzewski
07c82aa1c6 Merge remote-tracking branch 'origin' 2017-07-24 13:23:47 -04:00
Brad Rydzewski
39251a85a9 removed unused and broken packages 2017-07-24 13:23:22 -04:00
mingshun
eb94dc0419 Added integration for coding.net 2017-07-22 17:12:09 +08:00
Brad Rydzewski
eaa6d41699 pass agent hostname to all rpc calls 2017-07-20 12:21:15 -04:00
Brad Rydzewski
250b048b22 pass agent hostname to server and persist 2017-07-19 17:46:03 -04:00
Brad Rydzewski
35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski
f7066473c1 require DRONE_HOST on startup 2017-07-12 14:48:56 -04:00
Brad Rydzewski
a625f06c1a enable grpc auth 2017-06-29 19:35:38 -04:00
Brad Rydzewski
1a6920e822 separate agent and server binary 2017-06-29 18:51:22 -04:00
Brad Rydzewski
155576fb03 moved to single binary project structure 2015-09-29 17:53:21 -07:00
Dan Williams
0407297229 Make exiting edit back to repo view more efficent 2015-09-28 16:54:51 -04:00
Brad Rydzewski
8535ea44fd generate token via the UI 2015-09-09 14:34:28 -07:00
Brad Rydzewski
cdfec98cf4 cleaned up the token implementation for #1175 2015-09-09 14:05:52 -07:00
Brad Rydzewski
af82f7aa2c removed old, unused config package 2015-09-08 18:55:03 -07:00
Brad Rydzewski
2fcfd8100a re-enable SSL 2015-09-08 14:19:39 -07:00
Brad Rydzewski
c53e7173aa purging agent code from 0.4 ... out of scope for 0.4 release 2015-09-08 14:14:03 -07:00
Brad Rydzewski
008a16f7e7 removed drone-build to its owner repository, drone/drone-exec 2015-09-08 14:02:48 -07:00
Brad Rydzewski
5feac33f85 put yaml unmarshal after find/replace 2015-09-07 19:24:14 -07:00
Brad Rydzewski
5f802056e0 ability to encrypt the .drone.sec file 2015-09-07 15:33:55 -07:00
Brad Rydzewski
08b73384ac fix links to secrets 2015-09-07 12:32:30 -07:00
Brad Rydzewski
b65d1cda97 support for .drone.sec file 2015-09-07 12:13:27 -07:00
Brad Rydzewski
dbf0fa6ee0 consistent use of the _url in REST API 2015-09-03 17:21:08 -07:00
Brad Rydzewski
b1150ce6fb Merge remote-tracking branch 'upstream/0.4.0' into 0.4.0 2015-09-02 16:14:58 -07:00
Brad Rydzewski
98a6c14331 prepping for new drone-exec build agent 2015-09-02 16:14:25 -07:00
Kirilll Zaitsev
654dd31cbd Move gitlab routes to gitlab group 2015-09-02 05:19:11 +03:00
Kirilll Zaitsev
6854d1343e Additional fixes 2015-08-30 01:18:45 +03:00
Kirill Zaitsev
fd98e26575 GitLab service interface 2015-08-30 00:33:41 +03:00
Thomas Boerger
2577b6cda2 Integrated logout button into the UI 2015-08-27 09:48:57 +02:00
Chengwei Yang
ceacbdd4fe Fix default docker host configuration
Signed-off-by: Chengwei Yang <yangchengwei@qiyi.com>
2015-08-26 16:49:08 +08:00
Brad Rydzewski
b264e837fe build runner now in charge of timeout 2015-08-21 15:30:32 -07:00
Brad Rydzewski
bf1b9d2d8a use exit status 130 when canceling a build 2015-08-21 00:06:10 -07:00
Brad Rydzewski
50d3ea8e00 trap SIGINT and cleanup containers 2015-08-20 18:31:54 -07:00
Brad Rydzewski
943fafb67e hide UI things when user not authenticated 2015-08-20 17:43:44 -07:00
Brad Rydzewski
1b8a00f5f6 always check for new plugins, until we have an update strategy 2015-08-20 15:54:23 -07:00
Brad Rydzewski
e31b53f688 temporarily disable caching for public repos until we understand more 2015-08-19 15:54:29 -07:00
Brad Rydzewski
0c4c5d81a9 disable cache for public repo pull requests (for now) 2015-08-19 15:49:27 -07:00
Brad Rydzewski
b3f4cfccda setup error when workspace path not exists 2015-08-19 12:39:16 -07:00
Brad Rydzewski
164c0c6a8e move clone path calc due to panic 2015-08-19 12:38:08 -07:00
Brad Rydzewski
aeee201796 Merge pull request #1149 from donny-dont/features/git-checkout-specified
Adding support for setting the workspace directly in the config
2015-08-19 10:38:24 -07:00
Brad Rydzewski
06ef899c26 initial implementation and endpoint for #1145 2015-08-18 23:59:30 -07:00
Don Olmstead
b7635ec844 Fixing build and formatting issues 2015-08-18 18:29:01 -07:00
Don Olmstead
6b0f24cc11 Adding support for setting the workspace directly in the config 2015-08-18 17:34:04 -07:00
Brad Rydzewski
1cc2e3d4d6 add feed endpoint for wall 2015-08-18 16:09:27 -07:00
Brad Rydzewski
046f71ac06 Merge pull request #1142 from donny-dont/features/add-caching
Adding caching
2015-08-18 10:17:23 -07:00
Don Olmstead
d27788e4b4 Adding caching into the build. Fixing style issues 2015-08-17 16:25:08 -07:00
Brad Rydzewski
f191d130a3 some style for the restart button 2015-08-13 08:44:06 -07:00
Brad Rydzewski
f6078a4b71 fixed many minor UI bugs 2015-08-12 23:56:05 -07:00
Brad Rydzewski
d34cd6e5e9 ability to package 0.4 (.deb only at the moment) 2015-08-11 23:57:12 -07:00
Brad Rydzewski
25c905c7ed fixed issue w/ double-loading controllers 2015-08-10 22:33:51 -07:00
Brad Rydzewski
c62ca29469 format jobs and include exist code, duration, etc 2015-08-10 22:17:58 -07:00
Brad Rydzewski
194f7dd6ca make status icons 32px for consistency 2015-08-10 00:58:48 -07:00
Brad Rydzewski
daa29edbc6 added overall build status to header 2015-08-10 00:29:04 -07:00
Brad Rydzewski
c1d18b65bb mark active job in list 2015-08-09 20:52:08 -07:00
Brad Rydzewski
819fa9db87 status icons, animated running icon 2015-08-09 20:18:21 -07:00
Brad Rydzewski
c6b9d09602 added alpine build image 2015-08-09 15:36:25 -07:00
Brad Rydzewski
9a70cb5ab4 slowing improving install process 2015-08-06 15:53:39 -07:00
Brad Rydzewski
e28930f997 adding flag package to deps 2015-08-06 09:22:31 -07:00
Brad Rydzewski
0b98eb4186 improving database & remote setup 2015-08-06 08:54:47 -07:00
Don Olmstead
c80e42287d Removing TOML config references 2015-08-04 11:21:20 -07:00
Brad Rydzewski
90baef95e7 removed un-used config flag 2015-08-03 22:51:08 -07:00
Brad Rydzewski
653cb0e7a7 added avatar to repository 2015-08-03 00:10:43 -07:00
Brad Rydzewski
a3b6759cf9 persist avatar_url instead of gravatar_id 2015-08-02 23:50:08 -07:00
Brad Rydzewski
0c68b116ab tweak login page 2015-08-02 23:19:59 -07:00