BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Create offlineMode which does not connect to the internet

Description

This can be useful for

  • testing production server starts to ensure they aren’t reliant on external calls

  • running box in a secure network which blocks or flags any external access

 

There is a new config setting called “offlineMode”. Set it like so:

 

# enable offline mode config set offlineMode=true # go back to normal config set offlineMode=false

 

Right, now I’m checking it in the following places:

  • commandbox-update-check module

  • installation endpoints

    • forgebox

    • http/https/cached+http/cached_https

    • git/git+ssh/git+https/github

    • java

    • lex

    • jar

    • CFLib

    • S3

  • upgrade command

  • inside the progressable downloader class

 

This will NOT affect any direct calls to CFHTTP in a task runner or custom module as there is no way to hook into the CF Engine’s core.

Activity

Show:

Brad WoodApril 6, 2022 at 7:38 PM

The default behavior now is to raise an exception, however it’s worth noting if you attempt to install a package that is found in artifacts, the install command will still complete successfully. Also, installing with an exact version will skip the ForgeBox check anyway. “local” installation endpoints such as file or folder will still work.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created April 6, 2022 at 7:36 PM
Updated April 6, 2022 at 7:38 PM
Resolved April 6, 2022 at 7:37 PM

Flag notifications