-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[grafana] fix: don't automount default serviceAccount #3302
base: main
Are you sure you want to change the base?
[grafana] fix: don't automount default serviceAccount #3302
Conversation
d3eee34
to
8f2f9d2
Compare
8f2f9d2
to
bcb8073
Compare
Hi, please create a distinct property for it.
The default service account should never used. Could you create a serviceAccount for imageRender the same way at it's done at grafana? |
I was thinking about that, but why? If there is no serviceAccount defined, automount is not needed and default shouldn't be used. So the only situation in which automount even makes sense to be enabled is when a serviceAccount is defined. So why make it configurable just so every user has to touch this field, especially when set to true by default?
Now that I think about it, is the imageRenderer even able to use a serviceAccount? Maybe we can remove this whole stuff completely? |
It also best practice to not reference the default serviceAccount anywhere. |
Yes, that's why I don't think it's useful to have the automountServiceAccountToken to be configurable 👍
True, but they can't really detect the opposite, automountServiceAccountToken is |
They complain if the default service account is used. I appreciate that you found that issue and I guess its an good time to introduce a dedicate for the image. It's common practice. |
Is the imageRenderer even able to use a serviceAccount? Why create one, if it won't be used? |
Compliance/Security scanners doesn't follow logical rules as well. |
Ok? What does that have to do with anything? 😅 Do you mean we should create an unused serviceAccount / add a flag to be able to set automountServiceAccountToken even though it makes no sense just because some random tools that don't have anything to do with this aren't good? |
Yes |
this doesn't make sense, but as per request by grafana#3302 (comment), it has to be done Signed-off-by: Chris Werner Rau <cwrau@cwrau.info>
Signed-off-by: Chris Werner Rau <cwrau@cwrau.info>
this doesn't make sense, but as per request by grafana#3302 (comment), it has to be done Signed-off-by: Chris Werner Rau <cwrau@cwrau.info>
12cf69b
to
6244db7
Compare
Donso |
@jkroepke Can you review again please? |
Signed-off-by: MH <zanhsieh@gmail.com>
this is best-practice