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

@cumulus/aws-client

Package Overview
Dependencies
Maintainers
12
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/aws-client - npm Package Versions

1
14

9.2.3

Diff

lfrederick
published 9.9.0 •

Changelog

Source

[v9.9.0] 2021-11-03

Added

  • NDCUM-624: Add support for ISO metadata files for the MoveGranules step
    • Add function isISOFile to check if a given file object is an ISO file
    • granuleToCmrFileObject and granulesToCmrFileObjects now take a filterFunc argument
      • filterFunc's default value is isCMRFile, so the previous behavior is maintained if no value is given for this argument
      • MoveGranules passes a custom filter function to granulesToCmrFileObjects to check for isISOFile in addition to isCMRFile, so that metadata from .iso.xml files can be used in the urlPathTemplate
  • PR #2535
    • NSIDC and other cumulus users had desire for returning formatted dates for the 'url_path' date extraction utilities. Added 'dateFormat' function as an option for extracting and formating the entire date. See docs/workflow/workflow-configuration-how-to.md for more information.
  • PR #2548
    • Updated webpack configuration for html-loader v2
  • CUMULUS-2640
    • Added Elasticsearch client scroll setting to the CreateReconciliationReport lambda function.
    • Added elasticsearch_client_config tfvars to the archive and cumulus terraform modules.
  • CUMULUS-2683
    • Added default_s3_multipart_chunksize_mb setting to the move-granules lambda function.
    • Added default_s3_multipart_chunksize_mb tfvars to the cumulus and ingest terraform modules.
    • Added optional parameter chunkSize to @cumulus/aws-client/S3.moveObject and @cumulus/aws-client/S3.multipartCopyObject to set the chunk size of the S3 multipart uploads.
    • Renamed optional parameter maxChunkSize to chunkSize in @cumulus/aws-client/lib/S3MultipartUploads.createMultipartChunks.

Changed

  • Upgraded all Cumulus workflow tasks to use @cumulus/cumulus-message-adapter-js version 2.0.1
  • CUMULUS-2725
    • Updated providers endpoint to return encrypted password
    • Updated providers model to try decrypting credentials before encryption to allow for better handling of updating providers
  • CUMULUS-2734
    • Updated @cumulus/api/launchpadSaml.launchpadPublicCertificate to correctly retrieve certificate from launchpad IdP metadata with and without namespace prefix.
lfrederick
published 9.8.0 •

Changelog

Source

[v9.8.0] 2021-10-19

Notable changes

Added

  • Added @cumulus/db/createRejectableTransaction() to handle creating a Knex transaction that will throw an error if the transaction rolls back. As of Knex 0.95+, promise rejection on transaction rollback is no longer the default behavior.

  • CUMULUS-2639

    • Increases logging on reconciliation reports.
  • CUMULUS-2670

    • Updated lambda_timeouts string map variable for cumulus module to accept a update_granules_cmr_metadata_file_links_task_timeout property
  • CUMULUS-2598

    • Add unit and integration tests to describe queued granules as ignored when duplicate handling is 'skip'

Changed

  • Updated knex version from 0.23.11 to 0.95.11 to address security vulnerabilities
  • Updated default version of async operations Docker image to cumuluss/async-operation:36
  • CUMULUS-2590
    • Granule applyWorkflow, Reingest actions and Bulk operation now update granule status to queued when scheduling the granule.
  • CUMULUS-2643
    • relocates system file buckets.json out of the s3://internal-bucket/workflows directory into s3://internal-bucket/buckets.
lfrederick
published 9.7.0 •

Changelog

Source

[v9.7.0] 2021-10-01

