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

44 Коммитов

Автор SHA1 Сообщение Дата
Brian Loss 105c1af9c0
Fix build failure, update package versions (#41)
* gdal version needs to be locked in pyproject.toml to the same version
  in the Dockerfile. Otherwise when new versions of gdal come out, the
  build will attempt to use them and that may fail since the native code
  won't be installed and pip will try to build the wheel and fail.
* Update stac-browser to 3.0.2 which fixes a build issue where upstream
  packages changed and previous versions (3.0.0, 3.0.1) will no longer
  build.
* Update packages to latest versions.
* Remove use of xargs and replace with a for loop to support
  cross-platform use of the script.
* Fix retrieval of signed-in user object ID. If no value was found in
  the id field, then try objectId. If that is not found, then fail the
  script.
* Pass cloudName to stac-scaler deployment so deployment works on
  sovereign or other non-public clouds.
* Switch to stac-fastapi-pgstac, since the pgstac backend was broken out
  of the stac-fastapi project starting with version 2.4.6.
* Update naip deployment docs to make copy/paste easier
2023-06-16 16:49:38 -04:00
Brian Loss 687855122c
Fix docs to reference required e-mail address parameter (#40) 2023-06-14 07:24:25 -04:00
Kungumaraj Nachimuthu c5406fb90e
Fix uami timing and deploymentscript re-run issue (#39)
UAMI needs a few minutes to propagate through Azure AD and may cause timing issue in some tenants. So, a pause of 5 minutes is added after its creation.

The bicep template is not idempotent because the vnet and its subnets cannot be redeployed using bicep template. So, a solution was put in place earlier where deploymentScript would check the existence of the Vnet and conditionally deploy the vnet and its subnets. However, the deploymentScript does not re-run until the contents of the script changes.

So when it first runs, its output says the vnet does not exists. Subsequent deployments also use the same output since the deploymentScript is not re-run as the content of the script did not change.

As a fix, deleting the deploymentScript at the end of each run
2023-06-09 09:58:37 -07:00
Brian Loss 626dc914fb
Remove API management (#38)
* Remove API Management from the deployment
* Add nginx k8s ingress controller to route traffic to the stac API
* Add stac-browser
* Add blbostore proxy to allow for assets in storage to be accessed in
  a secure manner
2023-06-05 17:35:09 -04:00
Brian Loss c4c7e292fd
Reformat code (#37)
* Update dependencies and remove stac-fastapi workaround

* Update dependency versions for virtually all dependencies
* Remove workaround for a broken stac-fastapi version. Change code back
  to once again pull a release from GitHub rather than cloning and
  modifying the source.

* Sort/optimize imports

* Format code

* Fix flake8 errors

* Fix MyPy errors

* Fix issues found in testing.
2023-06-05 17:22:44 -04:00
Brian Loss aa64950e18
Move to pyproject.toml (#36)
* Add pyproject.toml configuration
* Update main entrypoint to work with pyproject.toml
* Remove requirements.txt and setup.py files
* Update Dockerfile to install non-editable version of the package
* Update self package imports to use common root of stac.
2023-06-05 13:49:39 -07:00
Brian Loss 16a5dd51c3
Clean up APIM policies and fix db connection bug (#35)
* Clean up APIM policies and fix db connection bug

* If the db connection fails to open, then the ingest collection
  processor will fail when checking whether or not the connection is
  open, since the type of the connection variable would be its default
  string and not a Connection. Change type to Optional[Connection] and
  also don't suppress the exception if the connection fails to open
  while processing a message.

* Fix APIM policies. The re-writes on the STAC API now re-write the
  internal service name to the external APIM host/path to the STAC API.
  The storage account in use is specified in a named value, and URLs
  with the storage account are re-written to send to the blobstore API
  that is loaded in APIM.

* Change blobstore proxy to a wildcard url

* The previous version of the blobstore proxy would not work with deep
  paths (e.g., anything that didn't match /container/filename). Instead,
  change the URL to a wildcard so that any URL passed to /blobstore
  gets passed to storage (with the /blobstore part of the path removed).
* Fix issue with sed commands on macOS.
* Adjust scripts that were checking required parameters--they were
  attempting to allow the env var to be used instead of the positional
  arg, but then were validating that the position arg was set vs the
  environment variable (which is initialized with the positional arg
  and a fallback to the env var value).
2023-03-08 15:44:02 -08:00
Kungumaraj Nachimuthu 8fec8dd842
Apply changes for Gov cloud deployment (#34)
* Apply changes for Gov cloud deployment

* Update README.md to clarify sovereign cloud term
2023-02-22 09:28:52 -08:00
Kungumaraj Nachimuthu ffb8fe2f9d
Add line endings LF for sh files (#33) 2023-02-07 15:34:57 -08:00
Kungumaraj Nachimuthu 9bdd020590
Bug fixes based on latest testing (#32) 2023-02-03 10:05:34 -08:00
Karthick Narendran a72215fb58
Minor fix with azcopy install (#31)
* Minor fix with azcopy install
---------

Co-authored-by: Karthick Narendan <kanarend@microsoft.com>
2023-02-03 17:25:18 +00:00
Kungumaraj Nachimuthu ce1f9a8ddf
Move secrets to Key Vault (#29)
* Move secrets to Key Vault

* Remove use of unsed vars and dates in deployments

* Update pre-requisites for workload identity use

* Get latest Kubernetes Version for AKS Cluster

* Update with feedback for k8s version retrieval
2023-01-19 08:46:07 -08:00
Mandar Inamdar c80431ea99
Fixes broken links in main README (#30)
- Corrects link to deploy readme
- Links reference architecture document in the repo
2023-01-11 12:46:22 -08:00
Kungumaraj Nachimuthu c6f985631d
STAC Code refactor and restructure (#28)
* KEDA connector for scaling jobs

* Restructure folder and minor fixes to helm chart

* KEDA connector for scaling jobs

* Restructure folder and minor fixes to helm chart

* Parameterize messageCount

* Change Load Balancer to Internal

* Remove redundant stac-fastapi deployment folder

* Change folder name to processors

* KEDA connector for scaling jobs

* Restructure folder and minor fixes to helm chart

* KEDA connector for scaling jobs

* Restructure folder and minor fixes to helm chart

* Parameterize messageCount

* Change Load Balancer to Internal

* Remove redundant stac-fastapi deployment folder

* Change folder name to processors

* Change load balancer to internal load balancer

* Support message count for STAC processors

* Change for adding telemetry to processor

* Scaling cluster + HPA

* Add Ingestion script

* Code restructure and refactored

* Copyrights header added

* Parameterize maxPods and add gitignore folders

* Update namespace parameters to avoid overloading

* Reduce cmd line parameters for Helm

* Remove POD_NAME and NODE_NAME from env vars

* Add missing comment to __command.py

* Delete optional script to bulk ingest assets

* Delete obsolete folders

* Remove minimal values in favor of values.yaml

* Remove default value for required parameters

* Get loadbalancer IP from az cli cmd execution

* Update to use version 3 of psycopg

* Fix missing indentation

* Test and Finalized Helm chart changes

* Update deploy/helm/stac-scaler/templates/_checks.yaml

Co-authored-by: Brian Loss <brianloss@gmail.com>

* Upgrade to Keda 2.9.1

Co-authored-by: Brian Loss <brianloss@gmail.com>
2023-01-03 16:12:04 -08:00
Karthick Narendran 3a60cd440a
Changes to support STAC on multiple Azure clouds - Part 1 of 2 (#22)
Co-authored-by: Karthick Narendan <kanarend@microsoft.com>
Co-authored-by: Brian Loss <brianloss@gmail.com>
2022-12-05 13:26:23 +00:00
Brian Loss 87447ccb74
Doc cleanup (#25)
* Fix markdown lint warnings

* Clean up docs
2022-12-05 07:37:40 -05:00
Brian Loss bfbba081d5
Updates requirements.txt and package versions (#26)
* Don't use `pip freeze` to generate requirements.txt since it includes
  all packages installed. Instead, just declare the true dependencies of
  the project. Transitive dependencies will be installed automatically
  by pip, and won't be locked to a specific version, which makes
  package upgrades difficult (e.g., you upgrade a package version but
  don't touch the versions of the dependencies).
* Upgrade psycopg2 to psycopg (version 3), and adjust for API changes
* Remove unused package imports.
* Fix issue where connection commit would be attempted even if there
  was an exception calling the stored procedure.
2022-12-05 07:35:48 -05:00
Brian Loss f51ebd4b70
Merge pull request #19 from Azure/dependabot/pip/src/stac_ingestion/generate_stac_item/cryptography-38.0.3
Bump cryptography from 37.0.4 to 38.0.3 in /src/stac_ingestion/generate_stac_item
2022-12-01 13:38:18 -05:00
Kungumaraj Nachimuthu b5c26c61d8
Merge branch 'main' into dependabot/pip/src/stac_ingestion/generate_stac_item/cryptography-38.0.3 2022-11-30 17:14:56 -08:00
Kungumaraj Nachimuthu bee49d10f2
Fix unintended folder structure in Cataloging (#21) 2022-11-15 11:30:02 -08:00
Kungumaraj Nachimuthu b9eeef85ca
Merge branch 'main' into dependabot/pip/src/stac_ingestion/generate_stac_item/cryptography-38.0.3 2022-11-14 10:10:36 -08:00
CheyYeary e43edc09da
added millisecond formatting for precise datetime calculations in kql. (#20) 2022-11-14 10:09:50 -08:00
Ardon Bailey 4431307565
Complete message on error (#16)
* Complete message

* Change maxDeliveryCount and change back to original code

Co-authored-by: Ardon Bailey <arbailey@microsoft.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-11-10 15:03:05 -08:00
dependabot[bot] 42736860bb
Bump cryptography in /src/stac_ingestion/generate_stac_item
Bumps [cryptography](https://github.com/pyca/cryptography) from 37.0.4 to 38.0.3.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/37.0.4...38.0.3)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-10 07:07:31 +00:00
Sushil Kumar 6a4462f8c4
Update documentation to get sample data directly from naip source (#18) 2022-11-07 13:03:06 -08:00
Sushil Kumar 9157c3220b
Use internal load-balancer with private-ip for faststac api on aks (#17) 2022-11-07 10:02:53 -08:00
Sushil Kumar dde04272b2
Fixes stack-fastapi image build (#14)
* Fixes stack-fastapi image build

* Pinned to the commit for locking pygeoif==0.7
2022-10-27 11:40:29 -07:00
Sushil Kumar c9a1dfa571
Adds execute permission to scripts (#12) 2022-10-24 10:01:42 -07:00
Kungumaraj Nachimuthu ba9c010633
Project name change (#9)
* Change project name to reflect public document being published

* Update contributors list
2022-09-30 10:30:04 -07:00
Karthick Narendran 0969634009
Update md files (#8)
Co-authored-by: Karthick Narendan <kanarend@microsoft.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-09-28 15:39:22 -07:00
Kungumaraj Nachimuthu e6a870a716
Finalize support files for the repo (#7)
* Add supporting md files

* Resolve feedback items based on review

* Update CONTRIBUTING.md to update contributors list

* Add missing contributors github link
2022-09-28 15:38:43 -07:00
dependabot[bot] c87ea4ea2f
Bump oauthlib from 3.2.0 to 3.2.1 in /src/stac_ingestion/stac_to_pg (#1)
Bumps [oauthlib](https://github.com/oauthlib/oauthlib) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/oauthlib/oauthlib/releases)
- [Changelog](https://github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/oauthlib/oauthlib/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: oauthlib
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-09-28 09:57:25 -07:00
dependabot[bot] b03f300e5c
Bump oauthlib in /src/stac_ingestion/generate_stac_item (#2)
Bumps [oauthlib](https://github.com/oauthlib/oauthlib) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/oauthlib/oauthlib/releases)
- [Changelog](https://github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/oauthlib/oauthlib/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: oauthlib
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-09-28 09:53:10 -07:00
dependabot[bot] 16466cb658
Bump protobuf in /src/stac_ingestion/generate_stac_item (#3)
Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 4.21.5 to 4.21.6.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

---
updated-dependencies:
- dependency-name: protobuf
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-09-28 09:51:20 -07:00
dependabot[bot] 5320531dd2
Bump protobuf from 4.21.5 to 4.21.6 in /src/stac_ingestion/stac_to_pg (#4)
Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 4.21.5 to 4.21.6.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

---
updated-dependencies:
- dependency-name: protobuf
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-09-28 09:46:07 -07:00
dependabot[bot] 4743463d86
Bump protobuf in /src/stac_ingestion/stac_collection (#5)
Bumps [protobuf](https://github.com/protocolbuffers/protobuf) from 4.21.5 to 4.21.6.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/commits)

---
updated-dependencies:
- dependency-name: protobuf
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kungumaraj Nachimuthu <kunachim@microsoft.com>
2022-09-28 09:43:24 -07:00
dependabot[bot] 275e195425
Bump oauthlib from 3.2.0 to 3.2.1 in /src/stac_ingestion/stac_collection (#6)
Bumps [oauthlib](https://github.com/oauthlib/oauthlib) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/oauthlib/oauthlib/releases)
- [Changelog](https://github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/oauthlib/oauthlib/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: oauthlib
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-28 09:41:52 -07:00
Kungumaraj Nachimuthu dcc6113c86 Initial code commit 2022-09-27 09:17:03 -07:00
Microsoft Open Source 8e6adb07c8 SUPPORT.md committed 2022-09-12 17:32:59 -07:00
Microsoft Open Source 9c26bb1876 SECURITY.md committed 2022-09-12 17:32:58 -07:00
Microsoft Open Source 31325c692f README.md committed 2022-09-12 17:32:57 -07:00
Microsoft Open Source 5fb664b96c LICENSE committed 2022-09-12 17:32:56 -07:00
Microsoft Open Source 1d09307ba4 CODE_OF_CONDUCT.md committed 2022-09-12 17:32:55 -07:00
microsoft-github-operations[bot] 2d0b48c145
Initial commit 2022-09-13 00:32:45 +00:00