Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -752,17 +752,31 @@ object DisplayNode extends Loggable {
s"$$('#${publicKeyId}').toggle(300); $$(this).toggleClass('opened'); return false;"
}> <b>{tokenKind}</b> {checked} </button>
<div>
{
<div id={publicKeyId} style="display:none;">
<pre class="display-keys"><div>{agent.securityToken.key}</div></pre>{
Script(OnLoad(JsRaw(s"""initBsTooltips();"""))) // JsRaw ok, const
}
{
if (CurrentUser.checkRights(AuthorizationType.Node.Write) && nodeFact.rudderSettings.keyStatus == CertifiedKey) {
SHtml.ajaxButton(
"Reset status to be able to accept a different key",
() => resetKeyStatus(nodeFact)
) % ("class", "btn btn-default btn-sm")
<div>
<p>
You may wish to disable the key above so that it is no longer trusted by this node.
<br/>
In that case, you can <b>reset</b> this key: the key status for this node will be set to "undefined", and the next inventory will be trusted automatically.
<br/>
You may define a different key for this node after the reset.
Copy link
Member

@amousset amousset Nov 26, 2025

Choose a reason for hiding this comment

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

Key or certificate? This lacks precision.

<br/>
</p>
{
SHtml.ajaxButton(
"Reset key",
() => resetKeyStatus(nodeFact)
) % ("class", "btn btn-default btn-sm")
}
</div>
} else NodeSeq.Empty
}
<pre id={publicKeyId} class="display-keys" style="display:none;"><div>{agent.securityToken.key}</div></pre>{
Script(OnLoad(JsRaw(s"""initBsTooltips();"""))) // JsRaw ok, const
}
</div>
</div>
</div>
}
Expand Down