You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
IRA - ImageRoleAuthorization fails (even without prompting for permissions) when ImageAllowRules for the app gets created as part of app deployment.
#2311
Open
sangee2004 opened this issue
Nov 2, 2023
· 0 comments
containers: web: {
image: "nginx"
permissions: {
// These are permissions that will only be granted for this container in its namespace.
rules: [
{
verbs: ["*"],
apiGroups: ["foo.bar.com"],
resources: ["*"]
}
]
}
}
Deploy app using this image and when prompted for allowing the image choose "yes"
acorn run -n mytestnew testimage:v1
• WARNING: This application would like to use the image 'testimage:v1'.
This image is not trusted by any image allow rules in this project.
This could be VERY DANGEROUS to the cluster if you do not trust this
application. If you are unsure say no.
? Do you want to allow this app to use this (POTENTIALLY DANGEROUS) image? yes (this tag only)
✔ Created ImageAllowRules acorn/late-shape with image name patterns [testimage:v1,d59207049ee2552e27d7c350a1e04509d637627285f847b66094d61c2a511bf3]
✗ ERROR: rules needed: [{"serviceName":"web","rules":[{"verbs":["*"],"apiGroups":["foo.bar.com"],"resources":["*"],"scopes":["project"]}]}]
Once IAR for the app gets created , app deployment fails IRA check without prompting for permissions even when the right rules are available for it to succeed.
Run the same app again. It succeeds this time.
acorn run -n mytest1 testimage:v1
• WARNING: This application would like to request the following runtime permissions.
This could be VERY DANGEROUS to the cluster if you do not trust this
application. If you are unsure say no.
SERVICE VERBS/ACTIONS RESOURCES/API SCOPE
web * *.foo.bar.com project
? Do you want to allow this app to have these (POTENTIALLY DANGEROUS) permissions? Yes
mytest1
STATUS: ENDPOINTS[] HEALTHY[] UPTODATE[]
STATUS: ENDPOINTS[] HEALTHY[0] UPTODATE[0] (container: web): pending
STATUS: ENDPOINTS[] HEALTHY[0/1] UPTODATE[0] (container: web): not ready
STATUS: ENDPOINTS[] HEALTHY[0/1] UPTODATE[0] (container: web): ContainerCreating
STATUS: ENDPOINTS[] HEALTHY[0/1] UPTODATE[1] (container: web): ContainerCreating
STATUS: ENDPOINTS[] HEALTHY[0/1] UPTODATE[1] (container: web): not ready
┌───────────────────────────────────────────────┐
| STATUS: ENDPOINTS[] HEALTHY[1] UPTODATE[1] OK |
└───────────────────────────────────────────────┘
┌───────────────────────────────────────────────┐
| STATUS: ENDPOINTS[] HEALTHY[1] UPTODATE[1] OK |
└───────────────────────────────────────────────┘
Expected Behavior:
App deployment should succeed for the first time (from step 4) after being prompted for permissions.
The text was updated successfully, but these errors were encountered:
acorn version - v0.9.1-16-g89212fea+89212fea
Steps to reproduce the problem:
acorn install --features image-allow-rules=true,image-role-authorizations=true
Once IAR for the app gets created , app deployment fails IRA check without prompting for permissions even when the right rules are available for it to succeed.
Expected Behavior:
App deployment should succeed for the first time (from step 4) after being prompted for permissions.
The text was updated successfully, but these errors were encountered: