This could be as simple as commenting on each key for which profile it is useful.
#Required by Profiles: All
#Required by profiles: Admin, Worker
but it could more "intelligent" and leveraged in other place, e.g. during startup sequence verifications are done that the configured keys are matching the specified profile. By configured key we mean the key has value (not null).
This should be extended to all config keys (services,load,security,…) not just the ones in config.properties
Please re-open if this is still an issue