Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dupl] warning: 'SecTrustedApplicationCreateFromPath' is deprecated on macOS 10.15 Catalina #66

Open
jonioni opened this issue Mar 12, 2020 · 7 comments

Comments

@jonioni
Copy link

jonioni commented Mar 12, 2020

Related: #56, #59, #60

Problem

Encountering the following errors on macOS 10.15 Catalina with the latest keyring release:

cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here

This is reported in keybase/go-keychain #58 and seems to have been fixed in keybase/go-keychain #60.

Proposal

Upgrade the corresponding dependency to use a newer version of keybase/go-keychain.

@jonioni jonioni changed the title [dupl] warning: 'SecTrustedApplicationCreateFromPath' is deprecated [dupl] warning: 'SecTrustedApplicationCreateFromPath' is deprecated on macOS 10.15 Catalina Mar 12, 2020
@mtibben
Copy link
Member

mtibben commented Apr 23, 2020

Temporary fix in db030e0

@pjcdawkins
Copy link

keyring 1.1.5 doesn't build on MacOS 10.15.4 with cgo enabled. Manually updating go-keychain results in the error in the OP.

@flowchartsman
Copy link

How is this one looking? Is there any reason it's still pinned to your fork of go-keychain?

@mtibben
Copy link
Member

mtibben commented Oct 19, 2020

@flowchartsman Yes, there is a reason. The removal of SecTrustedApplicationCreateFromPath changes the security behaviour of aws-vault. It removes the ability for aws-vault to remove itself from the credential ACL, which is required to get keychain prompts when a credential is accessed. See #59 (comment) for further discussion

@mtibben
Copy link
Member

mtibben commented Oct 19, 2020

I believe using SecACLUpdateAuthorizations is the new way to update ACLs

@flowchartsman
Copy link

Great, thanks for the explanation! Please let me know if there's any legwork that needs done.

@mtibben
Copy link
Member

mtibben commented Oct 19, 2020

The work required is to remove use of the fork, but find a way to keep the ACL-clearing behaviour

pda added a commit to buildkite/cli that referenced this issue Dec 3, 2020
Otherwise the build fails on macOS 11 Big Sur with:

\# github.com/keybase/go-keychain
cgo-gcc-prolog:203:11: warning: 'SecTrustedApplicationCreateFromPath' is deprecated: first deprecated in macOS 10.15 - No longer supported [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h:59:10: note: 'SecTrustedApplicationCreateFromPath' has been explicitly marked deprecated here

See also:
99designs/keyring#56 (comment)
99designs/keyring#66
keybase/go-keychain#55
99designs/aws-vault#427
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants