Commit Graph

67 Commits

Author SHA1 Message Date
Luke Kysow
da236e953b Test Bitbucket Server 2018-07-24 20:34:01 +02:00
Luke Kysow
e8c0f7c5bb Add webhook secret checking. 2018-07-24 20:25:20 +02:00
Luke Kysow
33926a01f2 WebHook -> Webhook 2018-07-24 20:24:27 +02:00
Luke Kysow
a4c48f5d47 Add provisional Bitbucket Server support 2018-07-24 20:23:51 +02:00
Luke Kysow
5a842fb0bf Fix gometalinter errors 2018-07-24 17:02:01 +02:00
Luke Kysow
af03ff36e2 Update security warnings. 2018-07-23 12:31:00 +02:00
Luke Kysow
1fc4667c63 WIP bitbucket 2018-07-19 21:52:33 +02:00
Luke Kysow
9b2d037373 Add .gometalint.json config
After update of errcheck, needed to explicitly disable checking fmt
functions.
2018-07-05 13:54:10 +02:00
Luke Kysow
8effd01125 Test new allow-repo-config flag 2018-07-02 19:01:40 +02:00
Luke Kysow
13a70c772d Add new --allow-repo-config flag. 2018-06-30 23:27:15 +02:00
Luke Kysow
b4993b60ea Rename bootstrap to testdrive.
Bootstrap is meant for a system that sets itself up. This command is
more like a testing mode so I want to rename it to avoid confusion.

Fixes #129 and came out of #117.
2018-05-30 13:35:05 +02:00
Luke Kysow
74d4cc6cef Add newlines between flags in help output.
- This will make the help output easier to read. To accomplish this, we
needed to not set defaults via cobra because then the default would be
printed on another line which looks bad. So now we set the defaults
ourselves.
- Also had to update spf13/pflag to the version that supports newlines
in flag descriptions.
2018-03-28 12:19:48 -07:00
Luke Kysow
dcb73d2f31 Error during atlantis bootstrap if ngrok running 2018-03-20 12:46:22 -07:00
Luke Kysow
c8f68e2297 Refactor env var work and add tests.
- added tests
- moved AutomaticEnv() call into the init() function of the server flag
so it's set when we run the tests. Before it was in main().
- Set SetTypeByDefaultValue to true so boolean flags can be specified as
env vars.
2018-03-20 12:13:45 -07:00
Luke Kysow
8aca81966f Add Apache 2 license and copyright.
Add Apache 2 license and Hootsuite copyright to all golang
files. Add a disclaimer that the files have been modified
hereafter by contributors to this repo in order to abide
by the Apache 2 license requirements.
2018-03-15 17:25:02 -07:00
Luke Kysow
a0f05f7001 Use const for version. Fix tests, format. 2018-03-14 10:04:09 -07:00
Luke Kysow
d9ff7cff7b Don't rename some comments 2018-03-12 09:40:46 -07:00
Paul Salaberria
1154a09536 Rename config structs
- Config to UserConfig
- FlagNames to Config
- Use AtlantisVersion to be clear
2018-03-11 23:38:33 +01:00
Luke Kysow
0e6bae7226 Output usage on error. 2018-03-11 12:51:11 -07:00
Luke Kysow
c9a9c2deb3 Update README. Fix gometalint errors. 2018-03-08 22:40:00 -08:00
Luke Kysow
31dc84853a [Draft] Add --repo-whitelist option.
- this option is now required which breaks BC
- will validate that an event is coming from a repo that we trust
- started refactoring event_controller tests to use less mocks
2018-03-08 17:49:47 -08:00
Luke Kysow
b45ee9c86c Set max column width for help output.
Also add > to flag description so easier to differentiate between a new
flag description.
2018-03-07 13:36:24 -08:00
Luke Kysow
35d3e14124 Add --allow-fork-prs option. Default to false.
Operating on forked pull requests is dangerous if it's a public repo
because anyone can make a pull request to a public repo. We default to
false like CircleCI and TravisCI who don't allow credentials to be
available on fork PRs.
2018-03-06 20:09:55 -08:00
Luke Kysow
4941456cb1 Warn on unset webhook secrets. Document security. 2018-03-06 17:31:51 -08:00
Luke Kysow
486d3615de Merge pull request #10 from runatlantis/data-dir
Convert relative --data-dir paths to absolute.
2018-02-18 21:34:51 -08:00
Luke Kysow
6c159feff4 Rename to runatlantis from atlantisnorth. 2018-02-18 21:28:18 -08:00
Luke Kysow
e2a02fd991 Convert relative --data-dir paths to absolute.
Fixes https://github.com/hootsuite/atlantis/issues/245
2018-02-16 10:06:46 -08:00
Luke Kysow
0299d3ee12 Move to new atlantisnorth repo 2018-02-06 13:29:36 -08:00
Luke Kysow
c54dd589c6 Native SSL Support (#233)
Add two new flags ssl-key-file and ssl-cert-file to enable Atlantis to serve over SSL natively instead of going through an NGINX proxy.

This is a squashed commit containing the primary work by @natemueller
2018-01-23 11:32:22 -08:00
Luke Kysow
178867569d Update website for GitLab. Fixes #194 2017-12-03 21:00:44 -08:00
Luke Kysow
e5b06454ba Fix gas linter errors. Disable err checking since that's handled by errcheck 2017-11-27 21:04:14 -08:00
Luke Kysow
cc924899e5 Add documentation for server, bootstrap and server/events packages 2017-11-26 21:41:06 -08:00
Luke Kysow
9dc9434db2 Slack integration (#199)
Thanks to @nicholas-wu-hs !
2017-11-16 20:13:06 -08:00
Luke Kysow
fa43febf60 Gitlab (#190)
Gitlab initial implementation
2017-11-16 13:22:28 -08:00
suhussai
9921486669 check if err is nil before printing it 2017-11-03 00:28:37 -06:00
Luke Kysow
73d04fb89a Add gometalint. Fix errors (#176) 2017-10-31 20:07:41 -07:00
Luke Kysow
3d361ebd59 Code review fixups 2017-10-28 20:04:15 -07:00
Luke Kysow
fe773fe757 Test cmd/server 2017-10-28 18:06:10 -07:00
Luke Kysow
00642aad14 Enable silencing output to keep tests clean 2017-10-28 10:06:12 -07:00
Luke Kysow
03317b9aa4 Refactoring to enable easier command testing 2017-10-28 09:30:06 -07:00
Luke Kysow
5b4a52446b Initial refactor to allow for testing cmds 2017-10-26 07:15:56 -07:00
Luke Kysow
4f624c673c Add blank test files to ensure included in coverage report 2017-10-20 08:21:32 -07:00
Luke Kysow
6dc9de175d Remove assume role functionality. Rely on Terraform. Fixes #112 2017-08-15 09:58:41 -07:00
Luke Kysow
ff0f32ca01 Add ability toverify webhook secret. Fixes #34 2017-08-13 22:28:38 -07:00
Luke Kysow
83ac2f72b2 Uppercase URL 2017-08-02 13:40:14 -07:00
Luke Kysow
433f8875c3 Make bootstrap re-runnable. README edits 2017-08-01 22:37:20 -07:00
Luke Kysow
ccdfeae8c1 Default require-approval to false (#88) 2017-07-31 00:15:35 -07:00
Luke Kysow
e728d2548b Add Getting Started instructions. Rename gh-password to gh-token 2017-07-27 13:51:48 -07:00
Anubhav Mishra
c37e8f3590 adding atlantis bootstrap mode to support getting started with atlant… (#80)
* adding atlantis bootstrap mode to support getting started with atlantis for first time users

* removed unwanted confirm variable

* vendoring dependencies

* more vendoring

* more more and more vendoring

* comment about bootstrap package

* Proposed changes (#84)

* reviewed all the comments

* removing required approval flag since we will default to false
2017-07-18 22:02:49 -07:00
Luke Kysow
6ce0bba798 Pass in session to be assumed each time 2017-07-18 09:07:21 -07:00