Skip to content

Go SDK: an invalid keyset name gives ErrEncoding with no Help, and no rule named #1905

In review

Description

@auxesis

Background

The Go SDK is in languages/golang in this repository. It encrypts values in a Go program, and gets its keys from ZeroKMS, CipherStash's key management service. In November 2026 we audited version v0.1.0-rc.7 by building programs against a dev workspace and PostgreSQL 17 with EQL (Encrypt Query Language) v4.

Problem

The SDK refuses some keyset names before calling ZeroKMS, such as names with spaces or dots. It returns ErrEncoding with an empty Help, and does not say which rule the name broke.

Proposal

  1. Return an error that names the rule, with Help that gives the allowed characters and length.

Evidence

Verified by running code.

Metadata

Metadata

Assignees

Labels

GolangSDKbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions