github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/libkb/secret_store_osx.go (about)

     1  // Copyright 2015 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  //go:build darwin && !ios
     5  // +build darwin,!ios
     6  
     7  package libkb
     8  
     9  import keychain "github.com/keybase/go-keychain"
    10  
    11  func (k KeychainSecretStore) synchronizable() keychain.Synchronizable {
    12  	return keychain.SynchronizableNo
    13  }
    14  
    15  func (k KeychainSecretStore) accessible() keychain.Accessible {
    16  	// TODO: Since we access keychain item in launchd service (background), it's
    17  	// appropriate to use after first unlock, though we should consider using
    18  	// "when unlocked" to be more secure: keychain.AccessibleWhenUnlockedThisDeviceOnly
    19  	return keychain.AccessibleAfterFirstUnlockThisDeviceOnly
    20  }
    21  
    22  func (k KeychainSecretStore) accessGroup(m MetaContext) string {
    23  	// Don't use access group on OS X
    24  	return ""
    25  }