Skip to content

missing error handling in pkg/configutil/once.go #525

@JeyJeyGao

Description

@JeyJeyGao

What is the areas you experience the issue in?

Notation CLI

What is not working as expected?

If config files have permission error, it will trigger a program crash.

What did you expect to happen?

return the detail error rather than crash.

How can we reproduce it?

Remove the read permission for ~/.config/notaiton/config.json or ~/.config/notation/signingkeys.json.

Describe your environment

Linux, amd64

What is the version of your Notation CLI or Notation Library?

Notation RC.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageNeed to triage

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions