Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cumulus/checksum

Package Overview
Dependencies
Maintainers
0
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/checksum - npm Package Versions

1
15

11.1.1

Diff

Changelog

Source

[v11.1.1] 2022-04-26

Added

Changed

  • CUMULUS-2885
    • Updated @cumulus/aws-client to use new AWS SDK v3 packages for S3 requests:
      • @aws-sdk/client-s3
      • @aws-sdk/lib-storage
      • @aws-sdk/s3-request-presigner
    • Updated code for compatibility with updated @cumulus/aws-client and AWS SDK v3 S3 packages:
      • @cumulus/api
      • @cumulus/async-operations
      • @cumulus/cmrjs
      • @cumulus/common
      • @cumulus/collection-config-store
      • @cumulus/ingest
      • @cumulus/launchpad-auth
      • @cumulus/sftp-client
      • @cumulus/tf-inventory
      • lambdas/data-migration2
      • tasks/add-missing-file-checksums
      • tasks/hyrax-metadata-updates
      • tasks/lzards-backup
      • tasks/sync-granule
  • CUMULUS-2886
    • Updated @cumulus/aws-client to use new AWS SDK v3 packages for API Gateway requests:
      • @aws-sdk/client-api-gateway
  • CUMULUS-2920
    • Update npm version for Core build to 8.6
  • CUMULUS-2922
    • Added @cumulus/example-lib package to example project to allow unit tests example/script/lib dependency.
    • Updates Mutex unit test to address changes made in #2902
  • CUMULUS-2924
    • Update acquireTimeoutMillis to 400 seconds for the db-provision-lambda module to address potential timeout issues on RDS database start
  • CUMULUS-2925
    • Updates CI to utilize audit-ci v6.2.0
    • Updates CI to utilize a on-container filesystem when building Core in 'uncached' mode
    • Updates CI to selectively bootstrap Core modules in the cleanup job phase
  • CUMULUS-2934
    • Update CI Docker container build to install pipenv to prevent contention on parallel lambda builds
lfrederick
published 10.0.2 •

lfrederick
published 11.1.0 •

Changelog

Source

[v11.1.0] 2022-04-07

MIGRATION NOTES

  • 11.1.0 is an amendment release and supersedes 11.0.0. However, follow the migration steps for 11.0.0.

  • CUMULUS-2905

    • Updates migration script with new migrateAndOverwrite and migrateOnlyFiles options.

Added

  • CUMULUS-2860
    • Added an optional configuration parameter skipMetadataValidation to hyrax-metadata-updates task
  • CUMULUS-2870
    • Added last_modified_date as output to all tasks in Terraform ingest module.
  • CUMULUS-NONE
    • Added documentation on choosing and configuring RDS at deployment/choosing_configuring_rds.

Changed

  • CUMULUS-2703
    • Updated ORCA Backup reconciliation report to report cumulusFilesCount and orcaFilesCount
  • CUMULUS-2849
    • Updated @cumulus/aws-client to use new AWS SDK v3 packages for DynamoDB requests:
      • @aws-sdk/client-dynamodb
      • @aws-sdk/lib-dynamodb
      • @aws-sdk/util-dynamodb
    • Updated code for compatibility with AWS SDK v3 Dynamo packages
      • @cumulus/api
      • @cumulus/errors
      • @cumulus/tf-inventory
      • lambdas/data-migration2
      • packages/api/ecs/async-operation
  • CUMULUS-2864
    • Updated @cumulus/cmr-client/ingestUMMGranule and @cumulus/cmr-client/ingestConcept functions to not perform separate validation request
  • CUMULUS-2870
    • Updated hello_world_service module to pass in lastModified parameter in command list to trigger a Terraform state change when the hello_world_task is modified.

Fixed

  • CUMULUS-2849
    • Fixed AWS service client memoization logic in @cumulus/aws-client
lfrederick
published 11.0.0 •

