|
1 | 1 | // SPDX-License-Identifier: Apache-2.0 |
2 | 2 |
|
3 | | -// Credential is the account record of one platform-generated credential of a |
4 | | -// managed application: who can know the live password and who changed it. It |
5 | | -// is a view over the account Secret the Cozystack API keeps per account, and |
6 | | -// it never carries the password or the stored verifier. The password is |
7 | | -// obtained once, through the mint subresource, and replaced through it. See |
8 | | -// design-proposals/user-secrets-api in cozystack/community. |
9 | | - |
10 | 3 | package v1alpha1 |
11 | 4 |
|
12 | 5 | import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
13 | 6 |
|
14 | 7 | // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object |
15 | 8 |
|
16 | | -// Credential is one account of a converted application. |
| 9 | +// Credential is the record of one account of a converted application: who can |
| 10 | +// know the live password and who changed it, never the password or its stored |
| 11 | +// form. It is a view over the account Secret the API keeps. See |
| 12 | +// design-proposals/user-secrets-api in cozystack/community. |
17 | 13 | type Credential struct { |
18 | 14 | metav1.TypeMeta `json:",inline"` |
19 | 15 | metav1.ObjectMeta `json:"metadata,omitempty"` |
@@ -105,8 +101,7 @@ type CredentialList struct { |
105 | 101 | // CredentialRequest is the body and the answer of the mint and revoke |
106 | 102 | // subresources of a Credential, in the shape of a Kubernetes TokenRequest: a |
107 | 103 | // create on the subresource carries the request in spec and is answered with |
108 | | -// the result in status, and nothing is stored. The password in a mint's answer |
109 | | -// is the only place it ever exists outside the API's memory. |
| 104 | +// the result in status, and nothing is stored. |
110 | 105 | type CredentialRequest struct { |
111 | 106 | metav1.TypeMeta `json:",inline"` |
112 | 107 | metav1.ObjectMeta `json:"metadata,omitempty"` |
|
0 commit comments