Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poor error if chmod fails #195

Open
talex5 opened this issue Apr 18, 2017 · 3 comments
Open

Poor error if chmod fails #195

talex5 opened this issue Apr 18, 2017 · 3 comments

Comments

@talex5
Copy link

talex5 commented Apr 18, 2017

I tried providing my github cookie as a Docker secret. Docker makes it appear inside the container as a world-readable file at /run/secrets/cookie.

It appears that ocaml-github checks the permissions, tries to chmod it (!), fails, throws away the error, and reports that the token doesn't exist. Quite confusing...

I guess this is the problem line:

) (fun _ -> return_none)

@avsm
Copy link
Member

avsm commented May 9, 2017

odd, why is it trying to chmod it...?

@dsheets
Copy link
Member

dsheets commented May 9, 2017

It tries to chmod it to prevent overly readable secrets. In a past version, the default was world-readable secrets. The error behavior should definitely be different. PRs welcome.

@avsm
Copy link
Member

avsm commented May 9, 2017

Ah yes when I wrote the original jar I didn't set a umask on file creation -- thanks for clarifying!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants