-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] Remove index false from artifact saved objects mappings #155204
Changes from 2 commits
15daa0f
891b39f
19d06c7
3af7d62
13edaf3
1068f4d
0ea2a73
efdd7b1
e95a49f
8230f87
1aad7c0
85395d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,36 +14,31 @@ export const exceptionsArtifactSavedObjectType = ArtifactConstants.SAVED_OBJECT_ | |
export const manifestSavedObjectType = ManifestConstants.SAVED_OBJECT_TYPE; | ||
|
||
export const exceptionsArtifactSavedObjectMappings: SavedObjectsType['mappings'] = { | ||
dynamic: false, | ||
properties: { | ||
identifier: { | ||
type: 'keyword', | ||
}, | ||
compressionAlgorithm: { | ||
type: 'keyword', | ||
index: false, | ||
}, | ||
encryptionAlgorithm: { | ||
type: 'keyword', | ||
index: false, | ||
}, | ||
encodedSha256: { | ||
type: 'keyword', | ||
}, | ||
encodedSize: { | ||
type: 'long', | ||
index: false, | ||
}, | ||
decodedSha256: { | ||
type: 'keyword', | ||
index: false, | ||
}, | ||
decodedSize: { | ||
type: 'long', | ||
index: false, | ||
}, | ||
created: { | ||
type: 'date', | ||
index: false, | ||
}, | ||
body: { | ||
type: 'binary', | ||
|
@@ -52,28 +47,25 @@ export const exceptionsArtifactSavedObjectMappings: SavedObjectsType['mappings'] | |
}; | ||
|
||
export const manifestSavedObjectMappings: SavedObjectsType['mappings'] = { | ||
dynamic: false, | ||
properties: { | ||
created: { | ||
type: 'date', | ||
index: false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't see an explanation in the comments/PR so I'll ask here: why are we adding mappings for these fields, when they previously weren't needed? These mappings can be added at any point in the future, but this is our last opportunity to remove anything unnecessarily indexed (or specified to not be indexed). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rylnd apologies - I was doing some smoke testing locally with the fields removed first. All looks OK, so I pushed up the changes. |
||
}, | ||
schemaVersion: { | ||
type: 'keyword', | ||
}, | ||
semanticVersion: { | ||
type: 'keyword', | ||
index: false, | ||
}, | ||
artifacts: { | ||
type: 'nested', | ||
properties: { | ||
policyId: { | ||
type: 'keyword', | ||
index: false, | ||
}, | ||
artifactId: { | ||
type: 'keyword', | ||
index: false, | ||
}, | ||
}, | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this SO type (
endpoint:user-artifact
) is actually one we no longer use and have an issue open to remove it (team issue 6214), so whatever changes you want to do here, you canThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paul-tavares I went ahead and removed the SO here: 19d06c7