ytsaurus / ytsaurus/ytsaurus

[Go SDK] error on unmarshalling nested secure_vault

Open
#1,451 0 comments 1 reaction 1 assignee Claimed by @tinarsky View on GitHub
go SDK
Dominant language
C++
Stars
2.2k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

https://github.com/ytsaurus/ytsaurus/blob/770aca260c9f3e6b017f9c3c11c25b5b168e4966/yt/go/mapreduce/io.go#L31-L39

This code assumes that secure vault values are always string, which is not true for docker_auth secret (https://ytsaurus.tech/docs/en/user-guide/data-processing/layers/layer-paths#docker_auth). It leads to the following error:
```
job: corrupted secure vault:
go.ytsaurus.tech/yt/go/mapreduce.(*jobContext).initEnv
/go/pkg/mod/go.ytsaurus.tech/yt/go@v0.0.28/mapreduce/io.go:36
- yson: cannot unmarshal map into value of type []uint8
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.