Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Introduce 'rabbitmq-diagnostics erlang_cookie_sources' #446

Merged
merged 3 commits into from
Jul 4, 2020

Conversation

michaelklishin
Copy link
Member

@michaelklishin michaelklishin commented Jul 4, 2020

to help troubleshoot authentication issues.

I could not quickly locate an Erlang function that would return the expected path in OTP so
we reinvent what this BIF does in C to cover the Windows-specific special handling of the HOMEDRIVE and HOMEPATH env variables.

Example output:

Cookie File

Effective user: user
Effective home directory: /Users/user
Cookie file path: /Users/user/.erlang.cookie
Cookie file exists? true
Cookie file type: regular
Cookie file access: read
Cookie file size: 20

Cookie CLI Switch

--erlang-cookie value set? false
--erlang-cookie value length: 0

Env variable  (Deprecated)

RABBITMQ_ERLANG_COOKIE value set? false
RABBITMQ_ERLANG_COOKIE value length: 0

Inspired by an idea from @gerhard.

to help troubleshoot authentication issues.

Inspired by an idea from @gerhard.
@michaelklishin michaelklishin added this to the 3.8.6 milestone Jul 4, 2020
@michaelklishin michaelklishin merged commit f34d6de into master Jul 4, 2020
@michaelklishin michaelklishin deleted the mk-erlang-cookie-sources-command branch July 4, 2020 20:52
michaelklishin added a commit that referenced this pull request Jul 4, 2020
Introduce 'rabbitmq-diagnostics erlang_cookie_sources'

(cherry picked from commit f34d6de)
@michaelklishin
Copy link
Member Author

Backported to v3.8.x.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant