Skip to content

Releases: NASA-IMPACT/veda-backend

v5.0.1

07 May 20:52
7f58da4
Compare
Choose a tag to compare

v5.0.1 (2024-05-07)

Fix

  • fix(release): make ingest api root path optional (#370)

Changed

v5.0.0

06 May 20:48
6fc9ded
Compare
Choose a tag to compare

v1.1.0-rc.58

06 May 23:27
c23dd1e
Compare
Choose a tag to compare
v1.1.0-rc.58 Pre-release
Pre-release

v1.1.0-rc.58 (2024-05-06)

Fix

  • fix(ingest): default empty string for root path in ingest api construct (#369)

What?

  • Allow ingest-api to be deployed without a custom root path by setting
    the default config for fastapi root path parameter to None.

Why?

  • When the ingest API is deployed to a stack without a cloud front and
    custom host it should not apply an additional root path.

How tested

Deployed to a test branch using a custom subdomain instead of a
cloudfront with custom root path. (c23dd1e)

  • fix(ingest): default empty string for root path in ingest api construct (13de8de)

  • fix(ingest): default empty string for root path in ingest api construct (77996a7)

v1.1.0-rc.57

06 May 16:14
04b0b64
Compare
Choose a tag to compare
v1.1.0-rc.57 Pre-release
Pre-release

v1.1.0-rc.57 (2024-05-06)

Fix

  • fix: cast sub as str (#367)

Issue

Link to relevant GitHub issue

What?

  • Cast sub as str and remove default None since that will be cast
    as str which we want to avoid
>>> token = { }
>>> x = token.get("sub", None)
>>> str(x)
'None'
>>> exit()

Why?

  • We were receiving this error when trying to kick off a
    /dataset/publish/ workflow
    1 validation error for Ingestion\ncreated_by\n str type expected (type=type_error.str) and, to be safe, we are casting sub as str

Testing?

v1.1.0-rc.56

29 Apr 18:56
28afca4
Compare
Choose a tag to compare
v1.1.0-rc.56 Pre-release
Pre-release

v1.1.0-rc.56 (2024-04-29)

Fix

  • fix: update get_username function (#365)

Issue

NASA-IMPACT/veda-data-airflow#134
#347

What?

  • Update get_username to fall back on sub if username doesn't exist
    in token
  • Added some more logging statements to make debugging easier in the
    future

Why?

  • This fix is to enable a successful workflows API run since the
    workflow API passes a token to backend API and it's currently erroring
  • Also, sub is a more definitive identifier because it represents a
    unique identifier compared to username

Testing?

  • Relevant testing details (28afca4)
  • fix: revert to use default value in get_username (f640fdf)

  • fix: update to throw is username or sub are not found in token (dbb62fb)

  • fix: add correct escape sequence to logging (5466404)

  • fix: update get_username and add logging (4e38e89)

v1.1.0-rc.55

26 Apr 17:32
eb6a922
Compare
Choose a tag to compare
v1.1.0-rc.55 Pre-release
Pre-release

v1.1.0-rc.55 (2024-04-26)

Fix

  • fix: change get username function (#361)

Change Ingestion created_by param to use get_username auth function (eb6a922)

v1.1.0-rc.54

26 Apr 16:58
769c647
Compare
Choose a tag to compare
v1.1.0-rc.54 Pre-release
Pre-release

v1.1.0-rc.54 (2024-04-26)

Fix

  • fix: cognito domain env var (#360)

what

this pr updates the env variable name used for cognito domain (now
matches workflows variable name) (769c647)

  • fix: use standard env name for cognito domain (e021ec2)

v1.1.0-rc.53

26 Apr 15:32
2424fe5
Compare
Choose a tag to compare
v1.1.0-rc.53 Pre-release
Pre-release

v1.1.0-rc.53 (2024-04-26)

Fix

  • fix(stac-api): next link and trailing slash bug in stac api url (#358)

What

Fix problem in which a stac-fastapi deployed behind a proxy (i.e.
customdomain.com) with a custom root path (i.e. /api/stac)

  • Fixed: API does not properly resolve customdomain.com/api/stac ->
    customdomain.com/api/stac/
  • Fixed: API does not properly use custom root path in next links of
    paginated responses customdomain.com/api/stac/... links are returned
    as customdomain.com/... without the custom root path.

The correction is to remove the gateway configuration from the Mangum
ASGI handler for the stac-api handler.

Refs

Issue

#343

Testing?

  • I deployed this change manually to the dev veda-backend stack and
    confirmed that the stac-api url is properly resolved and that the next
    links now properly include the root path. (2424fe5)
  • fix(stac-api): do not overwrite api_gateway_base_path in stac-api handler (09717aa)

v1.1.0-rc.52

24 Apr 16:01
5c3cea4
Compare
Choose a tag to compare
v1.1.0-rc.52 Pre-release
Pre-release

v1.1.0-rc.52 (2024-04-24)

Breaking

  • feat(api)!: ingest-api/docs auth flow (#356)

What?

  • Breaking: VEDA_USERPOOL_DOMAIN_BASE_URL configuration now required
    along with one time administrator step to update existing user pool
    client allowed callback urls with the ingest-api's URL
  • Updates ingest-api auth flow: use redirect to cognito UI for secure
    user password entry via Authorize button in swagger docs
  • Removes outdated whoami auth response model
  • Upgrades ingest-api fastapi to patched version 0.9.1
  • Improves ingest-api configuration and deployment documentation

Why?

  • Token/ endpoint behavior sluggish via. swagger docs and it is not
    desirable to enter secrets in a string input form (the token/ endpoint
    is still supported for programmatic access)

Testing?

  • Deployed manually to dev stack and updated allowed callbacks of dev
    cognito user pool client
  • Obtained tokens via Authorize button and /token endpoints
  • Created, then deleted one collection (5c3cea4)

v1.1.0-rc.51

23 Apr 16:07
9f0289b
Compare
Choose a tag to compare
v1.1.0-rc.51 Pre-release
Pre-release

v1.1.0-rc.51 (2024-04-23)

Feature

  • feat(otel): add otel to ingest API (#342)

Co-authored-by: smohiudd <[email protected]> (9f0289b)