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

Adds cloud.account.id #11

Merged
merged 4 commits into from
Jun 4, 2018
Merged

Adds cloud.account.id #11

merged 4 commits into from
Jun 4, 2018

Conversation

robgil
Copy link
Contributor

@robgil robgil commented May 31, 2018

The cloud.account.id can be a common field. All cloud providers have a
high level account id, org id, or subscription id that can be used in
this field. Anything more specific such as GCP's project id should go in
an extended schema for the specific cloud provider. Its important to put
GCP's project id in to a separate extended schema, because it does not
overlap conceptually with other cloud providers' structure.

For example. In GCP, you'll have an organization id. Under that
organization id, you can have multiple projects. This diverges quite
substantially from the flat AWS structure which is just a bunch of
linked accounts. For AWS, there is no subtree like GCP has for projects
or folders.

Azure has a top level organization as well. Under that there are
subscriptions.

For security analytics use cases it will be difficult to normalize
across all cloud providers, but account id could be the most basic
start. Since high level orgs are pretty much consistent across all cloud
providers, this could be in the common schema.

I'm open to calling this organization.id also

The cloud.account.id can be a common field. All cloud providers have a
high level account id, org id, or subscription id that can be used in
this field. Anything more specific such as GCP's project id should go in
an extended schema for the specific cloud provider. Its important to put
GCP's project id in to a separate extended schema, because it does not
overlap conceptually with other cloud providers' structure.

For example. In GCP, you'll have an `organization id`. Under that
`organization id`, you can have multiple projects. This diverges quite
substantially from the flat AWS structure which is just a bunch of
linked accounts. For AWS, there is no subtree like GCP has for projects
or folders.

Azure has a top level organization as well. Under that there are
[subscriptions](https://docs.microsoft.com/en-us/office365/enterprise/subscriptions-licenses-accounts-and-tenants-for-microsoft-cloud-offerings).

For security analytics use cases it will be difficult to normalize
across all cloud providers, but account id could be the most basic
start. Since high level orgs are pretty much consistent across all cloud
providers, this could be in the common schema.

_I'm open to calling this organization.id also_
@robgil robgil requested a review from ruflin May 31, 2018 12:36
Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a changelog?

@exekias Any thoughts on this one?

description: >
The cloud account or organization id

This could be the AWS account id or Google Cloud ORG Id. This should be
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the should be in an extended schema part here as we don't have that yet.

@exekias
Copy link

exekias commented Jun 1, 2018

Sounds good to me, account ID is common to (almost?) all providers

@ruflin ruflin merged commit 396be4e into elastic:master Jun 4, 2018
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

Successfully merging this pull request may close these issues.

None yet

3 participants