question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bosh login - copy button is broke and getting authentication failure with UAA

See original GitHub issue

What version of UAA are you running?

Version: 74.5.4

How are you deploying the UAA?

  • concourse pipeline

What did you do?

When using bosh login and getting redirected to the cloud foundry site to get the one time passcode, we get the following when we click the copy button: copy button.pdf

15:25 $ bosh login
Using environment '<REDACTED>'

Email ():
Password ():
Temporary Authentication Code ( Get one at https://<REDACTED>:8443/passcode ) ():

Failed to authenticate with UAA

Email ():
Asking for text:
  EOF

Exit code 1

After looking at UAA logs, restarting UAA processes via monit, my teammate selected the 1 time passcode and copied it / pasted it into the terminal and things work fine. The copy button is broke

We tried:

  • Chrome (regular & incognito)
  • Safari
  • Firefox

I also checked with our InfoSec team to see if they deployed any kind of new network policies, they did not.

What did you expect to see? What goal are you trying to achieve with the UAA?

I expected the copy button to copy, and paste into the terminal when I paste. The copy button does not copy at all.

What did you see instead?

Failed to authenticate with UAA

Email ():
Asking for text:
  EOF

Exit code 1

Here is some info from the browser dev console:

Refused to execute inline event handler because it violates the following Content Security Policy directive: “script-src ‘self’”. Either the ‘unsafe-inline’ keyword, a hash (‘sha256-…’), or a nonce (‘nonce-…’) is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the ‘unsafe-hashes’ keyword is present.

Workaround

We do have a workaround in place, however it would be nice if the copy button working again.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
strehlecommented, Sep 21, 2022

Ok, I played with local UAA and therefore created now https://github.com/cloudfoundry/uaa/pull/2034 which should fix it

1reaction
peterhaochen47commented, Oct 21, 2022

@adampeklay In the issue you mentioned that the bug existed in Version 74.5.4, which I don’t think has the copy button (or the Content-Security-Policy header that would break the button). Did you mean version for 75 or above?

Read more comments on GitHub >

github_iconTop Results From Across the Web

UAA authentication does not work properly if env var ... - GitHub
I believe BOSH_USER/PASSWORD env vars are not meant to be used with login command but rather you can just set them before running...
Read more >
Managing Permissions with UAA Scopes - Cloud Foundry BOSH
This error occurs if the user doesn't have the right scopes for the requested command. Previous Configuring Director · Next Using BOSH Teams....
Read more >
Troubleshooting for BOSH Operators | Pivotal Tanzu Docs
Common Causes of Errors · CredHub is down / wrong CredHub URL / cannot access URL · Wrong credentials to access CredHub ·...
Read more >
Remote Security Control
Remote Security Control works with some Bosch control panels, and all optional peripheral devices for those compatible control panels. Review this.
Read more >
Untitled
Cannondale quick 2 carbon, Broken stowage wikipedia, The ladykillers parents ... Marathon plus tyres, Boba's bounty clone recipe, Gaz-31105 volga price, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found