Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Externalize sensitive configuration values in backup templates #574

Description

@mxro

Summary

Hardcoding sensitive information such as AWS Account IDs, Backup Vault ARNs, and KMS Key ARNs in the goldstack.json configuration file is a security risk as these values are committed to version control.

Affected Packages

  • @workspaces/templates/packages/backup/
  • @workspaces/templates/packages/backup-central/

Details

In the current implementation of these templates, several sensitive AWS-related values are defined directly in the goldstack.json file.

workspaces/templates/packages/backup/goldstack.json

  • centralBackupVaultArn
  • destinationAccountId
  • destinationKmsKeyArn

workspaces/templates/packages/backup-central/goldstack.json

  • allowedAccountIds
  • sourceAccountIds
  • sourceRoleArns

Proposed Solution

These sensitive values should be externalized and loaded from environment variables or a secure secrets management system (e.g., using .env files), as recommended in the project's documentation. This should be applied to all deployments within these packages to ensure that sensitive data is not checked into the repository.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions