carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1{{define "store_approvals"}}{{template "top" .}}
2<h1>Object storage applications</h1>
3<p><a href="/fleet">Fleet status</a></p>
4{{with .StoreQueue}}
5{{if .CountKnown}}<p>Provisioned stores: {{.Buckets}} (daily sweep: {{.SweepDate}}).</p>
6{{else}}<p>Bucket count unavailable. A complete storage sweep is needed.</p>{{end}}
7<p>Each provisioned store names a bucket. This daily count includes adopted or shared buckets, excludes incomplete provisions, and can lag changes. AWS bucket quotas still apply; CARLOS does not cap stores per account.</p>
8<p>AWS now defaults to 10,000 general-purpose buckets per cloud account; the earlier default was 100. This deployment's quota may differ.</p>
9<p>{{len .Applications}} pending applications. Oldest first.</p>
10{{range .Applications}}
11<section>
12<h2>Account {{.Account}}</h2>
13<p>Applied by {{.Applied.By}} on {{fmtTime .Applied.At}}</p>
14{{if .Applied.Note}}<p>{{.Applied.Note}}</p>{{end}}
15<form method="post" action="/fleet/store/{{.Account}}/approve">
16<input type="hidden" name="csrf" value="{{$.CSRF}}">
17<button type="submit">Approve</button>
18</form>
19<form method="post" action="/fleet/store/{{.Account}}/decline">
20<input type="hidden" name="csrf" value="{{$.CSRF}}">
21<label>Reason <input type="text" name="reason" required></label>
22<button type="submit">Decline</button>
23</form>
24</section>
25{{else}}<p>No pending storage applications.</p>{{end}}
26{{end}}
27{{template "bottom" .}}{{end}}
28