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

[Cloud Security] Fix GCP service account deployment copy-paste command #192959

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

orouz
Copy link
Contributor

@orouz orouz commented Sep 15, 2024

Summary

installing CSPM GCP on agentless shows the user a command to copy-paste (and plug in values), the command was slightly off which ended up triggering the service account deployment for projects and not organizations.

Screenshot 2024-09-15 at 17 42 12

  1. ORD_IDORG_ID
  2. ORG_ID=... && ./scriptORG_ID=.. script.ts - this is required to make the env variable available to the script

lucky enough though, after testing the above changes, i ran into another issue on cloudbeat side, which prevented deployment all-together as ORG_ID was treated as a number instead of a string. see here

@orouz orouz added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:Cloud Security Cloud Security team related labels Sep 15, 2024
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #88 / discover/context_awareness extension getAdditionalCellActions data view mode should not render incompatible cell action for message column

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cloudSecurityPosture 496.5KB 496.5KB -3.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@orouz orouz marked this pull request as ready for review September 16, 2024 06:20
@orouz orouz requested a review from a team as a code owner September 16, 2024 06:20
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

@orouz orouz merged commit a5a7f15 into elastic:main Sep 16, 2024
20 checks passed
@orouz orouz added v8.16.0 backport:version Backport to applied version labels and removed backport:skip This commit does not require backporting labels Sep 19, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 19, 2024
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 19, 2024
…command (#192959) (#193427)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Fix GCP service account deployment copy-paste
command (#192959)](#192959)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Or
Ouziel","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-16T13:38:42Z","message":"[Cloud
Security] Fix GCP service account deployment copy-paste command
(#192959)","sha":"a5a7f1554b731f98e51a18efccdbf6e771077144","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Cloud
Security","v8.16.0","backport:version"],"title":"[Cloud Security] Fix
GCP service account deployment copy-paste
command","number":192959,"url":"#192959
Security] Fix GCP service account deployment copy-paste command
(#192959)","sha":"a5a7f1554b731f98e51a18efccdbf6e771077144"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"#192959
Security] Fix GCP service account deployment copy-paste command
(#192959)","sha":"a5a7f1554b731f98e51a18efccdbf6e771077144"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Or Ouziel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants