CGI-FR / CGI-FR/PIMO

[PROPOSAL] Mask http

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
43
Forks
16
PR merge metrics
No merged PRs in 30d

Description

# New mask HTTP

```yaml
- selector:
# the . (dot) selector should select the whole dictionary, so the http response will replace the input
jsonpath: "."
mask:
http:
method: get
url: https://www.data.gouv.fr/api/1/users/{{.userid}}/
# auth:
# headers:
- selector:
jsonpath: "first_name"
mask:
randomChoiceInUri: pimo://nameFR
```

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by tracing how YAML selector entries and existing mask types are parsed, then compare the proposed `http` configuration with the `randomChoiceInUri` example. Done should match the shown behavior: the `.` selector uses the HTTP response as input, with the URL's `{{.userid}}` value resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.