File size: 3,027 Bytes
430354e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3484334
430354e
 
 
 
 
 
 
 
 
 
 
 
e974c35
 
 
 
 
 
 
 
 
 
430354e
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<html>
  <head>
    <title>Authentication</title>
  </head>

  <body>
    <div
      x-data="{
        get settings() { return $store.settings.settings },
        get additional() { return $store.settings.additional || {} }
      }"
    >
      <template x-if="settings">
        <div>
          <div class="section-title">Authentication</div>
          <div class="section-description">
            Protect the web UI with credentials you control.
          </div>

          <div class="field">
            <div class="field-label">
              <div class="field-title">UI Login</div>
              <div class="field-description">The username requested when the web UI asks you to sign in.</div>
            </div>
            <div class="field-control">
              <input type="text" x-model="settings.auth_login" />
            </div>
          </div>

          <div class="field">
            <div class="field-label">
              <div class="field-title">UI Password</div>
              <div class="field-description">The password for browser access to this Agent Zero instance.</div>
            </div>
            <div class="field-control">
              <input type="text" class="masked-text-input" autocomplete="off" x-model="settings.auth_password" />
            </div>
          </div>

          <div class="settings-advanced-section" x-data="{ advOpen: false }">
            <button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
              <x-icon class="settings-advanced-toggle-icon"
                    :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
              <span>Advanced Settings</span>
            </button>

            <div class="settings-advanced-body" x-show="advOpen" x-transition.opacity>
              <template x-if="additional.can_manage_root_password">
                <div class="field">
                  <div class="field-label">
                    <div class="field-title">Container root password</div>
                    <div class="field-description">
                      Change the Linux root password used for SSH access to the Docker container.
                    </div>
                  </div>
                  <div class="field-control">
                    <input type="text" class="masked-text-input" autocomplete="off" x-model="settings.root_password" />
                  </div>
                </div>
              </template>
              <template x-if="additional.can_manage_root_password === false">
                <div class="field">
                  <div class="field-label">
                    <div class="field-title">Container root password</div>
                    <div class="field-description">
                      Root password management is unavailable in this runtime.
                    </div>
                  </div>
                </div>
              </template>
            </div>
          </div>
        </div>
      </template>
    </div>
  </body>
</html>