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

Properly filter app user credentials by matching key-id #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mj-palanker
Copy link
Contributor

Updates decrypt-credential to hide non-decryptable credentials by default, and suggests the new --show-encrypted flag which shows them again if there are any.

Sanitized example response

cone decrypt-credential

Found 3 credential(s)
1 credential(s) successfully decrypted
2 credential(s) could not be decrypted
Use the --show-encrypted flag to see the encrypted credentials
========================================
App Display Name: Postgresql
App ID: 2prUoUzJWyMyrgRqvsK6lENwT5l
App User ID: 2pzcTmluIpBZA0CK7buLOYTArJU
Thumbprint: bad4ca89207e4ebf652d8c0d10f48b6f559cd526c024207f591ff5f09f4d74de
Decrypted Credential: [CENSORED]
========================================
cone decrypt-credential --show-encrypted

Found 3 credential(s)
1 credential(s) successfully decrypted
2 credential(s) could not be decrypted
========================================
App Display Name: Postgresql
App ID: 2prUoUzJWyMyrgRqvsK6lENwT5l
App User ID: 2pzcTmluIpBZA0CK7buLOYTArJU
Thumbprint: bad4ca89207e4ebf652d8c0d10f48b6f559cd526c024207f591ff5f09f4d74de
Decrypted Credential: [CENSORED]
========================================
========================================
App Display Name: Postgresql
App ID: 2prUoUzJWyMyrgRqvsK6lENwT5l
App User ID: 2pzcTmluIpBZA0CK7buLOYTArJU
Failed to decode credential: failed to decrypt credential: jwk-ed25519: age: failed to decrypt: no identity matched any of the recipients
========================================
========================================
App Display Name: Postgresql
App ID: 2prUoUzJWyMyrgRqvsK6lENwT5l
App User ID: 2pzcTmluIpBZA0CK7buLOYTArJU
Failed to decode credential: failed to decrypt credential: jwk-ed25519: age: failed to decrypt: no identity matched any of the recipients
========================================

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

Successfully merging this pull request may close these issues.

1 participant