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

fix: cloudbuild trigger SA roles #1899

Merged
merged 3 commits into from
Dec 29, 2023
Merged

fix: cloudbuild trigger SA roles #1899

merged 3 commits into from
Dec 29, 2023

Conversation

Ziinc
Copy link
Contributor

@Ziinc Ziinc commented Dec 22, 2023

This moves the .dev.env.enc file to correct location under cloudbuild/ so that makefile script works.

This PR also adds in additional roles to the cloud build trigger SA, and updates staging secrets to match in use service account (as it seems like resource manager is removing all iam policies not declared).

@Ziinc
Copy link
Contributor Author

Ziinc commented Dec 22, 2023

@chasers FYI. This was the cause of our canary deploy failure, it is a temp fix. Cloud resource manager has quite a bit of tech debt, it fires off a lot of queries on each set_iam_policy/1 call. Each time a user signs in, it gets called, resulting in db transaction and cpu spikes (+600/s txn, +5-8% cpu).
Ideally, we should call get_iam_policy/0 first and only add/remove users to the retrieved list, instead of rebuilding each from scratch each time.

In pics, each spike is a sign in.

Screenshot 2023-12-23 at 12 35 58 AM Screenshot 2023-12-23 at 12 35 52 AM

@Ziinc Ziinc changed the title chore: move .dev.env.enc to correct location fix: cloudbuild trigger SA roles Dec 22, 2023
@Ziinc
Copy link
Contributor Author

Ziinc commented Dec 22, 2023

Not urgent, can wait until team availability is higher.

@Ziinc Ziinc merged commit beff28f into main Dec 29, 2023
2 checks passed
@Ziinc Ziinc deleted the chore/move-dev-env-enc branch December 29, 2023 01:36
@Ziinc
Copy link
Contributor Author

Ziinc commented Dec 29, 2023

@chasers FYI, merged for testing.

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.

1 participant