SRE Incident Assistant Microservice Gateway
Перейти к файлу
Ying Zhao dca50bdc42 inlined createLinks() 2018-01-26 13:24:09 -08:00
Sia.Data.Incident.Tests Module updates 2018-01-08 10:28:26 -08:00
domain@88189e9d1c merge master onto extendsLinksHeader 2018-01-24 11:17:56 -08:00
src inlined createLinks() 2018-01-26 13:24:09 -08:00
test/Sia.Gateway.Tests 42061: test2 2018-01-26 10:12:59 -08:00
.gitignore Initial commit 2017-09-01 09:59:28 -07:00
.gitmodules Moved domain and shared to submodule 2017-10-26 15:49:59 -07:00
LICENSE Initial commit 2017-09-01 09:59:33 -07:00
README.md Moved documentation from the Sia.Gateway web project to the git repository root 2017-11-13 12:03:34 -08:00
Sia.Gateway.sln Merged from master to resolve conflicts 2017-12-27 14:47:16 -08:00

README.md

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

//Todo: figure out what else should be in this file. #Cloning this repository

This repository has the https://github.com/Azure/Sia-Root git repository embedded as a submodule. Once you've cloned this repository, use your git client to navigate to "domain" subdirectory, and run

  1. git submodule init
  2. git submodule update

This will clone the submodule repository. For more information on submodules, see the Git Tools Documentation for Submodules

#Setting Up Your Development Environment

This Gateway is intended to be extended by Sia microservices in other code repositories.

In order to test functionality of the gateway on your local machine:

  1. For each 'Service' in appsettings.Development.json:
    1. Clone the associated repository (Example: Incident is associated with the SiaManagement repository)
    2. Change the default startup from the project name to IIS Express and start
    3. You will need to have a separate visual studio instance open for each service the gateway will interact with. (If you find a good way to do this without having visual studio open, please let the maintainers of this project know)
    4. Validate that the localhost port the service is running on matches its configuration in appsettings.Development.json. You can find IIS Express information by right clicking the IIS Express icon in your system tray.
  2. Get appropriate Secrets for authentication
    1. Right click on the Sia.Gateway project and select "Manage user secrets"
    2. Open usersecrets.template.json to use as a template for your usersecrets json file
    3. You will need these configuration values:
      1. Your AAD instance (the default is correct for the vast majority of scenarios)
      2. Your AAD tenant
      3. Your Key Vault vault name
      4. Your ApplicationInsights instrumentation key name
      5. The secret that is used to authenticate to azure key vault for the gateway (ClientSecret)
        • This secret can be found in the azure portal in the AAD App Registration for your Gateway instance
  3. Start the gateway

#Ticketing System Connectors

Sia can be configured to to work with a separate ticketing system, either by leveraging a proxy API or by direct access with a custom connector.

Data from connected ticketing systems can be used to generate events and/or present additional information and context on the UI.

Sia will still function without a connected ticketing system, and will persist limited ticket data in the Incident database (see Sia.Data.Incident\Models\Ticket.cs)

For additional information on use, configuration, and creation of ticketing system connectors, see Sia.Connectors.Tickets\README.md