DEV Community

Ioneyrezende
Ioneyrezende

Posted on

Mycodo inventory should start with its administrator bootstrap and role boundaries

Mycodo inventory should start with its administrator bootstrap and role boundaries

Mycodo is an environmental monitoring and control system for single-board computers. It can manage sensors, outputs, controllers, dashboards, and automated environmental logic. The project's manual says the web login system requires at least one Admin user; if no Admin exists, the server presents an Admin creation form. That first-user path is a deployment security event, not a routine onboarding detail.

A count-only ZoomEye query at 19:45 UTC on 25 November 2026 returned 0 matches for app="Mycodo" and 764 for title="Mycodo". The query used sub_type=all, page 1, and page size 1. The count is a search index observation. It does not prove that all 764 assets are Mycodo servers, or that any of them are reachable without a login.

Roles encode physical authority

Mycodo's default roles separate Admin, Editor, Monitor, and Guest. The manual says Editors can edit controllers and settings; Monitors can view settings, cameras, stats, and logs; Guests have a smaller view. Admin accounts can edit users. The line between viewing a temperature graph and changing a controller is a line between observation and physical action.

An asset owner should inventory Mycodo with that distinction in mind. Which instances control heaters, pumps, valves, dosing systems, or fans? Which accounts can edit the controller? Which dashboards are shared with people who need only read access? A title-level external observation is not enough to answer these questions. The team needs to correlate the host with configuration management, network segmentation, and the physical process it supports.

Find the control plane, then the bootstrap state

Use the title match to identify candidate hosts and verify the product with an approved request that does not trigger a control action. Confirm whether the Admin-creation form is still reachable. If it is, the instance may never have completed its security bootstrap or may have been reset. Disable public access before entering new credentials. Check whether a password reset or recovery workflow can be reached from an untrusted network.

Review user accounts and role assignments directly in the application. Remove test accounts and shared administrator credentials. Give monitoring users a role that cannot edit controllers or settings. If the product supports API access, inventory the tokens or sessions that call it and match each one to an automation workflow. A dashboard token that can change outputs is an administrative credential even if the UI labels it as read-only.

Protect the physical process

Place the Mycodo interface and any API listener on a management network with explicit access control. Do not assume that a private IP address is sufficient because guest Wi-Fi and IoT devices may share the same address space. Separate read-only dashboards from control traffic where the deployment allows it. Review the reverse proxy, firewall, and container port mappings together; a protected web page can coexist with an unprotected API port.

Back up the configuration and dashboard definitions, but protect the backup as sensitive data. It may contain sensor names, controller logic, API endpoints, and account details. Test whether a restored instance recreates the first-user experience and whether the restore process changes authentication settings. An environment that was secure before a restore can become open if the restore omits the account database.

Evidence for monitoring

Look for new Admin accounts, role changes, output toggles, controller edits, and configuration exports. Correlate them with source IPs and proxy logs. A failed login burst is relevant, but repeated successful logins from a new address can be more important when an automation controller is involved. Monitor for changes outside the normal operating schedule and pair each alert with the process owner who can confirm whether the action was expected.

Operational next step

Start with the confirmed Mycodo hosts the team owns. Check the Admin bootstrap state, role assignments, API reachability, and access to controller-edit functions. Then correlate the result with the physical process and its maintenance schedule. The useful measurement is the number of instances whose control authority is understood and tested, not the raw count of title matches.

References

Top comments (0)