Commit graph

4272 commits

Author SHA1 Message Date
Michael Derynck
75698fc5a3
Merge pull request #4568 from grafana/dev
v1.7.2
2024-06-20 11:43:02 -06:00
Michael Derynck
d0ec596046
Update README.md
Remove link for forum we are no longer using
2024-06-20 11:12:26 -06:00
Michael Derynck
7455966b89
Add a simple phone number ban mechanism (#4557)
# What this PR does

Add a simple list for maintaining phone numbers to restrict from SMS,
voice and verify. Works by removing the number as verified and block
future verification attempts with that number rather than check every
operation since all operations already check if a number is verified.

## Which issue(s) this PR closes

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-20 16:09:24 +00:00
Dominik Broj
21ba1aa9e7
initialize faro only on prod (#4566)
# What this PR does

initialize faro only on prod

## Which issue(s) this PR closes

Closes https://github.com/grafana/oncall-private/issues/2756

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-20 11:54:07 +00:00
Salvatore Giordano
e2a719892b
Remove beta warning for mobile app (#4564)
## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-20 09:59:34 +00:00
Michael Derynck
97ec7f1bfa
Only generate random OnCall secrets value when it is not provided (#4563)
# What this PR does
New secret values were being generated for OnCall secrets `secretKey`
and `mirageSecretKey` even when a fixed value was provided in the
`values.yaml` file. This causes encryption of tokens to break in the DB
through inconsistency when things are redeployed. This PR fixes it so
that the value will only be generated if it is not set and the values in
`values.yaml` are used.

## Which issue(s) this PR closes

Closes [issue link here]

<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-19 21:18:19 +00:00
dependabot[bot]
83a2bf3d42
Bump ws from 7.5.9 to 7.5.10 in /grafana-plugin (#4554)
Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/websockets/ws/releases">ws's
releases</a>.</em></p>
<blockquote>
<h2>7.5.10</h2>
<h1>Bug fixes</h1>
<ul>
<li>Backported e55e5106 to the 7.x release line (22c28763).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="d962d70649"><code>d962d70</code></a>
[dist] 7.5.10</li>
<li><a
href="22c2876323"><code>22c2876</code></a>
[security] Fix crash when the Upgrade header cannot be read (<a
href="https://redirect.github.com/websockets/ws/issues/2231">#2231</a>)</li>
<li>See full diff in <a
href="https://github.com/websockets/ws/compare/7.5.9...7.5.10">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ws&package-manager=npm_and_yarn&previous-version=7.5.9&new-version=7.5.10)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/grafana/oncall/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 10:45:26 -04:00
dependabot[bot]
51594b0fb9
Bump urllib3 from 2.2.1 to 2.2.2 in /tools/migrators (#4550)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.1 to 2.2.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/urllib3/urllib3/releases">urllib3's
releases</a>.</em></p>
<blockquote>
<h2>2.2.2</h2>
<h2>🚀 urllib3 is fundraising for HTTP/2 support</h2>
<p><a
href="https://sethmlarson.dev/urllib3-is-fundraising-for-http2-support">urllib3
is raising ~$40,000 USD</a> to release HTTP/2 support and ensure
long-term sustainable maintenance of the project after a sharp decline
in financial support for 2023. If your company or organization uses
Python and would benefit from HTTP/2 support in Requests, pip, cloud
SDKs, and thousands of other projects <a
href="https://opencollective.com/urllib3">please consider contributing
financially</a> to ensure HTTP/2 support is developed sustainably and
maintained for the long-haul.</p>
<p>Thank you for your support.</p>
<h2>Changes</h2>
<ul>
<li>Added the <code>Proxy-Authorization</code> header to the list of
headers to strip from requests when redirecting to a different host. As
before, different headers can be set via
<code>Retry.remove_headers_on_redirect</code>.</li>
<li>Allowed passing negative integers as <code>amt</code> to read
methods of <code>http.client.HTTPResponse</code> as an alternative to
<code>None</code>. (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3122">#3122</a>)</li>
<li>Fixed return types representing copying actions to use
<code>typing.Self</code>. (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3363">#3363</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2">https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/urllib3/urllib3/blob/main/CHANGES.rst">urllib3's
changelog</a>.</em></p>
<blockquote>
<h1>2.2.2 (2024-06-17)</h1>
<ul>
<li>Added the <code>Proxy-Authorization</code> header to the list of
headers to strip from requests when redirecting to a different host. As
before, different headers can be set via
<code>Retry.remove_headers_on_redirect</code>.</li>
<li>Allowed passing negative integers as <code>amt</code> to read
methods of <code>http.client.HTTPResponse</code> as an alternative to
<code>None</code>.
(<code>[#3122](https://github.com/urllib3/urllib3/issues/3122)
&lt;https://github.com/urllib3/urllib3/issues/3122&gt;</code>__)</li>
<li>Fixed return types representing copying actions to use
<code>typing.Self</code>.
(<code>[#3363](https://github.com/urllib3/urllib3/issues/3363)
&lt;https://github.com/urllib3/urllib3/issues/3363&gt;</code>__)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="27e2a5c5a7"><code>27e2a5c</code></a>
Release 2.2.2 (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3406">#3406</a>)</li>
<li><a
href="accff72ecc"><code>accff72</code></a>
Merge pull request from GHSA-34jh-p97f-mpxf</li>
<li><a
href="34be4a57e5"><code>34be4a5</code></a>
Pin CFFI to a new release candidate instead of a Git commit (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3398">#3398</a>)</li>
<li><a
href="da410581b6"><code>da41058</code></a>
Bump browser-actions/setup-chrome from 1.6.0 to 1.7.1 (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3399">#3399</a>)</li>
<li><a
href="b07a669bd9"><code>b07a669</code></a>
Bump github/codeql-action from 2.13.4 to 3.25.6 (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3396">#3396</a>)</li>
<li><a
href="b8589ec9f8"><code>b8589ec</code></a>
Measure coverage with v4 of artifact actions (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3394">#3394</a>)</li>
<li><a
href="f3bdc55851"><code>f3bdc55</code></a>
Allow triggering CI manually (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3391">#3391</a>)</li>
<li><a
href="52392654b3"><code>5239265</code></a>
Fix HTTP version in debug log (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3316">#3316</a>)</li>
<li><a
href="b34619f94e"><code>b34619f</code></a>
Bump actions/checkout to 4.1.4 (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3387">#3387</a>)</li>
<li><a
href="9961d14de7"><code>9961d14</code></a>
Bump browser-actions/setup-chrome from 1.5.0 to 1.6.0 (<a
href="https://redirect.github.com/urllib3/urllib3/issues/3386">#3386</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=urllib3&package-manager=pip&previous-version=2.2.1&new-version=2.2.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/grafana/oncall/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 14:05:11 +00:00
Joey Orlando
c5b76a5869
fix right-hand navigation in API docs (#4546)
# What this PR does

The right-hand side navigation in the OnCall API public docs
([example](https://grafana.com/docs/oncall/latest/oncall-api-reference/alertgroups/))
doesn’t render as expected vs. what we see in the Grafana API public
docs
([example](https://grafana.com/docs/grafana/latest/developers/http_api/folder/);
2nd screenshot). This PR fixes that ([convo on
Slack](https://raintank-corp.slack.com/archives/C045CTY1QEP/p1718388424649359)).


![Screenshot 2024-06-14 at 14 05
03](https://github.com/grafana/oncall/assets/9406895/0636d9d7-2f58-4c82-91b5-5b4af0dd3524)

![Screenshot 2024-06-14 at 14 06 36
(1)](https://github.com/grafana/oncall/assets/9406895/7a5bc2c8-ccb2-4b53-b982-d7d7596f90e2)
2024-06-17 11:31:35 -04:00
Dominik Broj
8f3cdc3ccc
Disable All option for non selectable variables (#4544)
# What this PR does
Disable All option for non selectable variables



## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-17 15:01:33 +00:00
Chad Horohoe
100047c0c7
Typofix: Grafaana -> Grafana (#4543)
# What this PR does

Simple doc typofix, Grafana was misspelled.

## Which issue(s) this PR closes

None

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-17 10:14:46 -04:00
Rares Mardare
46629e2ea6
Make rotation start and rotation end take timezone into consideration (#4481)
# What this PR does

- Fixes Rotation Start and Rotation End to take selected offset into
consideration
- Fixed issue where week/month period was being restored when the offset
was being changed (now it defaults to start of week, midnight, in
selected timezone offset)

Related to https://github.com/grafana/oncall/issues/4428
2024-06-17 13:30:08 +00:00
Vadim Stepanov
b7dbb2a26e
Support message shortcut broadcast (#4518)
# What this PR does

Related to https://github.com/grafana/oncall-gateway/issues/206

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-17 10:31:43 +00:00
Dominik Broj
8f64a44e54
Fix "Cannot read ... of undefined" from Axios response (#4541)
# What this PR does
Fix "Cannot read ... of undefined" from Axios response



<!--
*Note*: if you have more than one GitHub issue that this PR closes, be
sure to preface
each issue link with a [closing
keyword](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue).
This ensures that the issue(s) are auto-closed once the PR has been
merged.
-->

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.
2024-06-17 07:47:56 +00:00
Joey Orlando
6bb9fcef4c
update github issue product areas + label assignment 2024-06-14 12:52:14 -04:00
Joey Orlando
a9b49a9478
update api docs (#4539)
# What this PR does

opened in favour of https://github.com/grafana/oncall/pull/4252

---------

Co-authored-by: Jara Suárez de Puga García <jara.suarezdepuga@grafana.com>
2024-06-14 12:31:36 -04:00
Joey Orlando
13f8c254fa
update product areas in issue templates 2024-06-14 12:26:41 -04:00
Innokentii Konstantinov
6c63f53889
Handle slack uninstall event from chatops-proxy (#4510) 2024-06-14 07:46:14 +00:00
Joey Orlando
83d8320478
Merge pull request #4533 from grafana/helm-release/1.7.1
Merge: Release oncall Helm chart 1.7.1
2024-06-13 19:22:21 -04:00
GitHub Actions
350dc450ce Release oncall Helm chart 1.7.1 2024-06-13 23:22:02 +00:00
github-actions[bot]
bc1544cc01
Update make docs procedure (#4523)
Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2024-06-13 20:30:35 +00:00
Joey Orlando
56683d2aa0
add release:ignore to update make docs procedure
PRs
2024-06-13 16:25:04 -04:00
Joey Orlando
ebb5122463
Merge pull request #4532 from grafana/dev
dev -> main
2024-06-13 16:19:37 -04:00
Joey Orlando
a8a9ef8c3d
Merge pull request #4531 from grafana/revert-4530-helm-release/1.7.1
Revert "Merge: Release oncall Helm chart 1.7.1"
2024-06-13 16:16:31 -04:00
Joey Orlando
efd3040188
Revert "Merge: Release oncall Helm chart 1.7.1" 2024-06-13 16:16:19 -04:00
Joey Orlando
9baba271b4
debugging helm release github actions workflow 2024-06-13 16:15:46 -04:00
Joey Orlando
9f29f1f5d6
Merge pull request #4530 from grafana/helm-release/1.7.1
Merge: Release oncall Helm chart 1.7.1
2024-06-13 15:56:17 -04:00
GitHub Actions
2757ac4645 Release oncall Helm chart 1.7.1 2024-06-13 19:55:54 +00:00
Joey Orlando
c749723e41
v1.7.1 2024-06-13 15:30:16 -04:00
Joey Orlando
48816a9168
Merge pull request #4528 from grafana/revert-4527-helm-release/1.7.1
Revert "Merge: Release oncall Helm chart 1.7.1"
2024-06-13 15:29:09 -04:00
Joey Orlando
83e6f0e7d1
Revert "Merge: Release oncall Helm chart 1.7.1" 2024-06-13 15:28:55 -04:00
Joey Orlando
40df01dc90
debugging helm release github actions workflow 2024-06-13 15:28:41 -04:00
Joey Orlando
90e8d9adbe
Merge pull request #4527 from grafana/helm-release/1.7.1
Merge: Release oncall Helm chart 1.7.1
2024-06-13 15:25:28 -04:00
GitHub Actions
69c29d64a4 Release oncall Helm chart 1.7.1 2024-06-13 19:25:09 +00:00
Joey Orlando
76f3cd3158
debugging helm release github actions workflow 2024-06-13 15:24:20 -04:00
Joey Orlando
a1f5a69809
debugging helm release github actions workflow 2024-06-13 15:22:57 -04:00
Joey Orlando
d63c4f6c4a
debugging helm release github actions workflow 2024-06-13 15:17:54 -04:00
Joey Orlando
2d8627f1e2
debugging helm release github actions workflow 2024-06-13 15:10:15 -04:00
Joey Orlando
c086f33b7e
v1.7.1 2024-06-13 14:49:25 -04:00
Joey Orlando
7cdef436a5
update token permissions for yaml update action 2024-06-13 14:46:17 -04:00
Joey Orlando
66f3ac5432
fix update make docs github actions workflow 2024-06-13 14:09:32 -04:00
Joey Orlando
6f08924ad5
v1.7.1 2024-06-13 14:03:02 -04:00
Joey Orlando
5b995fdc57
fix linting 2024-06-13 14:01:32 -04:00
Joey Orlando
6c59f8ae5a
v1.7.1 2024-06-13 13:53:00 -04:00
Joey Orlando
3133e3013d
simplify helm release github actions workflows into on release workflow 2024-06-13 13:50:37 -04:00
Joey Orlando
d032a4f909
minor github actions yml formatting 2024-06-13 13:43:21 -04:00
Joey Orlando
b411b92d1c
add on issue closed github actions workflow 2024-06-13 13:39:39 -04:00
Joey Orlando
f792612134
update sqlparse to address CVE-2024-4340 (#4516)
# Which issue(s) this PR closes

Closes https://github.com/grafana/oncall/issues/4511

Also closes https://github.com/grafana/oncall/security/dependabot/108
2024-06-13 09:08:50 -04:00
Alyssa Wada
361a4f669e
[DOCS] SMS and call routing tutorial (#4376)
# What this PR does
Support high demand SMS and call routing functionality. 

## Which issue(s) this PR closes
Supports [https://github.com/grafana/oncall-private/issues/2556]
2024-06-12 21:50:40 +00:00
Joey Orlando
41410a24a5
Merge pull request #4505 from grafana/helm-release/1.7.0
Merge: Release oncall Helm chart 1.7.0
2024-06-11 14:21:11 -04:00