mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-23 20:48:11 +00:00
* Changes to DE preview site to support managed identity. Changes to infrastructure to use new preview site. * Fix formatting. * Potential fix for code scanning alert no. 56: Server-side request forgery Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Use different secrets for subscription/tenant/client id's. * Revert new id names. * Update Az CLI config. * Update to Node 18 and update security vulnerable dependencies. --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
21 lines
1.3 KiB
Markdown
21 lines
1.3 KiB
Markdown
# Cosmos Explorer Preview
|
|
|
|
Cosmos Explorer Preview makes it possible to try a working version of any commit on master or in a PR. No need to run the app locally or deploy to staging.
|
|
|
|
Initial support is for Hosted (Connection string only) or the Azure Portal. Examples:
|
|
|
|
Connection string URLs: https://dataexplorer-preview.azurewebsites.net/commit/COMMIT_SHA/hostedExplorer.html
|
|
Portal URLs: https://ms.portal.azure.com/?dataExplorerSource=https://dataexplorer-preview.azurewebsites.net/commit/COMMIT_SHA/explorer.html#home
|
|
|
|
In both cases replace `COMMIT_SHA` with the commit you want to view. It must have already completed its build on GitHub Actions.
|
|
|
|
### Architechture
|
|
|
|
- This folder contains a NodeJS app deployed to Azure App Service that powers preview URLs:
|
|
- Paths starting with `/commit/` are proxied to an Azure Storage account containing build artifacts
|
|
- Paths starting with `/proxy/` are proxied dynamically to Cosmos account endpoints. Required otherwise CORS would need to be configured for every account accessed.
|
|
- Paths starting with `/api/` are proxied to Portal APIs that do not support CORS.
|
|
- On GitHub Actions build completion:
|
|
- All files in dist are uploaded to an Azure Storage account namespaced by the SHA of the commit
|
|
- `/preview/config.json` is uploaded to the same folder with preview specific configuration
|