Enabling secret mode

2 minute readSecurity
You must be an administrator to enable secret mode.

Secret mode allows you to prevent anyone that has access to your app’s unique key from creating unwanted flags or custom properties via code.

Requesting secret mode enablement

You must first submit your request to enable secret mode. Once enabled, <the secret> must then be defined in the application’s Rox SDK setup code.

To submit your request:

  1. Send your request to CloudBees Support at support@cloudbees.com.

  2. Alternatively, you can submit your request from within CloudBees Feature Management as follows:

    1. Select Need our help? from the bottom left corner of any screen.

    2. Enter your Email address.

    3. In How can we help you?, enter your request to enable devModeSecret.

    4. Select Send.

    Once the secret is enabled, it is visible as devModeSecret in the Installation instructions.

Verifying secret mode enablement

After submitting your request, you can verify that secret mode has been enabled.

To verify secret mode has been enabled:

  1. From within CloudBees Feature Management, select Installation instructions from the left of your screen.

  2. In Add the following lines of code to your application, verify <the secret> is added to devModeSecret as defined in Setting up secret mode.

Secret mode is now ready to be set up.

Setting up secret mode

The following shows the devModeSecret code that is added to the Installation instructions.

Javascript
iOS/Swift
Java
C#
Python
Go
Ruby
PHP
C
C++
 // For development builds only, add this line on app startup
const options = {
    devModeSecret: "<the secret>"
}
setenv("ROX_DEV_MODE_SECRET", "<the secret>", 1)
System.setProperty("ROX_DEV_MODE_SECRET", "<the secret>");
var options = new RoxOptions(new RoxOptions.RoxOptionsBuilder
         {
          DevModeKey = "<the secret>"
        });
options = RoxOptions(
    dev_mode_key='<the secret>'
);
 options := server.NewRoxOptions(server.RoxOptionsBuilder {
                DevModeKey: "<the secret>"
        })
options = Rox::Server::RoxOptions.new(dev_mode_key: '<the secret>')
$roxOptionsBuilder = (new RoxOptionsBuilder())->setDevModeKey("<the secret>")
RoxOptions *options = rox_options_create();
rox_options_set_dev_mode_key(options, DEFAULT_DEV_MODE_KEY);
rox_setup(DEFAULT_API_KEY, options);
Rox::Options *options = Rox::OptionsBuilder()
  .SetDevModeKey(DEFAULT_DEV_MODE_KEY)
  .Build();

Rox::Setup(DEFAULT_API_KEY, options);RoxOptions *options = rox_options_create();
 14     rox_options_set_dev_mode_key(options, DEFAULT_DEV_MODE_KEY);
 15     rox_setup(DEFAULT_API_KEY, options);