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

29 Коммитов

Автор SHA1 Сообщение Дата
v-ajajvanu d59ab9449e
User story 106893 - Removed -AsPlainText and made use of Secret management module. (#3907) 2024-10-07 16:47:17 -07:00
Fernando Henrique Inocêncio Borba Ferreira ee01474802
[CI] Remove flag -EnableRbacAuthorization and Restore Deleted KVs (#4013)
* Remove flag -EnableRbacAuthorization

* Add commands to restore deleted key vaults
2024-08-13 10:55:43 -07:00
rajithaalurims 36333f8f35
New service connection object with workloadidentity (#3855)
* New serive connection object with cert is used

* new service connection with workload federated identity

* Azure Powershell version changed to 5

* Add support for ClientAssertion type
2024-05-15 12:19:13 -05:00
Fernando Henrique Inocêncio Borba Ferreira fc632d7d71
[Tests] Refactoring test accounts (#3747)
* Create all accounts as service principals.
* Handling empty collections of user accounts.
* Set up new app environment variables.
* Expand the use of service principals.
2024-03-13 21:15:06 +00:00
Fernando Henrique Inocêncio Borba Ferreira 13127b3c02
[Pipeline] Change pipeline auth method (#3745)
* Change auth to use a service principal instead of an user.
* Expand client_credentials auth.
* Mark tests as flaky.
2024-03-12 11:05:29 -07:00
Mikael Weaver a7ea16e547
Add backward compatibility for historical export SQL changes (#3609)
* Made new export with history and soft delete SQL proc schema backward compatible

* Fixed SetupAAD pipeline error
2023-12-01 13:36:08 -08:00
Paul Taladay 8d991a17c1
Migrate Keyvault to Azure RBAC (#3602)
* First round of changes to convert script to microsoft graph

* Switched to just installing ms graph authentication instead of the whole sdk

* Switched to keyvault with Azure RBAC enabled and set currentObjectID to Key Vault Secrets Officer. Removing ms graph install since the AzurePowershell task installs Azure Az library.

* Added resource group to getAzkeyvault as I think it is timing out searching such a large subscription.

* Reverting changes made for ms graph

* Removing scope as it isn't needed and is incorrect anyway

* Added placeholder hsm for role creation.

* Creating Hsm and setting in role assignment

* Adding hsm module to installation at begining

* Removed hsm resource

* Updated scope in the new azroleassignment call.

* Updated provision deploy to use azure rbac

* Updated access policy to rbac role assignment

* Updated role definition

* Scope is invalid

* Bug where keyvault name is uppercase. Causes issues later.

* Says the InRemovedState is mandatory. Adding in.

* Added to lower on webapp name

* Adding logging to track down where we are not lowering the servername value.

* Added role assignment to initial deploy as it doesn't need to be assigned after.

* Found the locations to lower the serverName

* Had incorrect placement of to lower

* Fixed extra ) and changed back to webapp name parameter and just called to lower in the provision health check

* Updated roledefinitionid

* Removed scope

* Switching back to keyvault role assignment
2023-11-27 11:19:27 -08:00
Robert Johnson 1e69ab4574
Add longer wait (#3552) 2023-10-13 16:35:06 -07:00
apurvabhaleMS d1046daad0
Revert "Add import to OSS Export pipeline (#3183)" (#3201)
This reverts commit 83d6fb9af6.
2023-03-28 11:35:08 -07:00
Paul Taladay 83d6fb9af6
Add import to OSS Export pipeline (#3183)
* Adding import test to export pipeline

* Fixed typo in test name

* Made pipeline more generic. There is now a shared variables file that takes the name of the test area that it needs to return variables for. Still need to create the Import environment to test this out.

* Updated variables for ci and pr pipeline since the build variables yml is shared between all the pipelines.

* Split from testarea file because it won't let you use two templates files where one has a parameter to set the variables.

* Moved template to variables section of job

* Updated duplicate naming

* Missed updated on depends on

* Moved variables back to build-variables as the testArea template doesn't work as intended due to limitations.

* Missing -

* Added values.

* Updated environment name variable.

* Added in additional check for when used in Export pipeline

* Added in code from e2e-tests.yml to create the TestIntegrationStore and key that the import test fixutre needs.

* Added appname variable.

* Can't use variable moved to inline

* Forgot to change to = sign from :

* Added check to remove stu3 since current env doesn't add that version to end of app name.

* Removed unneeded code in integration test fixture.

* Removed using

* Change to user for auth

* Add import user and remove cosmos db test run

* Update tags

* Fix cleanup scripts

* Remove unused environments

* Add sql

* Added global importer user id

* Updated test urls as they should point to resoluteopensource and not the azurewebsites tenant.

* Test urls needed to be the tenant domain and not default to azurewebsites.net. This was causing the web apps to deploy under azurewebsites.net and not the resoluteopensource tenant.

* tenantDomain isn't used in all pipelines. Moving back to the resoluteopensource tenant name.

* Added logging to validate webapp name used

* Added explicit domain variables to reference. Log output is showing *** for audience meaning that this tenantDomain value isn't set.

* Updated TestApplicationResource to use the static value of tenantDomainSuffix

* Added logging for tracking.

* Removed temporary logging. Added filter to exclude Authorization tests since they will not work in this environment.

* Changed test app resource to oss tenant.

* Changes for testing.

* Back to azurewebsites value

* Added a new argument to allow overriding of the audience in a multi tenant situation.

* Changed audience to app override instead

* Missed couple locations to update.

* Believe this is the cause of the duplicate key issue.

* TestApplicationResource was incorrect

* Updated filter to only target the import tests in SQL tests and added in cosmosdb import tests.

* Added restart for import cosmos setup

* Removed unneeded changes

* PR comment fixes

* Updated Test application resource to resolute oss as PR builds are failing

* Added try catch for second auth environment setup.

* Undid domain change. Try catch should fix PR issue.

* Added override for pr pipeline to use proper resource url for tests.

* Moved resourceTenantDomainSuffix to each pipeline variables file since PRs appear to behave differently  that the others.

* Adding in old build variable values to pr variables to separate from other envionrments.

---------

Co-authored-by: LTA-Thinking <rbrucej@gmail.com>
2023-03-23 12:13:52 -07:00
dependabot[bot] 8c39f5ef46
Bump HealthcareSharedPackageVersion from 3.2.45 to 4.0.6 (#2414)
* Bump HealthcareSharedPackageVersion from 3.2.45 to 4.0.6

Bumps `HealthcareSharedPackageVersion` from 3.2.45 to 4.0.6.

Updates `Microsoft.Health.Abstractions` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.Api` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.Extensions.DependencyInjection` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.Test.Utilities` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.Core` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.Extensions.BuildTimeCodeGenerator` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.SqlServer` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.SqlServer.Api` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.Tools.Sql.Tasks` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

Updates `Microsoft.Health.Client` from 3.2.45 to 4.0.6
- [Release notes](https://github.com/microsoft/healthcare-shared-components/releases)
- [Commits](https://github.com/microsoft/healthcare-shared-components/compare/3.2.45...4.0.6)

---
updated-dependencies:
- dependency-name: Microsoft.Health.Abstractions
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.Api
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.Extensions.DependencyInjection
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.Test.Utilities
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.Core
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.Extensions.BuildTimeCodeGenerator
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.SqlServer
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.SqlServer.Api
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.Tools.Sql.Tasks
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.Health.Client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bumping sdk version

* Fix sql connection strings for local connections due to update SqlClient version upgrade

* Upgrade runtime

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Richa Bansal <ribans@microsoft.com>
2022-01-07 16:34:30 -08:00
Robert Johnson 9f7055a429
Fix setup AAD pipeline step (#2293)
+semver: patch
2021-10-20 12:33:00 -07:00
namadabu ba38944478
Build: Update client app admin consent flow (#2105) 2021-07-23 13:36:56 -07:00
namadabu de304363c7
Disable auth tests to unblock build pipeline (#2085) 2021-07-13 20:31:25 -07:00
Ivan Matantsev 47d6c17771
Remove string interpolation from calls to logger. (#1833)
* Introduce FhirAnalyzer which currently hold only one rule.
It's checking calls to ILogger.Log* methods and make sure we don't pass variable string via string interpolation.
Also clean up code to conform to that rule.
2021-04-13 12:18:04 -07:00
Marcus Robinson 4a1da8e155
Docker compose: set automatic updates to schema (#1576)
Closes #1575
2021-01-11 10:11:22 -08:00
Chris e169022bc9
Run the container image as a non-root user (#968)
* set the default container user to a non-root one

* updated docs and release docker-compose with changed default port

* updated changed port in docker README
2020-04-07 09:07:37 -07:00
Robert Johnson 69ce1fc09e
Send Docker image with CI build (#924)
Creates Docker images on PR and CI builds and pushes them to a Azure Container Repository.

Co-authored-by: Brendan Kowitz <bkowitz@microsoft.com>
2020-03-19 15:44:05 -07:00
John Stairs 034aea8a6a
RBAC restructuring (#884) 2020-02-18 22:13:38 -08:00
Michael Hansen 62d7453a89
Switched to Az module (#698) 2019-10-26 07:49:03 -07:00
brandonpollett 3b1360a601
Add auth secrets to keyvault (#555) 2019-06-25 16:30:16 -07:00
Brendan Kowitz 03d71d4655
Updates Set-FhirServerApiUsers.ps1 (#414) 2019-04-08 16:33:22 -07:00
Michael Hansen 3d1898e705
Adding AadSmartOnFhirProxy
* Adding AadSmartOnFhirProxy
* Adding AadSmartOnFhirProxy E2E Tests
* Adding CORS parameters to template
* Adding SmartLauncher Sample App
2018-12-18 19:45:18 -08:00
brandonpollett 4d73c5ebc0
Make scripts more robust for keyvault and resource group. (#200) 2018-11-28 10:03:31 -08:00
Michael Hansen 0c46787bd9
Role definitions during deployment (#136)
* Work on AAD roles deployment scripts

* Moved Set-FhirServerApiApplicationRoles

* Moved Set-FhirServerClientAppRoleAssignments to FhirServer module

* Created Set-FhirServerUserAppRoleAssignments.ps1 for adding users to roles

* Adjusted calls in FhirServerRelease to use new functions in FhirServer and updated deployment documentation

* Fixed bug and added instructions for specifying roles

* Check for role assignment when New-AzureADServiceAppRoleAssignment throws

* Fixed multiple incompatibilities in Add-AadTestAuthEnvironment.ps1, fixed a few bugs

* Updated documentation based on PR feedback

* Additional PR feedback
2018-10-25 15:01:47 -04:00
brandonpollett 87030e2f89
Check to see if role already exists, not that roles exist. (#131) 2018-10-24 09:21:00 -07:00
garamamo b5699d2b7a
Adds basic RBAC (#86)
* Commit for working auth e2e. Committed for save.

* Added unit tests.

* Added proper username/password for tests.

* Updated to set up users in identity server correctly.
Added ways for tests to run as an app as well as user.

* Fixes casing of file

* Added consent to native applications.

* Grant admin consent for client apps

* Improve robustness of admin consent

* Updated the resource env variable.

* Updated summary.

* Updated comments.

* Testing getting token using new httpclient.

* Fix issue with getting the correct environment variables while getting bearer token.

* Testing with existing HttpClient instead of a new one.

* Fixed null check on user.
2018-10-22 22:24:46 -07:00
brandonpollett 1e6e1a0bb1
Add scripts for setting up and tearing down AAD environment for tests (#97) 2018-10-17 20:54:25 -07:00
John Stairs 664361eaf4
Introduces testauthenvironment.json for defining roles, users, apps, and role assignments. (#90) 2018-10-12 06:34:38 -07:00