Notable Changes

  • CUMULUS-2583
    • The queue-granules task now updates granule status to queued when a granule is queued. In order to prevent issues with the private API endpoint and Lambda API request and concurrency limits, this functionality runs with limited concurrency, which may increase the task's overall runtime when large numbers of granules are being queued. If you are facing Lambda timeout errors with this task, we recommend converting your queue-granules task to an ECS activity. This concurrency is configurable via the task config's concurrency value.
  • CUMULUS-2676
    • The discover-granules task has been updated to limit concurrency on checks to identify and skip already ingested granules in order to prevent issues with the private API endpoint and Lambda API request and concurrency limits. This may increase the task's overall runtime when large numbers of granules are discovered. If you are facing Lambda timeout errors with this task, we recommend converting your discover-granules task to an ECS activity. This concurrency is configurable via the task config's concurrency value.
  • Updated memory of <prefix>-sfEventSqsToDbRecords Lambda to 1024MB

Added

  • CUMULUS-2000
    • Updated @cumulus/queue-granules to respect a new config parameter: preferredQueueBatchSize. Queue-granules will respect this batchsize as best as it can to batch granules into workflow payloads. As workflows generally rely on information such as collection and provider expected to be shared across all granules in a workflow, queue-granules will break batches up by collection, as well as provider if there is a provider field on the granule. This may result in batches that are smaller than the preferred size, but never larger ones. The default value is 1, which preserves current behavior of queueing 1 granule per workflow.
  • CUMULUS-2630
    • Adds a new workflow DiscoverGranulesToThrottledQueue that discovers and writes granules to a throttled background queue. This allows discovery and ingest of larger numbers of granules without running into limits with lambda concurrency.

Changed

  • CUMULUS-2720
    • Updated Core CI scripts to validate CHANGELOG diffs as part of the lint process
  • CUMULUS-2695
    • Updates the example/cumulus-tf deployment to change archive_api_reserved_concurrency from 8 to 5 to use fewer reserved lambda functions. If you see throttling errors on the <stack>-apiEndpoints you should increase this value.
    • Updates cumulus-tf/cumulus/variables.tf to change archive_api_reserved_concurrency from 8 to 15 to prevent throttling on the dashboard for default deployments.
  • CUMULUS-2584
    • Updates api/endpoints/execution-status.js get method to include associated granules, as an array, for the provided execution.
    • Added getExecutionArnsByGranuleCumulusId returning a list of executionArns sorted by most recent first, for an input Granule Cumulus ID in support of the move of translatePostgresGranuleToApiGranule from RDS-Phase2 feature branch
    • Added getApiExecutionCumulusIds returning cumulus IDs for a given list of executions
  • CUMULUS-NONE
    • Downgrades elasticsearch version in testing container to 5.3 to match AWS version.
    • Update serve.js -> eraseDynamoTables(). Changed the call Promise.all() to Promise.allSettled() to ensure all dynamo records (provider records in particular) are deleted prior to reseeding.

Fixed

  • CUMULUS-2583
    • Fixed a race condition where granules set as “queued” were not able to be set as “running” or “completed”
lfrederick
published 9.6.0 •

Changelog

Source

[v9.6.0] 2021-09-20

Added

  • CUMULUS-2576
    • Adds PUT /granules API endpoint to update a granule
    • Adds helper updateGranule to @cumulus/api-client/granules
  • CUMULUS-2606
    • Adds POST /granules/{granuleId}/executions API endpoint to associate an execution with a granule
    • Adds helper associateExecutionWithGranule to @cumulus/api-client/granules
  • CUMULUS-2583
    • Adds queued as option for granule's status field

Changed

  • Moved ssh2 package from @cumulus/common to @cumulus/sftp-client and upgraded package from ^0.8.7 to ^1.0.0 to address security vulnerability issue in previous version.

  • CUMULUS-2583

    • QueueGranules task now updates granule status to queued once it is added to the queue.
  • CUMULUS-2617

    • Use the Authorization header for CMR Launchpad authentication instead of the deprecated Echo-Token header.