Changelog

Source

[v11.0.0] 2022-03-24 [STABLE]

v9.9->v11.0 MIGRATION NOTES

Release v11.0 is a maintenance release series, replacing v9.9. If you are upgrading to or past v11 from v9.9.x to this release, please pay attention to the following migration notes from prior releases:

Migration steps
After deploying the data-persistence module, but before deploying the main cumulus module
  • Due to a bug in the PUT /rules/<name> endpoint, the rule records in PostgreSQL may be out of sync with records in DynamoDB. In order to bring the records into sync, re-deploy and re-run the data-migration1 Lambda with a payload of {"forceRulesMigration": true}:
aws lambda invoke --function-name $PREFIX-data-migration1 \
  --payload $(echo '{"forceRulesMigration": true}' | base64) $OUTFILE
As part of the cumulus deployment
After the cumulus deployment

As part of the work on the RDS Phase 2 feature, it was decided to re-add the granule file type property on the file table (detailed reasoning https://wiki.earthdata.nasa.gov/pages/viewpage.action?pageId=219186829). This change was implemented as part of CUMULUS-2672/CUMULUS-2673, however granule records ingested prior to v11 will not have the file.type property stored in the PostGreSQL database, and on installation of v11 API calls to get granule.files will not return this value. We anticipate most users are impacted by this issue.

Users that are impacted by these changes should re-run the granule migration lambda to only migrate granule file records:

PAYLOAD=$(echo '{"migrationsList": ["granules"], "granuleMigrationParams": {"migrateOnlyFiles": "true"}}' | base64)
aws lambda invoke --function-name $PREFIX-postgres-migration-async-operation \
--payload $PAYLOAD $OUTFILE

You should note that this will only move files for granule records in PostgreSQL. If you have not completed the phase 1 data migration or have granule records in dynamo that are not in PostgreSQL, the migration will report failure for both the DynamoDB granule and all the associated files and the file records will not be updated.

If you prefer to do a full granule and file migration, you may instead opt to run the migration with the migrateAndOverwrite option instead, this will re-run a full granule/files migration and overwrite all values in the PostgreSQL database from what is in DynamoDB for both granules and associated files:

PAYLOAD=$(echo '{"migrationsList": ["granules"], "granuleMigrationParams": {"migrateAndOverwrite": "true"}}' | base64)
aws lambda invoke --function-name $PREFIX-postgres-migration-async-operation \
--payload $PAYLOAD $OUTFILE

Please note: Since this data migration is copying all of your granule data from DynamoDB to PostgreSQL, it can take multiple hours (or even days) to run, depending on how much data you have and how much parallelism you configure the migration to use. In general, the more parallelism you configure the migration to use, the faster it will go, but the higher load it will put on your PostgreSQL database. Excessive database load can cause database outages and result in data loss/recovery scenarios. Thus, the parallelism settings for the migration are intentionally set by default to conservative values but are configurable. If this impacts only some of your data products you may want to consider using other granuleMigrationParams.

Please see the second data migration docs for more on this tool if you are unfamiliar with the various options.

Notable changes

  • CUMULUS-2703
    • ORCA Backup is now a supported reportType for the POST /reconciliationReports endpoint

Added

  • CUMULUS-2311 - RDS Migration Epic Phase 2
    • CUMULUS-2208
      • Added @cumulus/message/utils.parseException to parse exception objects
      • Added helpers to @cumulus/message/Granules:
        • getGranuleProductVolume
        • getGranuleTimeToPreprocess
        • getGranuleTimeToArchive
        • generateGranuleApiRecord
      • Added @cumulus/message/PDRs/generatePdrApiRecordFromMessage to generate PDR from Cumulus workflow message
      • Added helpers to @cumulus/es-client/indexer:
        • deleteAsyncOperation to delete async operation records from Elasticsearch
        • updateAsyncOperation to update an async operation record in Elasticsearch
      • Added granules PUT endpoint to Cumulus API for updating a granule. Requests to this endpoint should be submitted without an action attribute in the request body.
      • Added @cumulus/api-client/granules.updateGranule to update granule via the API
    • CUMULUS-2303
      • Add translatePostgresProviderToApiProvider method to @cumulus/db/translate/providers
    • CUMULUS-2306
      • Updated API execution GET endpoint to read individual execution records from PostgreSQL database instead of DynamoDB
      • Updated API execution-status endpoint to read execution records from PostgreSQL database instead of DynamoDB
    • CUMULUS-2302
      • Added translatePostgresCollectionToApiCollection method to @cumulus/db/translate/collections
      • Added searchWithUpdatedAtRange method to @cumulus/db/models/collections
    • CUMULUS-2301
      • Created API asyncOperations POST endpoint to create async operations.
    • CUMULUS-2307
      • Updated API PDR GET endpoint to read individual PDR records from PostgreSQL database instead of DynamoDB
      • Added deletePdr to @cumulus/api-client/pdrs
    • CUMULUS-2782
      • Update API granules endpoint move action to update granules in the index and utilize postgres as the authoritative datastore
    • CUMULUS-2769
      • Update collection PUT endpoint to require existance of postgresql record and to ignore lack of dynamoDbRecord on update
    • CUMULUS-2767
      • Update provider PUT endpoint to require existence of PostgreSQL record and to ignore lack of DynamoDB record on update
    • CUMULUS-2759
      • Updates collection/provider/rules/granules creation (post) endpoints to primarily check for existence/collision in PostgreSQL database instead of DynamoDB
    • CUMULUS-2714
      • Added @cumulus/db/base.deleteExcluding method to allow for deletion of a record set with an exclusion list of cumulus_ids
    • CUMULUS-2317
      • Added @cumulus/db/getFilesAndGranuleInfoQuery() to build a query for searching file records in PostgreSQL and return specified granule information for each file
      • Added @cumulus/db/QuerySearchClient library to handle sequentially fetching and paging through results for an arbitrary PostgreSQL query
      • Added insert method to all @cumulus/db models to handle inserting multiple records into the database at once
      • Added @cumulus/db/translatePostgresGranuleResultToApiGranule helper to translate custom PostgreSQL granule result to API granule
    • CUMULUS-2672
      • Added migration to add type text column to Postgres database files table
    • CUMULUS-2634
      • Added new functions for upserting data to Elasticsearch:
        • @cumulus/es-client/indexer.upsertExecution to upsert an execution
        • @cumulus/es-client/indexer.upsertPdr to upsert a PDR
        • @cumulus/es-client/indexer.upsertGranule to upsert a granule
    • CUMULUS-2510
      • Added execution_sns_topic_arn environment variable to sf_event_sqs_to_db_records lambda TF definition.
      • Added to sf_event_sqs_to_db_records_lambda IAM policy to include permissions for SNS publish for report_executions_topic
      • Added collection_sns_topic_arn environment variable to PrivateApiLambda and ApiEndpoints lambdas.
      • Added updateCollection to @cumulus/api-client.
      • Added to ecs_cluster IAM policy to include permissions for SNS publish for report_executions_sns_topic_arn, report_pdrs_sns_topic_arn, report_granules_sns_topic_arn
      • Added variables for report topic ARNs to process_dead_letter_archive.tf
      • Added variable for granule report topic ARN to bulk_operation.tf
      • Added pdr_sns_topic_arn environment variable to sf_event_sqs_to_db_records lambda TF definition.
      • Added the new function publishSnsMessageByDataType in @cumulus/api to publish SNS messages to the report topics to PDRs, Collections, and Executions.
      • Added the following functions in publishSnsMessageUtils to handle publishing SNS messages for specific data and event types:
        • publishCollectionUpdateSnsMessage
        • publishCollectionCreateSnsMessage
        • publishCollectionDeleteSnsMessage
        • publishGranuleUpdateSnsMessage
        • publishGranuleDeleteSnsMessage
        • publishGranuleCreateSnsMessage
        • publishExecutionSnsMessage
        • publishPdrSnsMessage
        • publishGranuleSnsMessageByEventType
      • Added to ecs_cluster IAM policy to include permissions for SNS publish for report_executions_topic and report_pdrs_topic.
    • CUMULUS-2315
      • Added paginateByCumulusId to @cumulus/db BasePgModel to allow for paginated full-table select queries in support of elasticsearch indexing.
      • Added getMaxCumulusId to @cumulus/db BasePgModel to allow all derived table classes to support querying the current max cumulus_id.
    • CUMULUS-2673
      • Added ES_HOST environment variable to postgres-migration-async-operation Lambda using value of elasticsearch_hostname Terraform variable.
      • Added elasticsearch_security_group_id to security groups for postgres-migration-async-operation lambda.
      • Added permission for DynamoDb:DeleteItem to postgres-migration-async-operation lambda.
    • CUMULUS-2778
      • Updated default value of async_operation_image in tf-modules/cumulus/variables.tf to cumuluss/async-operation:41
      • Added ES_HOST environment variable to async operation ECS task definition to ensure that async operation tasks write to the correct Elasticsearch domain
  • CUMULUS-2642
    • Reduces the reconcilation report's default maxResponseSize that returns the full report rather than an s3 signed url. Reports very close to the previous limits were failing to download, so the limit has been lowered to ensure all files are handled properly.
  • CUMULUS-2703
    • Added @cumulus/api/lambdas/reports/orca-backup-reconciliation-report to create ORCA Backup reconciliation report

Removed

  • CUMULUS-2311 - RDS Migration Epic Phase 2
    • CUMULUS-2208
      • Removed trigger for dbIndexer Lambda for DynamoDB tables:
        • <prefix>-AsyncOperationsTable
        • <prefix>-CollectionsTable
        • <prefix>-ExecutionsTable
        • <prefix>-GranulesTable
        • <prefix>-PdrsTable
        • <prefix>-ProvidersTable
        • <prefix>-RulesTable
    • CUMULUS-2782
      • Remove deprecated @ingest/granule.moveGranuleFiles
    • CUMULUS-2770
      • Removed waitForModelStatus from example/spec/helpers/apiUtils integration test helpers
    • CUMULUS-2510
      • Removed stream_enabled and stream_view_type from executions_table TF definition.
      • Removed aws_lambda_event_source_mapping TF definition on executions DynamoDB table.
      • Removed stream_enabled and stream_view_type from collections_table TF definition.
      • Removed aws_lambda_event_source_mapping TF definition on collections DynamoDB table.
      • Removed lambda publish_collections TF resource.
      • Removed aws_lambda_event_source_mapping TF definition on granules
      • Removed stream_enabled and stream_view_type from pdrs_table TF definition.
      • Removed aws_lambda_event_source_mapping TF definition on PDRs DynamoDB table.
    • CUMULUS-2694
      • Removed @cumulus/api/models/granules.storeGranulesFromCumulusMessage() method
    • CUMULUS-2662
      • Removed call to addToLocalES in POST /granules endpoint since it is redundant.
      • Removed call to addToLocalES in POST and PUT /executions endpoints since it is redundant.
      • Removed function addToLocalES from es-client package since it is no longer used.
    • CUMULUS-2771
      • Removed _updateGranuleStatus to update granule to "running" from @cumulus/api/lib/ingest.reingestGranule and @cumulus/api/lib/ingest.applyWorkflow

Changed

  • CVE-2022-2477
    • Update node-forge to 1.3.0 in @cumulus/common to address CVE-2022-2477
  • CUMULUS-2311 - RDS Migration Epic Phase 2
    • CUMULUS_2641

      • Update API granule schema to set productVolume as a string value
      • Update @cumulus/message package to set productVolume as string (calculated with file.size as a BigInt) to match API schema
      • Update @cumulus/db granule translation to translate granule objects to match the updated API schema
    • CUMULUS-2714

      • Updated
        • @cumulus/api/lib.writeRecords.writeGranulesFromMessage
        • @cumulus/api/lib.writeRecords.writeGranuleFromApi
        • @cumulus/api/lib.writeRecords.createGranuleFromApi
        • @cumulus/api/lib.writeRecords.updateGranuleFromApi
      • These methods now remove postgres file records that aren't contained in the write/update action if such file records exist. This update maintains consistency with the writes to elasticsearch/dynamodb.
    • CUMULUS-2672

      • Updated data-migration2 lambda to migrate Dynamo granule.files[].type instead of dropping it.
      • Updated @cumlus/db translateApiFiletoPostgresFile to retain type
      • Updated @cumulus/db translatePostgresFileToApiFile to retain type
      • Updated @cumulus/types.api.file to add type to the typing.
    • CUMULUS-2315

      • Update index-from-database lambda/ECS task and elasticsearch endpoint to read from PostgreSQL database
      • Update index-from-database endpoint to add the following configuration tuning parameters:
        • postgresResultPageSize -- The number of records to read from each postgres table per request. Default is 1000.
        • postgresConnectionPoolSize -- The max number of connections to allow the index function to make to the database. Default is 10.
        • esRequestConcurrency -- The maximium number of concurrent record translation/ES record update requests. Default is 10.
    • CUMULUS-2308

      • Update /granules/<granule_id> GET endpoint to return PostgreSQL Granules instead of DynamoDB Granules
      • Update /granules/<granule_id> PUT endpoint to use PostgreSQL Granule as source rather than DynamoDB Granule
      • Update unpublishGranule (used in /granules PUT) to use PostgreSQL Granule as source rather than DynamoDB Granule
      • Update integration tests to use waitForApiStatus instead of waitForModelStatus
      • Update Granule ingest to update the Postgres Granule status as well as the DynamoDB Granule status
    • CUMULUS-2302

      • Update API collection GET endpoint to read individual provider records from PostgreSQL database instead of DynamoDB
      • Update sf-scheduler lambda to utilize API endpoint to get provider record from database via Private API lambda
      • Update API granule reingest endpoint to read collection from PostgreSQL database instead of DynamoDB
      • Update internal-reconciliation report to base report Collection comparison on PostgreSQL instead of DynamoDB
      • Moved createGranuleAndFiles @cumulus/api unit helper from ./lib to .test/helpers
    • CUMULUS-2208

      • Moved all @cumulus/api/es/* code to new @cumulus/es-client package
      • Updated logic for collections API POST/PUT/DELETE to create/update/delete records directly in Elasticsearch in parallel with updates to DynamoDb/PostgreSQL
      • Updated logic for rules API POST/PUT/DELETE to create/update/delete records directly in Elasticsearch in parallel with updates to DynamoDb/PostgreSQL
      • Updated logic for providers API POST/PUT/DELETE to create/update/delete records directly in Elasticsearch in parallel with updates to DynamoDb/PostgreSQL
      • Updated logic for PDRs API DELETE to delete records directly in Elasticsearch in parallel with deletes to DynamoDB/PostgreSQL
      • Updated logic for executions API DELETE to delete records directly in Elasticsearch in parallel with deletes to DynamoDB/PostgreSQL
      • Updated logic for granules API DELETE to delete records directly in Elasticsearch in parallel with deletes to DynamoDB/PostgreSQL
      • sfEventSqsToDbRecords Lambda now writes following data directly to Elasticsearch in parallel with writes to DynamoDB/PostgreSQL:
        • executions
        • PDRs
        • granules
      • All async operations are now written directly to Elasticsearch in parallel with DynamoDB/PostgreSQL
      • Updated logic for async operation API DELETE to delete records directly in Elasticsearch in parallel with deletes to DynamoDB/PostgreSQL
      • Moved:
        • packages/api/lib/granules.getGranuleProductVolume -> @cumulus/message/Granules.getGranuleProductVolume
        • packages/api/lib/granules.getGranuleTimeToPreprocess -> @cumulus/message/Granules.getGranuleTimeToPreprocess
        • packages/api/lib/granules.getGranuleTimeToArchive -> @cumulus/message/Granules.getGranuleTimeToArchive
        • packages/api/models/Granule.generateGranuleRecord -> @cumulus/message/Granules.generateGranuleApiRecord
    • CUMULUS-2306

      • Updated API local serve (api/bin/serve.js) setup code to add cleanup/executions related records
      • Updated @cumulus/db/models/granules-executions to add a delete method in support of local cleanup
      • Add spec/helpers/apiUtils/waitForApiStatus integration helper to retry API record retrievals on status in lieu of using waitForModelStatus
    • CUMULUS-2303

      • Update API provider GET endpoint to read individual provider records from PostgreSQL database instead of DynamoDB
      • Update sf-scheduler lambda to utilize API endpoint to get provider record from database via Private API lambda
    • CUMULUS-2301

      • Updated getAsyncOperation to read from PostgreSQL database instead of DynamoDB.
      • Added translatePostgresAsyncOperationToApiAsyncOperation function in @cumulus/db/translate/async-operation.
      • Updated translateApiAsyncOperationToPostgresAsyncOperation function to ensure that output is properly translated to an object for the PostgreSQL record for the following cases of output on the incoming API record:
        • record.output is a JSON stringified object
        • record.output is a JSON stringified array
        • record.output is a JSON stringified string
        • record.output is a string
    • CUMULUS-2317

      • Changed reconciliation reports to read file records from PostgreSQL instead of DynamoDB
    • CUMULUS-2304

      • Updated API rule GET endpoint to read individual rule records from PostgreSQL database instead of DynamoDB
      • Updated internal consumer lambdas for SNS, SQS and Kinesis to read rules from PostgreSQL.
    • CUMULUS-2634

      • Changed sfEventSqsToDbRecords Lambda to use new upsert helpers for executions, granules, and PDRs to ensure out-of-order writes are handled correctly when writing to Elasticsearch
    • CUMULUS-2510

      • Updated @cumulus/api/lib/writeRecords/write-execution to publish SNS messages after a successful write to Postgres, DynamoDB, and ES.
      • Updated functions create and upsert in the db model for Executions to return an array of objects containing all columns of the created or updated records.
      • Updated @cumulus/api/endpoints/collections to publish an SNS message after a successful collection delete, update (PUT), create (POST).
      • Updated functions create and upsert in the db model for Collections to return an array of objects containing all columns for the created or updated records.
      • Updated functions create and upsert in the db model for Granules to return an array of objects containing all columns for the created or updated records.
      • Updated @cumulus/api/lib/writeRecords/write-granules to publish SNS messages after a successful write to Postgres, DynamoDB, and ES.
      • Updated @cumulus/api/lib/writeRecords/write-pdr to publish SNS messages after a successful write to Postgres, DynamoDB, and ES.
    • CUMULUS-2733

      • Updated _writeGranuleFiles function creates an aggregate error which contains the workflow error, if any, as well as any error that may occur from writing granule files.
    • CUMULUS-2674

      • Updated DELETE endpoints for the following data types to check that record exists in PostgreSQL or Elasticsearch before proceeding with deletion:
        • provider
        • async operations
        • collections
        • granules
        • executions
        • PDRs
        • rules
    • CUMULUS-2294

      • Updated architecture and deployment documentation to reference RDS
    • CUMULUS-2642

      • Inventory and Granule Not Found Reconciliation Reports now compare Databse against S3 in on direction only, from Database to S3 Objects. This means that only files in the database are compared against objects found on S3 and the filesInCumulus.onlyInS3 report key will always be empty. This significantly decreases the report output size and aligns with a users expectations.
      • Updates getFilesAndGranuleInfoQuery to take additional optional parameters collectionIds, granuleIds, and providers to allow targeting/filtering of the results.
    • CUMULUS-2694

      • Updated database write logic in sfEventSqsToDbRccords to log message if Cumulus workflow message is from pre-RDS deployment but still attempt parallel writing to DynamoDB and PostgreSQL
      • Updated database write logic in sfEventSqsToDbRccords to throw error if requirements to write execution to PostgreSQL cannot be met
    • CUMULUS-2660

      • Updated POST /executions endpoint to publish SNS message of created record to executions SNS topic
    • CUMULUS-2661

      • Updated PUT /executions/<arn> endpoint to publish SNS message of updated record to executions SNS topic
    • CUMULUS-2765

      • Updated updateGranuleStatusToQueued in write-granules to write to Elasticsearch and publish SNS message to granules topic.
    • CUMULUS-2774

      • Updated constructGranuleSnsMessage and constructCollectionSnsMessage to throw error if eventType is invalid or undefined.
    • CUMULUS-2776

      • Updated getTableIndexDetails in db-indexer to use correct deleteFnName for reconciliation reports.
    • CUMULUS-2780

      • Updated bulk granule reingest operation to read granules from PostgreSQL instead of DynamoDB.
    • CUMULUS-2778

      • Updated default value of async_operation_image in tf-modules/cumulus/variables.tf to cumuluss/async-operation:38
    • CUMULUS-2854

      • Updated rules model to decouple createRuleTrigger from create.
      • Updated rules POST endpoint to call rulesModel.createRuleTrigger directly to create rule trigger.
      • Updated rules PUT endpoints to call rulesModel.createRuleTrigger if update fails and reversion needs to occur.

Fixed

  • CUMULUS-2311 - RDS Migration Epic Phase 2
    • CUMULUS-2810
      • Updated @cumulus/db/translate/translatePostgresProviderToApiProvider to correctly return provider password and updated tests to prevent reintroduction.
    • CUMULUS-2778
      • Fixed async operation docker image to correctly update record status in Elasticsearch
    • Updated localAPI to set additional env variable, and fixed GET /executions/status response
    • CUMULUS-2877
      • Ensure database records receive a timestamp when writing granules.
lfrederick
published 9.9.4 •

lfrederick
published 10.1.2 •

Changelog

Source

[v10.1.2] 2022-03-11

Added

  • CUMULUS-2859
    • Update postgres-db-migration lambda timeout to default 900 seconds
    • Add db_migration_lambda_timeout variable to data-persistence module to allow this timeout to be user configurable
  • CUMULUS-2868
    • Added iam:PassRole permission to step_policy in tf-modules/ingest/iam.tf
lfrederick
published 10.1.1 •

Changelog

Source

[v10.1.1] 2022-03-04

Migration steps

  • Due to a bug in the PUT /rules/<name> endpoint, the rule records in PostgreSQL may be out of sync with records in DynamoDB. In order to bring the records into sync, re-run the previously deployed data-migration1 Lambda with a payload of {"forceRulesMigration": true}:
aws lambda invoke --function-name $PREFIX-data-migration1 \
  --payload $(echo '{"forceRulesMigration": true}' | base64) $OUTFILE

Added

  • CUMULUS-2841

    • Add integration test to validate PDR node provider that requires password credentials succeeds on ingest
  • CUMULUS-2846

    • Added @cumulus/db/translate/rule.translateApiRuleToPostgresRuleRaw to translate API rule to PostgreSQL rules and keep undefined fields

Changed

  • CUMULUS-NONE

    • Adds logging to ecs/async-operation Docker container that launches async tasks on ECS. Sets default async_operation_image_version to 39.
  • CUMULUS-2845

    • Updated rules model to decouple createRuleTrigger from create.
    • Updated rules POST endpoint to call rulesModel.createRuleTrigger directly to create rule trigger.
    • Updated rules PUT endpoints to call rulesModel.createRuleTrigger if update fails and reversion needs to occur.
  • CUMULUS-2846

    • Updated version of localstack/localstack used in local unit testing to 0.11.5

Fixed

  • Upgraded lodash to version 4.17.21 to fix vulnerability
  • CUMULUS-2845
    • Fixed bug in POST /rules endpoint causing rule records to be created inconsistently in DynamoDB and PostgreSQL
  • CUMULUS-2846
    • Fixed logic for PUT /rules/<name> endpoint causing rules to be saved inconsistently between DynamoDB and PostgreSQL
  • CUMULUS-2854
    • Fixed queue granules behavior where the task was not accounting for granules that already had createdAt set. Workflows downstream in this scenario should no longer fail to write their granules due to order-of-db-writes constraints in the database update logic.
lfrederick
published 9.4.2 •

lfrederick
published 10.1.0 •

Changelog

Source

[v10.1.0] 2022-02-23

Added

  • CUMULUS-2775
    • Added a configurable parameter group for the RDS serverless database cluster deployed by tf-modules/rds-cluster-tf. The allowed parameters for the parameter group can be found in the AWS documentation of allowed parameters for an Aurora PostgreSQL cluster. By default, the following parameters are specified:
      • shared_preload_libraries: pg_stat_statements,auto_explain
      • log_min_duration_statement: 250
      • auto_explain.log_min_duration: 250
  • CUMULUS-2781
    • Add api_config secret to hold API/Private API lambda configuration values
  • CUMULUS-2840
    • Added an index on granule_cumulus_id to the RDS files table.

Changed

  • CUMULUS-2492
    • Modify collectionId logic to accomodate trailing underscores in collection short names. e.g. shortName____
  • CUMULUS-2847
    • Move DyanmoDb table name into API keystore and initialize only on lambda cold start
  • CUMULUS-2833
    • Updates provider model schema titles to display on the dashboard.
  • CUMULUS-2837
    • Update process-s3-dead-letter-archive to unpack SQS events in addition to Cumulus Messages
    • Update process-s3-dead-letter-archive to look up execution status using getCumulusMessageFromExecutionEvent (common method with sfEventSqsToDbRecords)
    • Move methods in api/lib/cwSfExecutionEventUtils to @cumulus/message/StepFunctions
  • CUMULUS-2775
    • Changed the timeout_action to ForceApplyCapacityChange by default for the RDS serverless database cluster tf-modules/rds-cluster-tf
  • CUMULUS-2781
    • Update API lambda to utilize api_config secret for initial environment variables

Fixed

  • CUMULUS-2853
    • Move OAUTH_PROVIDER to lambda env variables to address regression in CUMULUS-2781
    • Add logging output to api app router
  • Added Cloudwatch permissions to <prefix>-steprole in tf-modules/ingest/iam.tf to address the Error: error creating Step Function State Machine (xxx): AccessDeniedException: 'arn:aws:iam::XXX:role/xxx-steprole' is not authorized to create managed-rule error in non-NGAP accounts:
    • events:PutTargets
    • events:PutRule
    • events:DescribeRule
lfrederick
published 9.9.3 •

Changelog

Source

[v9.9.3] 2021-02-17 [BACKPORT]

Please note changes in 9.9.3 may not yet be released in future versions, as this is a backport and patch release on the 9.9.x series of releases. Updates that are included in the future will have a corresponding CHANGELOG entry in future releases.

  • CUMULUS-2853
    • Move OAUTH_PROVIDER to lambda env variables to address regression in 9.9.2/CUMULUS-2275
    • Add logging output to api app router
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc