Closed ygrange closed 2 years ago
Could you send me the dockerfile you use to create the centos8 image, pls?
So this is a quick and dirty experiment to see if I got the syntax right to share it with someone. So I never had a Dockerfile, but I just made one out of my history for you (and reproducibilities sake; addind .txt for github to like the attachment). Dockerfile.txt
Sure, my problem is that my dockerfile for centos8 stopped working completely. I'm fiddling with yours at the moment.
So I think ym is basically broken in centos8's own docker image. So the first trick I have to do is change the main repo I think (let's be fair: I copy pasted two lines from SO without really parsing them).
Yes, those did the trick :)
I can reproduce the error messagen, but can also confirm that things work nicely
Yeah, so this may atually just be an error that is risen too enthousiastically...
I tested it myself now. The described behavior is not entirely wrong. But it certainly can be improved so that this message isn't generated.
But let me explain what is happening here:
issuer.config
in the user's oidc-agent directory
oidc-gen
automatically collects the used issuers in that file and can also handle the case where the file does not exist (however, in this case the log message is created)So yes, everyhting is working fine, there is just an error message logged that is not needed and in the docker case it is visible. I'll commit a fix to get rid of the log message.
I just installed
oidc-agent-cli
in acentos:8
Docker container. Then I am adding an IAM instance as oidc provider usingoidc-gen
.At this stage (and I have to admit I did not check whether that is before or after accepting the request on the IAM side) I get the message
oidc-gen[171]: entire read failed in function readFILE
But that seems not to be causing any issues (token seems to be generated all right).
The only thing I can think of that is out of the ordinary is that I run the command as root (yeah, that's default in Docker), not sure if that is relevant here.