Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pseudonymizer late error on non existing regexmapping #617

Merged

Conversation

ekneg54
Copy link
Collaborator

@ekneg54 ekneg54 commented Jun 21, 2024

check with:

  1. create pipeline.yml
input:
  dummy:
    type: dummy_input
    documents: [{ "foo": "bar" }]
output:
  dummy:
    type: dummy_output
pipeline:
  - pseudonymizername:
      type: pseudonymizer
      specific_rules:
        - filter: foo
          pseudonymizer:
            mapping:
              foo: DOES_NOT_EXIST
      generic_rules: []
      outputs:
        - dummy: pseudonyms_topic
      pubkey_analyst: analyst.crt
      pubkey_depseudo: depseudo.crt
      hash_salt: secret_salt
      regex_mapping: tests/testdata/unit/pseudonymizer/pseudonymizer_regex_mapping.yml
      max_cached_pseudonyms: 1000000
  1. create needed pseudo keys
logprep pseudo generate -f analyst 1024
logprep pseudo generate -f depseudo 2048

run logprep with:

logprep run ./pipeline.yml

you will get nice error output complaining the regex mapping is not found

@ekneg54 ekneg54 added the bug Something isn't working label Jun 21, 2024
@ekneg54 ekneg54 self-assigned this Jun 21, 2024
@ekneg54 ekneg54 linked an issue Jun 21, 2024 that may be closed by this pull request
@ekneg54 ekneg54 marked this pull request as ready for review June 21, 2024 14:23
@ekneg54 ekneg54 requested a review from djkhl June 21, 2024 14:23
@ekneg54 ekneg54 merged commit 567d546 into main Jun 25, 2024
12 checks passed
@ekneg54 ekneg54 deleted the 598-pseudonymizer-late-error-on-non-existing-regexmapping branch June 25, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pseudonymizer late error on non existing regexmapping
2 participants