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

[Monitoring] Adding oauth annotation so GCP uptime can probe the HTML pages #4312

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

vitorguidi
Copy link
Collaborator

@vitorguidi vitorguidi commented Oct 10, 2024

Whitelisting a service account is not enough to get GCP Uptime to work, to verify if the endpoints on the clusterfuzz frontend are available. Attempting to annotate get handlers with oauth, so the healthcheck does not get stuck at the login page.

This pr is part of #4271

@vitorguidi vitorguidi merged commit 55d8cf3 into master Oct 10, 2024
7 checks passed
@vitorguidi vitorguidi deleted the feature/appengine-oauth-annotations branch October 10, 2024 22:55
vitorguidi added a commit that referenced this pull request Oct 23, 2024
### Motivation 

#4312 added the oauth handler to several get endpoints, in order for GCP
uptime to probe them. However, the decorator assumed that all handlers
would be of the form func(self), not declaring args or kwargs.

This is not true, for the following signatures:
```
coverage_report.py
...
  def get(self, report_type=None, argument=None, date=None, extra=None):
  
fuzzer_stats.py
...
  def get(self, extra=None):
```

This PR adds *args and **kwargs to the wrapper, so it can work for these
endpoints.

Part of #4271 

Error groups:

[coverage](https://pantheon.corp.google.com/errors/detail/CKrE1Jfd88vKIQ;service=;version=;filter=%5B%22handler%22%5D;time=P7D;locations=global?e=-13802955&inv=1&invt=AbfeYw&mods=logs_tg_prod&project=clusterfuzz-external)

[stats](https://pantheon.corp.google.com/errors/detail/CMiEwKaYs4DfEA;service=;version=;filter=%5B%22handler%22%5D;time=P7D;locations=global?e=-13802955&inv=1&invt=AbfeYw&mods=logs_tg_prod&project=clusterfuzz-external)
@vitorguidi vitorguidi changed the title Adding oauth annotation so GCP uptime can probe the HTML pages [Monitoring] Instrumenting cronjob exit codesAdding oauth annotation so GCP uptime can probe the HTML pages Nov 8, 2024
@vitorguidi vitorguidi changed the title [Monitoring] Instrumenting cronjob exit codesAdding oauth annotation so GCP uptime can probe the HTML pages [Monitoring] Adding oauth annotation so GCP uptime can probe the HTML pages Nov 8, 2024
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.

2 participants