Skip to main content

Organization Service Migration

What was the Organization Service?

The Organization Service was an optional component deployed in customer environments to provide dynamic organizational hierarchies.

To simplify Moderne’s operational complexity, it was decided to sunset the Organization Service and replace it with a file-based mechanism managed directly by the Moderne Agent. This change streamlines customer deployments by reducing the number of moving parts and eliminates the need for an additional network hop whenever organizational data is accessed.

Migration instructions

To migrate from the old organization service to the new file-based configuration, you'll need to:

  1. Remove any configuration related to the Organization Service from your Agent
  2. Configure the Agent to use repos.csv and devcenter.json
  3. Remove the organization service from your system

Make sure that the following configurations are not included in your Agent run command:

Variables:

Argument Name
MODERNE_AGENT_ORGANIZATION_SERVICE_URL
MODERNE_AGENT_ORGANIZATION_SERVICE_SKIPSSL
MODERNE_AGENT_ORGANIZATION_FILE_REPOSCSVPATH
MODERNE_AGENT_ORGANIZATION_FILE_COMMITOPTIONSPATH
MODERNE_AGENT_ORGANIZATION_FILE_IDMAPPINGPATH
MODERNE_AGENT_ORGANIZATION_FILE_DEVCENTERPATH

2. Configure the Agent to use repos.csv and devcenter.json

  1. Copy the devcenter.json file from your Organization Service and put it somewhere where your Agent can access.
  2. Follow the organizational hierarchy configuration instructions to generate a repos.csv. Alternatively, if your Organization Service already uses a repos.csv, you may copy that file directly and put it somewhere where your Agent can access.
  3. Update the relevant variables in your Agent deployment so that your Agent knows where these files are.

Environment Variables:

Environment VariableDefaultDescription
MODERNE_AGENT_ORGANIZATION_REPOSCSVThe path of your repos.csv file that provides organization information.
MODERNE_AGENT_ORGANIZATION_DEVCENTERThe path of your devcenter.json file that provides the DevCenter configurations.
MODERNE_AGENT_ORGANIZATION_SERVICE_UPDATEINTERVALSECONDS600Specifies how often to request your organization information.

Example:

docker run \
# ... Existing variables
-e MODERNE_AGENT_ORGANIZATION_REPOSCSV=/Users/MY_USER/Documents/repos.csv \
-e MODERNE_AGENT_ORGANIZATION_DEVCENTER=/Users/MY_USER/Documents/devcenter.json \
-e MODERNE_AGENT_ORGANIZATION_SERVICE_UPDATEINTERVALSECONDS=600 \
# ... Additional variables
tip

The Agent is able to fetch your repos.csv from an unauthenticated HTTP/HTTPS endpoint. To specify an endpoint instead of a local file, use a URI instead of a local file.

3. Remove the organization service from your system

This step will depend on your specific deployment topology.