Comments (7)
Here to shed some light on this issue 👋
The following command datree config set offline local
only tells the Datree CLI what to do once it detects there is no internet connection.
The datree CLI detects a network error, and only if one is detected will it go offline.
A network error is detected in this code block
Because your network-blocking software returns a modified (and different) network error than expected, Datree does not switch to offline mode.
A quick possible patch could be to add your particular error (or some distinguishing part of it) to the errors array in the code block mentioned:
Maybe "Web Page Blocked"
or "blocked"
(case-insensitive)?
Line 21 in dc462f5
This is an open-source project, pull requests are welcomed :)
from datree.
@romanlab I believe I just grabbed the binary from the releases page.
@royhadad OK, thanks for that clarification. I will try to work on a pull request this week for the fix you suggested.
Though I wonder about the functionality of that offline option ... seems like there could theoretically be any number of error messages thrown depending on what network configurations folks have. Wouldn't it make more sense to just skip any outbound calls when the offline flag is on rather than wait for an error to happen?
from datree.
related to: #746
from datree.
@adamdepollo Thank you for opening this issue, we will prioritize it soon and update here once we start developing the solution :)
from datree.
@adamdepollo i noticed the url is pointing to our staging environment. How did you download the version you're using?
from datree.
@adamdepollo It's best to download via one of our install methods but if you want to use a binary from the releases, make sure you don't use one of the -rc
releases as they point to our staging environment and may be less stable to use.
from datree.
@romanlab Ah OK good to know, I think I did pull the rc one originally but unfortunately having the same issue with the stable version :(
from datree.
Related Issues (20)
- Dashboard login giving error in verifying token. HOT 7
- Datree installation fails in Minikube due to insufficient cpu HOT 3
- Datree Support for SOPS or ability to skip files where "sops" is contained HOT 5
- Datree installation is failing HOT 1
- could not find schema for PodDisruptionBudget HOT 2
- k8s object names are not displayed during datree kustomize test schema validation HOT 3
- datree fails with yaml anchors on linux HOT 4
- Datree update causing validation errors on non-existent fields in deployment files HOT 2
- Cannot use Policy as code from CLI HOT 12
- Why `Prevent containers from accessing host files by using high UIDs` request uid > 10 000 HOT 8
- Error messages logged to stdout instead of stderr break Json and Yaml output formats HOT 1
- Fail to evaluate custom rule with Rego HOT 3
- showing container name in addition of array index.
- Support skipping on a single container
- Disable some of built-in rules? HOT 1
- Add optional rule to lint kubernetes resource names
- CIS_INVALID_VALUE_SECCOMP_PROFILE Is reporting error when it should not HOT 4
- documentation link is not working properly
- Datree outage? HOT 4
- get.datree.io is down HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datree.