Commit Graph

2135 Commits

Author SHA1 Message Date
Luke Kysow
2d214b2727 Restrict possible project names.
We should only allow project names (which are specified in an
atlantis.yaml file) that don't need to be url escaped. The one
exceptional character is '/' which we allow because users like to name
their projects to match the directory they're in. We use the same rule
that Terraform uses for workspace names.

I've also changed the characters that are replaced when writing out the
plan filename to only remove invalid filename characters instead of just
allowing alphanumeric. This is the smallest amount of change required to
ensure the filename is valid.
2018-10-30 13:01:48 -05:00
John Lin
b652568798 replace all invalid char in plan filename 2018-10-30 11:43:24 -05:00
Luke Kysow
a91af8bc46 Merge pull request #334 from runatlantis/tf-0.11.0
Upgrade to terraform 0.11.8
2018-10-30 11:34:26 -05:00
Luke Kysow
046db6924d Merge pull request #333 from runatlantis/rename-root-cmd
Remove 'through GitHub and GitLab' from help description.
2018-10-30 11:26:37 -05:00
Luke Kysow
55d9ddf599 Merge pull request #336 from runatlantis/lockmessage
Make project locked message look better.
2018-10-30 11:26:20 -05:00
Luke Kysow
b5731499e6 Merge pull request #335 from runatlantis/ggpsigntest
Fix tests when git config uses gpg signing.
2018-10-30 11:18:48 -05:00
Luke Kysow
4d3c567d87 Make project locked message look better.
When the plan fails, it gets the error prepended with **Plan Failed**:.
Thus we don't need to add our own "**Unable to run plan**" error.
2018-10-30 11:16:16 -05:00
Luke Kysow
4fcece0f9d Fix tests when git config uses gpg signing.
- some of the tests run git so if you're using gpg signing you need
  to disable that.
- refactor test helpers to use tb.Helper() and make the error output red.
  This is useful because if another helper uses one of these helpers,
  when it calls .Helper() its output will also be up the stack.
