You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all. I am excited to try out the nns extensions. However I've run into a problem: Internet Identity's controller seems to be wrong.
Details: When deploying the NNS canisters with the nns extension, all canisters are owned by the root canister except for Internet Identity, which is controlled by the anonymous principal. (And the root itself which is owned by governance). This matches production and previous releases of dfx nns install, apart from Internet Identity's controller. It looks as if II's controller is an error that ocurred in the migration to extensions. Correction: Previous releases of dfx had internet-identity and nns-dapp owned by the current user. So, it is still a breaking change but not what I thought at first! :-)
To be fair, the documentation doesn't declare what the controllers are expected to be so this may be intentional but if it is, it would be nice to declare it and explain in the documents how to switch the controller back to match the previous behaviour.
Setup with:
$ dfx --version
dfx 0.15.1
$ dfx start --clean
and
$ dfx nns install
From the printout, I collected the canister names and IDs and so we can get the controllers of each.
This should fix the issue for anyone expecting the former behaviour:
# As of dfx 0.15, the current user is no longer a controller of the internet_identity and nns-dapp canisters.
# The current user needs to be added explicitly.
CURRENT_PRINCIPAL="$(dfx identity get-principal)"
# ... `dfx nns install` does not populate canister IDs in `dfx.json` so we need to provide the canister IDs ourselves.
II_CANISTER_ID=qhbym-qaaaa-aaaaa-aaafq-cai
ND_CANISTER_ID=qsgjb-riaaa-aaaaa-aaaga-cai
for canister in "$II_CANISTER_ID" "$ND_CANISTER_ID" ; do
dfx canister update-settings "$canister" --add-controller "$CURRENT_PRINCIPAL" --identity anonymous
done
I think the new behaviour is actually cool, it just needs a bit of documentation to help people upgrade.
Hello all. I am excited to try out the nns extensions. However I've run into a problem: Internet Identity's controller seems to be wrong.
Details: When deploying the NNS canisters with the nns extension, all canisters are owned by the root canister except for Internet Identity, which is controlled by the anonymous principal. (And the root itself which is owned by governance). This matches production
and previous releases of, apart from Internet Identity's controller.dfx nns install
It looks as if II's controller is an error that ocurred in the migration to extensions.Correction: Previous releases ofdfx
hadinternet-identity
andnns-dapp
owned by the current user. So, it is still a breaking change but not what I thought at first! :-)To be fair, the documentation doesn't declare what the controllers are expected to be so this may be intentional but if it is, it would be nice to declare it and explain in the documents how to switch the controller back to match the previous behaviour.
Setup with:
and
From the printout, I collected the canister names and IDs and so we can get the controllers of each.
With
dfx 0.14.4
the same printout is:The text was updated successfully, but these errors were encountered: