gruyaume
(Guillaume Belanger)
8 October 2024 17:58
1
Hello,
Can you please create a new 0
track for the Notary K8s charm ?
Thank you,
Note : I tried to do this via self-service with:
curl https://api.charmhub.io/v1/charm/notary-k8s/tracks -X POST -H'Content-type: application/json' -H "$CHARMHUB_MACAROON_HEADER" -d '[{"name": "0"}]'.
I got the following error:
{"error-list":[{"code":"missing-guardrails","message":"Missing guardrails for requested ('charm', 'qICIBIa47DAeKtvZChzH4a3597KH5VqJ') package"}]}.
drednout
(Alex Ramanau)
9 October 2024 15:32
2
Hi, @gruyaume !
Could I propose to add a guardrail regexp and then you should be able to use self-service endpoint for tracks? It seems that you need just a plain number, so \d+
looks like a good enough guardrail.
gruyaume
(Guillaume Belanger)
9 October 2024 20:00
3
@drednout Yes that’s good with me!
1 Like
drednout
(Alex Ramanau)
10 October 2024 07:52
4
I’ve created a guardrail for notary-k8s
:
"guardrail_patterns": [
{
"pattern": "\\d+",
"created_at": "2024-10-10T07:50:36.683411"
}
],
Have a great day, @gruyaume !