GitHub
11/04/2025, 4:09 AMMAPPER_HASH_SALT=abcdef in .env or in my terminal environment, and I can then do the following in my meltano.yml file, and have that value expand correctly to abcdef within the config. This should produce a hashed email column that has abcdef as a salt, and a hash_salt_printout column that contains the value "abcdef" (you'd never do that second part in prod, of course, just giving a silly example that I used in a staging environment to check whether the var was expanding correctly).
mappers:
- name: meltano-map-transformer
pip_url: "git+<https://github.com/MeltanoLabs/meltano-map-transform.git>"
executable: meltano-map-transform
mappings:
- name: redact_email__email
config:
stream_maps:
redact_email__email: &redact_email__email
email_name_hash: md5(config['hash_salt'] + email_address)
hash_salt_printout: config['hash_salt']
public-example_table: *redact_email__email
stream_map_config:
hash_salt: $MAPPER_HASH_SALT
meltano/meltanoGitHub
11/04/2025, 4:09 AM