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

feat(Splunk Node): Overhaul #9813

Merged
merged 38 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9aafc41
authentication, credentials test update
michael-radency Jun 19, 2024
8e0ee1f
setup wip
michael-radency Jun 19, 2024
5fd3cac
setup, descriptions update
michael-radency Jun 19, 2024
42e6188
router split
michael-radency Jun 19, 2024
b8e3145
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 19, 2024
81a4a1f
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 20, 2024
455e424
resources update
michael-radency Jun 20, 2024
700e28a
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 20, 2024
fa74cc1
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 20, 2024
3d79957
icon fix
michael-radency Jun 20, 2024
22a7b10
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 21, 2024
9ce2e0d
saved searches rlc
michael-radency Jun 21, 2024
c0342e9
search jobs rlc
michael-radency Jun 21, 2024
b1bfd2c
user rlc
michael-radency Jun 21, 2024
130e472
create report operation
michael-radency Jun 21, 2024
65acea4
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 26, 2024
0bcc399
request json output for get/getAll
michael-radency Jun 26, 2024
60ca2bb
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 26, 2024
fc8167f
sort parameter update for search getAll
michael-radency Jun 26, 2024
3971264
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 26, 2024
60c00c5
get metrics operation
michael-radency Jun 26, 2024
7f97da3
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 26, 2024
0583b82
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jun 27, 2024
18f3951
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jul 2, 2024
be12a88
report>create return data fix
michael-radency Jul 2, 2024
a0aab68
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jul 2, 2024
a66d521
utils test
michael-radency Jul 3, 2024
56a2ea8
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jul 3, 2024
2bdbe16
alert, report resources tests, fixes, cleanup
michael-radency Jul 3, 2024
0763a0a
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jul 3, 2024
bf38a3e
search resource tests
michael-radency Jul 3, 2024
85c2d01
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jul 3, 2024
bf9ae33
user resource tests
michael-radency Jul 3, 2024
fc0da06
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jul 3, 2024
7c02fb6
user resource update test
michael-radency Jul 3, 2024
b3db2ff
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jul 4, 2024
6ce3543
avoid magic strings, remove non null assertion
michael-radency Jul 4, 2024
f0a743e
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1395…
michael-radency Jul 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion packages/nodes-base/credentials/SplunkApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
import type {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';

export class SplunkApi implements ICredentialType {
name = 'splunkApi';
Expand Down Expand Up @@ -31,4 +36,21 @@ export class SplunkApi implements ICredentialType {
default: false,
},
];

authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials?.authToken}}',
},
},
};

test: ICredentialTestRequest = {
request: {
url: '={{$credentials.baseUrl}}/services/alerts/fired_alerts',
method: 'GET',
skipSslCertificateValidation: '={{$credentials?.allowUnauthorizedCerts}}',
},
};
}
Loading
Loading