Adrien Aury

Results 31 issues of Adrien Aury

GoRegen is unmaintained since 2016, and there is a few known issue with this library Options for replacement - https://github.com/AnatolyRugalev/goregen - fork of GoRegen with some improvements - https://github.com/lucasjones/reggen -...

# Start PIMO with a backend web service as source for mocks. Related to #40 and #15 Find a way to define routes. Possibly use the mmock project (https://github.com/jmartin82/mmock/)

enhancement

Achieved a processing time reduction of between 20% and 35% (depending on the size of the JSON input). **BenchmarkPimoRun** Benchmark | ns/op | B/op | allocs/op -- | --:| --:|...

**masking.yml** ```yaml version: "1" libraries: main: "https://raw.githubusercontent.com/CGI-FR/PIMO/feat/mask-library/examples" masking: - selector: jsonpath: "iban" mask: apply: uri: "main:iban-generate.yml" - selector: jsonpath: "rib" mask: apply: uri: "main:rib-generate.yml" ``` ```console ❯ echo '{"iban":{},"rib":{}}' |...

# Actual ```yaml - selector: jsonpath: "client_type1" mask: hashInCSV: uri: "file://../referentiels/type1.csv" - selector: jsonpath: "client_type2" mask: hashInCSV: uri: "file://../referentiels/type2.csv" - selector: jsonpath: "client" mask: template: '{{if eq .type_client 1}}{{.client_type1}}{{else}}{{.client_type2}}{{end}}' ```...

# Definitions A masking definition contains the following parts : - the generator : describe the process to generate a new value - the coherence context : describe the level...

This test has 1 in a million chance to fail, and it did fail once (https://github.com/CGI-FR/PIMO/actions/runs/5269693596) https://github.com/CGI-FR/PIMO/blob/main/test/suites/masking_random.yml#L25 Should be fixed

`hashInUri` fail randomly on Windows ``` echo: http: panic serving [::1]:63819: runtime error: index out of range [-724] goroutine 34 [running]: net/http.(*conn).serve.func1() /usr/local/go/src/net/http/server.go:1850 +0xe0 panic({0xcb6fe0, 0x13b01ab0}) /usr/local/go/src/runtime/panic.go:890 +0x21a github.com/cgi-fr/pimo/pkg/hash.MaskEngine.Mask({{0x1386a000, 0x375,...

bug

It's the responsibility of the mask to know if it's secure or not. Each time a new mask is added we have to update this function. Maybe we could append...

## Problem Markov Mask can be used on different samples: - lists of words - paragraphs For list of words, we would want to read the file line by line...