check / check (push) Failing after 5s
Neither unlocker works without macOS code signing and entitlements, which
secret does not have, so both were research and leave the build.
`secret unlocker add` takes only passphrase and pgp on every platform;
keychain and secure-enclave fail as unknown types and are gone from
--help and shell completion. internal/macse, their files in
internal/secret with their tests, and their branches in internal/vault
and internal/cli are deleted; github.com/keybase/go-keychain leaves
go.mod and go.sum. README and Dockerfile comments no longer mention
them. The research stays at ef0ae90, tagged v1.0.0-rc1.
Judgement call: derivation_index_test.go goes with getLongTermPrivateKey,
its only subject, which only these two unlockers used.
Unverified: not built or run on a Mac; only the GOOS=darwin vet and lint ran.
Model: opus-5-5
35 lines
1.0 KiB
Go
35 lines
1.0 KiB
Go
package secret
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// VaultMetadata contains information about a vault
|
|
type VaultMetadata struct {
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
Description string `json:"description,omitempty"`
|
|
DerivationIndex uint32 `json:"derivationIndex"`
|
|
// Double SHA256 hash of the actual long-term public key
|
|
PublicKeyHash string `json:"publicKeyHash,omitempty"`
|
|
// Double SHA256 hash of index-0 key (for grouping vaults from same mnemonic)
|
|
MnemonicFamilyHash string `json:"mnemonicFamilyHash,omitempty"`
|
|
}
|
|
|
|
// UnlockerMetadata contains information about an unlocker
|
|
type UnlockerMetadata struct {
|
|
Type string `json:"type"` // passphrase or pgp
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
Flags []string `json:"flags,omitempty"`
|
|
}
|
|
|
|
// Metadata contains information about a secret
|
|
type Metadata struct {
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// Configuration represents the global configuration
|
|
type Configuration struct {
|
|
DefaultVault string `json:"defaultVault,omitempty"`
|
|
}
|