Fixed

  • Added missing permission for <prefix>_ecs_cluster_instance_role IAM role (used when running ECS services/tasks) to allow kms:Decrypt on the KMS key used to encrypt provider credentials. Adding this permission fixes the sync-granule task when run as an ECS activity in a Step Function, which previously failed trying to decrypt credentials for providers.

  • CUMULUS-2576

    • Adds default value to granule's timestamp when updating a granule via API.
lfrederick
published 9.5.0 •

Changelog

Source

[v9.5.0] 2021-09-07

BREAKING CHANGES

  • Removed logs record type from mappings from Elasticsearch. This change should not have any adverse impact on existing deployments, even those which still contain logs records, but technically it is a breaking change to the Elasticsearch mappings.
  • Changed @cumulus/api-client/asyncOperations.getAsyncOperation to return parsed JSON body of response and not the raw API endpoint response

Added

  • CUMULUS-2670
    • Updated core cumulus module to take lambda_timeouts string map variable that allows timeouts of ingest tasks to be configurable. Allowed properties for the mapping include:
    • discover_granules_task_timeout
    • discover_pdrs_task_timeout
    • hyrax_metadata_update_tasks_timeout
    • lzards_backup_task_timeout
    • move_granules_task_timeout
    • parse_pdr_task_timeout
    • pdr_status_check_task_timeout
    • post_to_cmr_task_timeout
    • queue_granules_task_timeout
    • queue_pdrs_task_timeout
    • queue_workflow_task_timeout
    • sync_granule_task_timeout
  • CUMULUS-2575
    • Adds POST /granules API endpoint to create a granule
    • Adds helper createGranule to @cumulus/api-client
  • CUMULUS-2577
    • Adds POST /executions endpoint to create an execution
  • CUMULUS-2578
    • Adds PUT /executions endpoint to update an execution
  • CUMULUS-2592
    • Adds logging when messages fail to be added to queue
  • CUMULUS-2644
    • Pulled delete method for granules-executions.ts implemented as part of CUMULUS-2306 from the RDS-Phase-2 feature branch in support of CUMULUS-2644.
    • Pulled erasePostgresTables method in serve.js implemented as part of CUMULUS-2644, and CUMULUS-2306 from the RDS-Phase-2 feature branch in support of CUMULUS-2644
    • Added resetPostgresDb method to support resetting between integration test suite runs

Changed

  • Updated processDeadLetterArchive Lambda to return an object where processingSucceededKeys is an array of the S3 keys for successfully processed objects and processingFailedKeys is an array of S3 keys for objects that could not be processed

  • Updated async operations to handle writing records to the databases when output of the operation is undefined

  • CUMULUS-2644

    • Moved migration directory from the db-migration-lambda to the db package and updated unit test references to migrationDir to be pulled from @cumulus/db
    • Updated @cumulus/api/bin/serveUtils to write records to PostgreSQL tables
  • CUMULUS-2575

    • Updates model/granule to allow a granule created from API to not require an execution to be associated with it. This is a backwards compatible change that will not affect granules created in the normal way.
    • Updates @cumulus/db/src/model/granules functions get and exists to enforce parameter checking so that requests include either (granule_id and collection_cumulus_id) or (cumulus_id) to prevent incorrect results.
    • @cumulus/message/src/Collections.deconstructCollectionId has been modified to throw a descriptive error if the input collectionId is undefined rather than TypeError: Cannot read property 'split' of undefined. This function has also been updated to throw descriptive errors if an incorrectly formatted collectionId is input.
lfrederick
published 9.4.0 •

Changelog

Source

[v9.4.0] 2021-08-16

Notable changes

  • @cumulus/sync-granule task should now properly handle syncing files from HTTP/HTTPS providers where basic auth is required and involves a redirect to a different host (e.g. downloading files protected by Earthdata Login)

