Fix Control Plane login under /ui; store founding token in OpenBao
Rewrite templates that lost href/action during root_path rewrite; use native form controls for reliable login. Deploy image 0.1.2. Founding admin token canonical location: platform/operators/founding-admin/revenue.
This commit is contained in:
parent
4eab03346b
commit
856dc354d8
13 changed files with 199 additions and 186 deletions
|
|
@ -13,26 +13,26 @@
|
|||
{% endif %}
|
||||
|
||||
<h3>Issue a new credential</h3>
|
||||
<form class="wn-form" method="post" >
|
||||
<wn-field-row label="Credential label (human name)">
|
||||
<wn-input name="credential_label" required></wn-input>
|
||||
</wn-field-row>
|
||||
<wn-field-row label="Rights">
|
||||
<wn-select name="rights">
|
||||
<form class="wn-form" method="post" action="{{ root_path }}/admin/credentials">
|
||||
<label>Credential label (human name)
|
||||
<input name="credential_label" required>
|
||||
</label>
|
||||
<label>Rights
|
||||
<select name="rights">
|
||||
<option value="viewer">viewer</option>
|
||||
<option value="contributor">contributor</option>
|
||||
<option value="operator">operator</option>
|
||||
<option value="admin">admin</option>
|
||||
</wn-select>
|
||||
</wn-field-row>
|
||||
<wn-button type="submit" variant="primary">Issue credential</wn-button>
|
||||
</select>
|
||||
</label>
|
||||
<button type="submit">Issue credential</button>
|
||||
</form>
|
||||
|
||||
<h3>Revoke a credential</h3>
|
||||
<form class="wn-form" method="post" >
|
||||
<wn-field-row label="Token to revoke">
|
||||
<wn-input name="token" required></wn-input>
|
||||
</wn-field-row>
|
||||
<wn-button type="submit" variant="secondary">Revoke</wn-button>
|
||||
<form class="wn-form" method="post" action="{{ root_path }}/admin/credentials/revoke">
|
||||
<label>Token to revoke
|
||||
<input name="token" required>
|
||||
</label>
|
||||
<button type="submit" class="secondary">Revoke</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue