Граф коммитов

33 Коммитов

Автор SHA1 Сообщение Дата
Tamir Kamara d54520a3aa
Move core folder to root (#3016)
* move core folder to root

* fix paths

* fix letsencrypt lint errors

* Update core/terraform/destroy.sh

Co-authored-by: Yuval Yaron <43217306+yuvalyaron@users.noreply.github.com>

* lint

Co-authored-by: Yuval Yaron <43217306+yuvalyaron@users.noreply.github.com>
2022-12-26 18:49:29 +02:00
Tamir Kamara 28693097cd
Upgrade Porter to v1 (#3014)
* Porter v1 core changes (#2977)
* Update templates for Porter v1 (#2985)
* Update docs for porter v1 (#2992)
2022-12-26 13:14:53 +00:00
Liza Shakury 2c62e05ffa
Environment files consolidation (#2944)
* Condolidate env files

* Update changelog.

* Revert changes in devcontainer

* Remove devops sample env file

* Revert makefile load envs

* Remove auth from  makefile check dependencies

* Update version

* Update core version

* Fix sourcing

* Fix yaml lint

* Fix lint in bash

* Fix usage in bash

* CR fixes

* Update comment on var

* Fix lint

* Fix lint

* CR fixes + Disable hyphens in tre_id

* Update docs

* Update config file structure

* Remove tre_id from tre section

* CR fixes

* CR changes

* Fix version

* CR changes

* Update migration script
2022-12-12 14:09:03 +02:00
tanya-borisova 5067730259
Airlock manager can use user resources (#2649)
Co-authored-by: JaimieWi <92854957+JaimieWi@users.noreply.github.com>
2022-09-26 18:36:26 +01:00
Ross Smith 2e2f5e37b5
Create an auth.env when you `make auth` and load all the .env in automatically. (#2259)
* Removed scripts folder

* Linting

* Linting #3

* Added in build step

* PR comment

* Revert db-migrate

* Admin Consent

* Workspace Admin Consent

* Removed unsued variables

* Split AAD scripts up

* Working on bash read prompt

* Add a final check

* Removing private file

* Moving to Az cli 2.37 for Graph

* Removed appName from credential reset

* update_resource_access

* Remove AAD_TENANT_ID

* Rp should use 2.37 az cli

* increase mgmt AzureRM version

* Bump version

* Pinning versions of apt-get packages

* pipe and copy

* WORKDIR

* Move requirements to /tmp folder

* --no-install-recommends

* --no-install-recommends

* Create auth.env

* removed debug

* Update documentation

* Bump version

* Merge the .env files for local debugging
2022-07-14 15:27:07 +01:00
Tamir Kamara 6861e07326
E2E on main run in sequence (#1945)
* Allow e2e tests to run in sequence from main

* fix

* actions lint fix

* add missing markers to pytest.ini

* fix selector string

* update timeout
2022-06-01 11:30:36 +03:00
Martin Peck 38290b91fb
Ignore Only Root index.html (#1800)
* fixes #1775

* remove unwanted cli prefix

* only ignore root index.html
2022-05-10 12:41:25 +01:00
Stuart Leeks 4d155007a4
Add index.html generated by 'make letsencrypt' to gitignore (#1522) 2022-03-16 08:23:38 +00:00
Ross Smith 18daf19166
Ability to locally debug E2E tests (#1424)
* test-e2e-extended

* Renamed tre.env to private.env

* Some linting

* Remove AUTH_TENANT_ID

* TEST_WORKSPACE_APP_ID

* Fix markdown error

* Updated description
2022-03-03 14:36:28 +00:00
David Moore ce3ddb91af
Split out Firewall / Nexus / Gitea (#1365)
* WIP: doesn't work yet

* Make temporary changes to the makefile

* Fixes to firewall submodule

* Update Makefile

* move firewall name to locals

* Init porter bundles for Gitea and Nexus

* Add parameters to the new porter bundles

* Revert "Convert data inputs into variable inputs for modules in Terraform (#1154)"

This reverts commit c3e2cb7f0a.

* WIP: moving variables around for Gitea

* Update Gitea module to consume variables from data

* Fix several problems in firewall module

* Changes to Gitea terraform (fix state container, add az login for local-exec)

* Initial Nexus porter configuration

* Add Sonatype-Nexus bundle

* Uncomment firewall lock, fix local-exec command

* Fix comments

* fmt

* Gitea, Nexus: Move variable inputs to data and locals

* change path to nexus.properties

* temporarily remove arm_client_id

* fmt

* remove unused arguments

* fmt

* Use key_vault_reference_identity_id in Terraform

* Remove unused variables

* Deploy Firewall, Gitea and Nexus as part of the main build

* Add deploying of shared services to tre-deploy command

* Add uninstall back

* WIP: working transfer of state for Firewall

* WIP: fiddling with more states

* WIP: fix removal of terraform state

* Add import script for Gitea

* fixup tre-start/stop make target naming

* strip '-' from string in storage account name

* removed state_remove for gitea + nexus

* removed state_remove for gitea + nexus

* local modifications of import/remove state scripts

* fw / gitea / nexus deploy from local via tf functional

* gitignore

* bumped gitea version

* tf linting

* PR updates

* vars for ci

* added check_dependencies to login in CI

* check for non-existing RG and skipping import state if we're in a fresh CI

* removed lock from remove/import scripts

* remove/import state for gitea

* gitea and nexus state moved

* nexus + gitea state moved, apart from storage share

* fixed storage import

* PR snags

* override

* kv uri

* new secret import style

* secret

* secret

* state list

* state list

* remove state fix

* remove state special chars

* importing random_password to prevent KV updating

* moved make target out of default path

* supress risky log output

* unwound gitea/nexus state moving debacle

Co-authored-by: Tanya Borisova <tborisova@microsoft.com>
Co-authored-by: Ross Smith <ross-p-smith@users.noreply.github.com>
Co-authored-by: Stuart Leeks <stuartle@microsoft.com>
2022-02-25 13:46:14 +00:00
Elad Iwanir 06d6f95577
Fix extended tests results publishing (#1345) 2022-02-20 14:50:05 +02:00
Ross Smith b22dd61c76
Unit Tests only run if api_app has changed and are executed from docker build (#1304)
* Add unit tests into tasks

* Move Unit Tests back into Docker build

* workflow dispatch condition

* Catch the exit code

* Always output the test results

* Putting Unit Tests back to previous behaviour

* missed debug

* Allow pytest to fail, but build carries on

* Force failure

* Discover directory

* Check file existence

* Remove failing test

* Make Java fail

* Remove the failed java test

* typo

* Does the workflow fail on the publish step only

* Some linting

* Linting problems!

* Missing URI

* More missing URI
2022-02-15 17:43:49 +00:00
Ross Smith 9a3984bb25
Add unit tests into build validation (#1286)
* Unit Test job

* Run them in a dev container

* Use the latest devcontainer

* Add publishing

* Test results
2022-02-11 10:38:17 +00:00
Ross Smith a93efa85e4
Validate the custom address space (#1283)
* Validate the custom address space

* linting

* types
2022-02-10 22:02:02 +00:00
Ross Smith ab70d5781e
Setup debug experience for api development (#1250)
* Initial commit of debugging flow

* CHange to use user instead of spn

* Unnecessary export
2022-02-04 21:42:54 +00:00
tanya-borisova bc53bae489
Save terraform plan to a unique file, add a script to compare them (#1134)
* Output terraform plan into a different file each time (named with the same prefix as a log file)

* Add a script to compare terraform output files

* simplify the script
2022-01-20 14:59:00 +00:00
Ross Smith 3b5bac710f
Convert Tf output to env (#1140) 2022-01-20 00:13:37 +00:00
Tess Ferrandez d0a6fa8f28
implement disable/enable workspaces (Elad) (#777) 2021-09-06 13:53:51 +02:00
Denis Cepun 9d4e7f0f68
Workspace deletion through API added to e2e tests (#649)
Workspace deletion through API added to e2e tests
2021-08-17 12:13:10 +03:00
Denis Cepun ae082d67dd
Changes e2e get workspace template test to match new JSON from API (#640)
Changes e2e get workspace test to match new JSON in API
2021-08-16 13:02:47 +03:00
Marcus Robinson 39dadcc586
Fix missing deploy_gitea var (#473) 2021-07-19 09:11:13 +01:00
Marcus Robinson 9f31c8122b
Modify lets encrypt configuration and add TF wrapper (#468)
* [BUG] make letsencrypt not working
Fixes and ad tf wrapper #406

* remove test branch
2021-07-16 08:23:08 +01:00
Stephen Askew ee18905d3a
Dev container improvements. (#127)
This PR just contains a few changes to the Dev Container configuration that I found helpful working with it.

 * The container now mounts the ~/.azure directory, so that it uses the same Azure CLI profile that is configured on the host. (means you don't have to keep doing an `az login --use-device-code`.
 * The container mounts the bash history file from the host, so command history is preserved and specific to the project.
 * The Dev container now runs as the __vscode__ user, not __root__.
   - When using WSL this mean that new files are not created as root, so you still have access when outside the container.
   - It's also good practice not to develop as root.
  * The `pip install requirements.txt` is moved to the end of the Docker file so that changes to __requirements.txt__ doesn't cause all the `apt install`s to run again.
  * The running container is named `tre`. This is a bit of a personal preference and does have a trade-off.
    - The benefit is it make it easy to set up a profile in Window Terminal to run `docker exec -it tre bash` so you can have dev container shell outside VS Code.
    - The slight downside is the fixed name means you can only have one instance of the dev container running.
2021-06-01 10:01:38 +02:00
Stephen Askew 18eb065dda
Setup Application Gateway to use SSL (#103)
Updates to application gateway configuration and scripts to acquire a Let's Encrypt certificate.
2021-05-28 11:17:50 +01:00
Tomi Paananen 8c17c6d044
Adds the first iteration of the vanilla workspace bundle replacing the workspace base template (#116) 2021-05-26 17:40:23 +03:00
Denis Cepun 567ede7a97
Create resource processor function app skeleton (#102)
Creates resource processor function app skeleton, service bus, storage and function app
2021-05-25 09:29:56 +03:00
Tess Ferrandez 0fac2eddab
Implement Health Endpoint (#89)
* fix linting

* update documentation

* fix docker build

* fix linting

* fix linting

* fix docker workflow

* update app gateway path_rule to reflect that api is now at /api

* add probe per marrobis request

* fix markdown

* save files before line endings

* Normalize line endings

* update code project structure

* fix spelling nits

* fix per sachins comments

Co-authored-by: Tess Ferrandez <tess.ferrandez@microsoft.com>
2021-05-24 13:23:00 +02:00
Marcus Robinson 6b8ffc8a9e
Add bootstrap and deployment scripts (#93)
Add scripts to bootstrap TF environment, build and push docker images, and deploy the TRE.

- Add TF bootstrap scripts and templates to create TF state storage and ACR
- Add scripts to build and push the docker images
- Add deployment scripts to core TF templates
- Remove GitHub packages integration
- Set linter to run locally as we have already checkout out the files
2021-05-21 14:27:21 +02:00
Limor Lahiani a54c4f96dd
Adding spellchecker at pre-commit (#90)
Co-authored-by: Limor Lahiani <limorl@zhenghao5.redmond.corp.microsoft.com>
2021-05-18 09:08:35 +02:00
Marcus Robinson af10a024cf
Create quick start deployment documentation (#81)
* Add quickstart and dependancies

* fix linting add github extension

* Add quickstart and dependancies

* fix linting add github extension

* Fix typos
2021-05-13 19:35:49 +01:00
Tess Ferrandez 8082e2b1de clean up requirements 2021-05-06 17:38:31 +02:00
Tess Ferrandez 3d50fc8fcd add initial API 2021-05-06 15:05:07 +02:00
Marcus Robinson f4ddce8610
Add initial readme contents. (#10)
* Add initail readme contents.

* fix linting
2021-03-09 15:14:17 +01:00