Added

  • CUMULUS-2591
    • Adds failedExecutionStepName to failed execution's jsonb error records. This is the name of the Step Function step for the last failed event in the execution's event history.
  • CUMULUS-2548
    • Added allowed_redirects field to PostgreSQL providers table
    • Added allowedRedirects field to DynamoDB <prefix>-providers table
    • Added @cumulus/aws-client/S3.streamS3Upload to handle uploading the contents of a readable stream to S3 and returning a promise
  • CUMULUS-2373
    • Added replaySqsMessages lambda to replay archived incoming SQS messages from S3.
    • Added /replays/sqs endpoint to trigger an async operation for the replaySqsMessages lambda.
    • Added unit tests and integration tests for new endpoint and lambda.
    • Added getS3PrefixForArchivedMessage to ingest/sqs package to get prefix for an archived message.
    • Added new async_operation type SQS Replay.
  • CUMULUS-2460
    • Adds POST /executions/workflows-by-granules for retrieving workflow names common to a set of granules
    • Adds workflowsByGranules to @cumulus/api-client/executions
  • CUMULUS-2635
    • Added helper functions:
      • @cumulus/db/translate/file/translateApiPdrToPostgresPdr

Fixed

  • CUMULUS-2548
    • Fixed @cumulus/ingest/HttpProviderClient.sync to properly handle basic auth when redirecting to a different host and/or host with a different port
  • CUMULUS-2626
    • Update PDR migration to correctly find Executions by a Dynamo PDR's execution field
  • CUMULUS-2635
    • Update data-migration2 to migrate PDRs before migrating granules.
    • Update data-migration2 unit tests testing granules migration to reference PDR records to better model the DB schema.
    • Update migratePdrRecord to use translateApiPdrToPostgresPdr function.

Changed

  • CUMULUS-2373
    • Updated getS3KeyForArchivedMessage in ingest/sqs to store SQS messages by queueName.
  • CUMULUS-2630
    • Updates the example/cumulus-tf deployment to change archive_api_reserved_concurrency from 2 to 8 to prevent throttling with the dashboard.
lfrederick
published 9.2.2 •

Changelog

Source

[v9.2.2] 2021-08-06 - [BACKPORT]

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

Added

  • CUMULUS-2635
    • Added helper functions:
      • @cumulus/db/translate/file/translateApiPdrToPostgresPdr

Fixed

  • CUMULUS-2635
    • Update data-migration2 to migrate PDRs before migrating granules.
    • Update data-migration2 unit tests testing granules migration to reference PDR records to better model the DB schema.
    • Update migratePdrRecord to use translateApiPdrToPostgresPdr function.
lfrederick
published 8.1.2 •

Changelog

Source

[v8.1.2] 2021-07-29

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

Notable changes

  • cmr_custom_host variable for cumulus module can now be used to configure Cumulus to integrate with a custom CMR host name and protocol (e.g. http://custom-cmr-host.com). Note that you must include a protocol (http:// or https://) if specifying a value for this variable.
  • @cumulus/sync-granule task should now properly handle syncing files from HTTP/HTTPS providers where basic auth is required and involves a redirect to a different host (e.g. downloading files protected by Earthdata Login)

Added

  • CUMULUS-2548
    • Added allowed_redirects field to PostgreSQL providers table
    • Added allowedRedirects field to DynamoDB <prefix>-providers table
    • Added @cumulus/aws-client/S3.streamS3Upload to handle uploading the contents of a readable stream to S3 and returning a promise

Changed

  • Updated cmr_custom_host variable to accept a full protocol and host name (e.g. http://cmr-custom-host.com), whereas it previously only accepted a host name

Fixed

  • Fixed bug where cmr_custom_host variable was not properly forwarded into archive, ingest, and sqs-message-remover modules from cumulus module
  • CUMULUS-2548
    • Fixed @cumulus/ingest/HttpProviderClient.sync to properly handle basic auth when redirecting to a different host and/or host with a different port
lfrederick
published 9.2.1 •

Changelog

Source

[v9.2.1] 2021-07-29 - [BACKPORT]

Fixed

  • CUMULUS-2626
    • Update PDR migration to correctly find Executions by a Dynamo PDR's execution field
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