cloudposse / bastion

🔒Secure Bastion implemented as Docker Container running Alpine Linux with Google Authenticator & DUO MFA support
https://cloudposse.com/accelerate
Apache License 2.0
640 stars 112 forks source link

Add libqrencode to dockerfile #87

Closed lucawen closed 1 month ago

lucawen commented 3 months ago

what

Add libqrencode package into dockerfile

why

Be able to see the QRCODE in the terminal, as the Google charts API from google-authenticator-libpam does not work anymore. (Check the issue)

references

jonmchan commented 3 months ago

@lucawen thanks for submitting this PR. Does this library automatically generate the QR code in terminal without any other changes or does any flags need to be passed to utilize this library?

lucawen commented 3 months ago

@lucawen thanks for submitting this PR. Does this library automatically generate the QR code in terminal without any other changes or does any flags need to be passed to utilize this library?

Initially, the google-authenticator-libpam was returning this error: Failed to use libqrencode to show QR code visually for scanning.. For this functionality to work, it needs the library libqrencode.so.4. This PR will just add this library so google-authenticator-libpam can be able to access it. It will already work out of the box.