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

Servers-> Add button disabled #5

Open
gitusertf opened this issue Jan 18, 2024 · 6 comments
Open

Servers-> Add button disabled #5

gitusertf opened this issue Jan 18, 2024 · 6 comments

Comments

@gitusertf
Copy link

Installed Remote Config Manager 1.0 on Splunk Enterprise 9.1.2 (developer licensed). After populating the Splunk Hostname in the Add New Server form, the "Add" button remains disabled.
BAD_RCM_2024-01-18_10-42-05

@Bre77
Copy link
Owner

Bre77 commented Jan 18, 2024

That's because you haven't put in an auth token.

If you're trying to edit the local system there is a preconfigured local system.

@gitusertf
Copy link
Author

gitusertf commented Jan 23, 2024

Nope, still disabled. I'm using Splunk Enterprise 9.1.2 with a developer's license. Could it be a capabilities problem? Logged into Splunk as admin which has admin, power, user, sc_admin roles.
badRCM-servers-add_2024-01-23_08-53-16

@Bre77
Copy link
Owner

Bre77 commented Jan 23, 2024

The button gets disabled by client side JavaScript, so its nothing to do with your capabilities or licence.

The server field has to be at least 3 characters and the auth token has to be at least 100.

<Button appearance="primary" onClick={addServer} disabled={running || server.length < 3 || token.length < 100}>

If Splunk is generating you auth tokens less than 100 characters long, I'll have to go and edit that logic, but in my experience they have always been longer.

@gitusertf
Copy link
Author

It's the auth token length. Splunk is generating 64 character long tokens.

@Bre77
Copy link
Owner

Bre77 commented Jan 23, 2024

You are copying your auth tokens from the Tokens page after they are created, they are truncated to 64 characters. You need to copy the full auth token from the creation page. This is exactly why the 100 character minimum was implemented.

image

@gitusertf
Copy link
Author

Yes, you are correct. Thank you. It looks like the "actual" auth token generated by Splunk is 453 characters! Add button works with the actual troken (>100 chars). Thanks again.

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

2 participants