Skip to content

Conversation

@alfrunes
Copy link
Contributor

@alfrunes alfrunes commented Aug 28, 2023

This PR introduces a number of new features:

  • Operate in standalone mode (API.Type = "http")
    • Behavior is defined in the API.* section of the config
    • A bootstrap command is added to generate the identity
    • The http (and dbus-) client uses exponential random backoff for retries.
  • New entrypoint that integrates with IoT Edge environment
    • The new entrypoint bootstraps the device and submits the identity to IoT Edge's module twin for automatic Authorization with Alvaldi.

The core Daemon app has been refactored to eliminate redundant event loops and centralize the use of channels.

TODO(follow-up): Run and publish inventory scripts
TODO(follow-up): Write unit tests for the new utility and api packages.
TODO(follow-up): Use buildtags for opt-in dynamic dependencies (libdbus, libglib)

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
…ameters

Changelog: Title

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
The naming is more appropriate since we will also include inventory
script and possibly http/tls options in the configuration scope.

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
…nmanager

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
This blocks it from being picked up from the env variable

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Changelog: Title
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
TODO: Should the client reconnect on JwtTokenStateChange dbus signal?

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
new file:   support/nt-connect.json
renamed:    examples/{mender -> nt}-connect.conf
renamed:    support/{mender -> nt}-connect.service

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Makes it easier to use mocks while testing.

Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
@alfrunes alfrunes requested a review from kjaskiewiczz August 28, 2023 15:52
…d Chroot

The environment variables CONNECT_TENANT_TOKEN, CONNECT_SERVER_URL and
CONNECT_CHROOT overrides the configuration values for API.TenantToken,
API.ServerURL and Chroot respectively if set.

Changelog: Commit
Ticket: None
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Signed-off-by: Alf-Rune Siqveland <alf.rune@northern.tech>
Copy link
Contributor

@kjaskiewiczz kjaskiewiczz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but at the same time I don't feel like I'm the right person to review it;

@alfrunes alfrunes merged commit fd202f8 into NorthernTechHQ:main Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants