Skip to content

User would like to use openBalena in an air-gapped (no internet) environment #129

@pdcastro

Description

@pdcastro

As originally reported in:

When users run the balena CLI command balena fleet create, regardless of whether or not they specify the device type with the --type flag, I understand that the CLI calls the balena SDK's models.application.create() method that retrieves the device manifest from S3 as coded in the following lines:

			const deviceTypeIdPromise = deviceModel()
				.getManifestBySlug(deviceType)
			const deviceTypes = await configModel().getDeviceTypes();
			const { body: deviceTypes } = await request.send({
				method: 'GET',
				url: '/device-types/v1',
				baseUrl: apiUrl,
			});

In turn, the SDK queries the /device-types/v1 endpoint from openbalena-api:

Where the S3 bucket URL / hostname comes from environment variable IMAGE_STORAGE_BUCKET which, as I understand, open-balena hardcodes as s3.amazonaws.com:

      IMAGE_STORAGE_ENDPOINT: s3.amazonaws.com

Hence accessing the internet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions