Skip to content

Fix ota password#34

Merged
TrevorSchirmer merged 1 commit into
betafrom
FixOTAPassword
Aug 27, 2024
Merged

Fix ota password#34
TrevorSchirmer merged 1 commit into
betafrom
FixOTAPassword

Conversation

@TrevorSchirmer
Copy link
Copy Markdown
Member

Version:

Adds:

Fixes:

Breaks:

Checks:

  • Documentation Updated
  • Build Number Incremented In AIR-1.yaml

@TrevorSchirmer TrevorSchirmer changed the base branch from main to beta August 27, 2024 00:15
@TrevorSchirmer TrevorSchirmer merged commit e50a61b into beta Aug 27, 2024
@TrevorSchirmer TrevorSchirmer deleted the FixOTAPassword branch August 27, 2024 00:15
TrevorSchirmer added a commit that referenced this pull request Sep 14, 2024
Tycorc added a commit to Tycorc/AIR-1 that referenced this pull request May 18, 2026
Promote the hardcoded `password: "apolloautomation"` literal to a
`${ota_password}` substitution in `Core.yaml`, defaulting to the same value
so existing consumers see no behavior change. Consumers who want a
per-device password can override via `substitutions:` in their device YAML
and stop sharing a fleet-wide credential.

Why
----
Every AIR-1 worldwide currently boots with the same OTA password (introduced
in ApolloAutomation#34, "Fix ota password", to make OTA upgrades work after the prior
no-password attempts in ApolloAutomation#20 / ApolloAutomation#27). Consumers who include this file via
`packages:` cannot override from their device YAML because ESPHome packages
extend list-valued keys (a second `ota: - platform: esphome` block produces
a duplicate-platform validation error) and `ota: !remove` cannot be paired
with a top-level redeclaration in the same YAML doc. Newer Apollo product
configs (MSR-2, MTR-1, PWR-1, TEMP-1, PLT-1, BTN-1, RLY-1, H-1, H-2, PUMP-1)
already avoid the literal — this brings AIR-1 in line.

Backwards compat
----------------
100% — devices that don't set `ota_password` get `apolloautomation` exactly
as today. CI / firmware builds unchanged.

Override example (in a consumer device YAML):

    substitutions:
      ota_password: !secret living_room_air_1_ota_password

    packages:
      ApolloAutomation.AIR-1: github://ApolloAutomation/AIR-1/Integrations/ESPHome/AIR-1.yaml
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.

1 participant