2018-10-30 11:15:46 -05:00
Luke Kysow
5a8230d6e1 Merge pull request #325 from marcb1/updating-message-when-project-is-locked
Updating message when project is locked.
2018-10-30 10:51:00 -05:00
Luke Kysow
7c955b1f1d Upgrade to terraform 0.11.8 2018-10-30 10:34:54 -05:00
Luke Kysow
0d97452c67 Remove 'through GitHub and GitLab' from help description.
We now support Bitbucket so this is inaccurate and also it's not
going to scale to keep adding all the VCS hosts we support.
2018-10-30 10:21:37 -05:00
marc bassil
189b0591ef Updating message when project is locked. 2018-10-26 14:03:08 -04:00
Luke Kysow
f56e06a578 Merge pull request #323 from runatlantis/remove-hosting-consulting
Remove links to hosting and consulting.
2018-10-18 15:25:15 -05:00
Luke Kysow
28f3704ba4 Remove links to hosting and consulting. 2018-10-18 15:14:50 -05:00
Luke Kysow
5cd7208420 Merge pull request #313 from vanetix/f/silence-whitelist-errors
Add --silence-whitelist-errors server flag
2018-10-16 12:55:17 -05:00
Matt McFarland
05a0b09402 Remove unneccessary NewRepo call in tests 2018-10-16 12:47:26 -05:00
Matt McFarland
901cc0aa20 Update per requested changes, fix typos in test comments 2018-10-16 12:43:13 -05:00
Matt McFarland
23b56238b1 Add initial implementation of --silence-whitelist-errors server flag 2018-10-11 15:25:24 -05:00
Luke Kysow
f174bf83ac Merge pull request #307 from Mistobaan/patch-1
Update atlantis-yaml-use-cases.md
2018-10-06 23:17:23 -05:00
Fabrizio Milo
f95e484bbc Update atlantis-yaml-use-cases.md
missing `run` step name
2018-10-04 19:12:48 -07:00
Luke Kysow
0e4dc4f3dc Merge pull request #304 from runatlantis/quote-planpath
Quote args and plan path that may contain spaces.
2018-10-01 20:22:12 -05:00
Luke Kysow
e98caf3094 Quote args and plan path that may contain spaces.
Bitbucket repo owner names can contain spaces. Need to quote everywhere
these might be used because we're executing with sh -c.
2018-10-01 19:04:48 -05:00
Luke Kysow
5f26c8182d Merge pull request #300 from runatlantis/atlantis-vars
Add new -var args for tf plan.
2018-10-01 13:46:31 -05:00
Luke Kysow
f8a0e082ff Merge pull request #301 from runatlantis/documenttesting
Add docs for how to run tests in Docker
2018-10-01 13:45:44 -05:00
Luke Kysow
2881bd9012 Update docs for new -var arguments. 2018-10-01 13:28:51 -05:00
Luke Kysow
e82c301f58 Add docs for how to run tests in Docker 2018-10-01 11:49:59 -05:00
Simon Heather
d630333b2d Get atlantis testdrive to run on Windows (#298) 2018-10-01 11:45:50 -05:00
Luke Kysow
e69c36ad55 Add new -var args for tf plan.
Previously we added -var atlantis_repo=runatlantis/atlantis but the '/'
character is not a valid character for the AWS assume role session name.
To fix this, this commit adds -var atlantis_repo_owner=runatlantis and
-var atlantis_repo_name=atlantis (where runatlantis and atlantis would
be the values for the repo the pull request is from ).
2018-10-01 11:35:45 -05:00
Luke Kysow
1af6c77e00 Update CHANGELOG.md 2018-09-28 12:01:47 -05:00
Luke Kysow
0c7fa9dc8b Merge pull request #297 from runatlantis/release-0.4.10
Release 0.4.10
v0.4.10
2018-09-28 11:46:08 -05:00
Luke Kysow
8f16166aa3 Release 0.4.10 2018-09-28 11:32:10 -05:00
Luke Kysow
6542bd8f28 Merge pull request #296 from runatlantis/sessionname
Sessionname
2018-09-28 11:08:50 -05:00
Luke Kysow
6b64cf7939 Merge pull request #293 from runatlantis/fix-output
Fix multi-project output.
2018-09-28 11:08:35 -05:00
Luke Kysow
d347037f89 Merge pull request #292 from jolexa/patch-2
Update example for new tf run variables
2018-09-28 11:02:17 -05:00
Luke Kysow
8454ad9add Fix example for session_name 2018-09-28 11:01:14 -05:00
Luke Kysow
5d05f3df3b Fix multi-project output.
Was causing output to look broken for GitHub.
2018-09-28 10:21:18 -05:00
Jeremy Olexa
b4c7bae4e1 Update example for new tf run variables 2018-09-28 10:18:09 -05:00
Luke Kysow
7e2d2d1bf9 Merge pull request #291 from runatlantis/bitbucket-spaceseparated
Quote the -out variable in terraform plan.
2018-09-27 15:46:15 -05:00
Luke Kysow
c56aa9e104 Quote the -out variable in terraform plan.
Fixes #290. In Bitbucket Server, the repo owner name can have spaces.
This causes errors when running terraform plan -out path with spaces so
we need to quote it: terraform plan -out "path with spaces".
2018-09-27 15:40:47 -05:00
Luke Kysow
a0de1c8cb4 Merge pull request #289 from runatlantis/release-0.4.9
Release 0.4.9
v0.4.9
2018-09-27 15:12:57 -05:00
Luke Kysow
5b7eb2a49d Release 0.4.9 2018-09-27 15:08:31 -05:00
Luke Kysow
a5a21ed07b Merge pull request #287 from runatlantis/tfvarsrebase
Execute tf with vars that give source of run.
2018-09-27 14:55:41 -05:00
Luke Kysow
e51d36b33e Update docs for new tf variables. 2018-09-25 12:44:24 -05:00
Jeremy Olexa
c278bac6be Execute tf with vars that give source of run.
Add new variables to execute TF with:
  -var atlantis_repo=owner/repo
  -var atlantis_pull_num=10

These can be used within TF to set the session_name of the AWS session
that Terraform creates. This allows all API calls to be traced back to a
specific pull request and user.
2018-09-25 12:31:20 -05:00
Luke Kysow
411b8f87f1 Merge pull request #278 from runatlantis/commentfolding
Fold long output. Fix diff highlighting.
2018-09-15 09:17:58 -07:00
Luke Kysow
bac2ee7619 Fold long output. Fix diff highlighting.
* If output is longer than 12 lines, wrap it in markdown folding for
GitLab and GitHub.
* Reformat the Terraform plan output so that the + and - lines show up
highlighted properly when using the diff syntax highlighting
2018-09-15 09:12:43 -07:00
Luke Kysow
e8c7d819b5 Inputfalse (#277)
Add input=false to init, plan, and apply step runners
2018-09-14 14:47:51 -07:00
Luke Kysow
4ba8740026 Merge pull request #274 from runatlantis/release-0.4.8
Release 0.4.8
v0.4.8
2018-09-13 16:16:54 -07:00
Luke Kysow
9647327959 Release 0.4.8 2018-09-13 16:12:16 -07:00
Luke Kysow
5be05cbd44 Merge pull request #272 from runatlantis/alpine-update
Update to alpine 3.8 to fix security vuln.
2018-09-13 16:01:06 -07:00