-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
OPA does not save bundle files to disk #6939
Labels
Comments
There maybe a bug in the handling of OCI bundles. Looking at this code, we probably need a |
Are you using a tag other than "latest"? I could imagine that making a difference... |
I tried using the latest and specific tags, the behavior is the same, there is no difference |
Sergey-Kizimov
added a commit
to Sergey-Kizimov/opa
that referenced
this issue
Aug 20, 2024
This commit fixes an issue related to zero-sized bundles being saved to disk, which can cause OPA to fail to start if a remote OCI repository is unavailable. Fixes: open-policy-agent#6939 Signed-off-by: Sergey-Kizimov <[email protected]>
I've create PR for fixing this issue #6945 |
Sergey-Kizimov
added a commit
to Sergey-Kizimov/opa
that referenced
this issue
Aug 20, 2024
This commit fixes an issue related to zero-sized bundles being saved to disk, which can cause OPA to fail to start if a remote OCI repository is unavailable. Fixes: open-policy-agent#6939 Signed-off-by: Sergey-Kizimov <[email protected]> Signed-off-by: Sergey-Kizimov <[email protected]>
Sergey-Kizimov
added a commit
to Sergey-Kizimov/opa
that referenced
this issue
Aug 20, 2024
This commit fixes an issue related to zero-sized bundles being saved to disk, which can cause OPA to fail to start if a remote OCI repository is unavailable. Fixes: open-policy-agent#6939 Signed-off-by: Sergey-Kizimov <[email protected]> Signed-off-by: Sergey-Kizimov <[email protected]>
ashutosh-narkar
pushed a commit
to Sergey-Kizimov/opa
that referenced
this issue
Aug 21, 2024
This commit fixes an issue related to zero-sized bundles being saved to disk, which can cause OPA to fail to start if a remote OCI repository is unavailable. Fixes: open-policy-agent#6939 Signed-off-by: Sergey-Kizimov <[email protected]> Signed-off-by: Sergey-Kizimov <[email protected]>
ashutosh-narkar
pushed a commit
to Sergey-Kizimov/opa
that referenced
this issue
Aug 21, 2024
This commit fixes an issue related to zero-sized bundles being saved to disk, which can cause OPA to fail to start if a remote OCI repository is unavailable. Fixes: open-policy-agent#6939 Signed-off-by: Sergey-Kizimov <[email protected]> Signed-off-by: Sergey-Kizimov <[email protected]>
brettmc
pushed a commit
to brettmc/opa
that referenced
this issue
Aug 22, 2024
This commit fixes an issue related to zero-sized bundles being saved to disk, which can cause OPA to fail to start if a remote OCI repository is unavailable. Fixes: open-policy-agent#6939 Signed-off-by: Sergey-Kizimov <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OPA does not actually save the bundle files on disk, even though if in config
persist: true
and it reports that bundles has been saved on disk.So, if OPA is restarted and the OCI repository is not unavailable at that moment, the startup will fail.
I've tested this on official OPA docker image in k8s and locally
opa version:
command:
opa run --server --config-file config.yaml --addr=0.0.0.0:8443 --skip-version-check --log-level=debug
config.yaml
logs:
Once started, OPA log error with code
EOF
and starts downloading it from the remote OCI repository.The text was updated successfully, but these errors were encountered: