Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
fix lint errors

udpate cmd name and remove license

deps: bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.55.2 to 1.56.0 (#490)

Bumps
[github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2)
from 1.55.2 to 1.56.0.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/077df5deb4f94e0cacc5c64c4538e49b6c711563"><code>077df5d</code></a>
Release 2024-06-18</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/3320b138b7ef295ad49afcaa9b04b6dca5e0e8ad"><code>3320b13</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/1315201166439e42a027b644eb29de62e5e1ecee"><code>1315201</code></a>
Update API model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/8dddc9c41a16c7f622ba149d5f15b78e33ff7f1c"><code>8dddc9c</code></a>
add SDK-specific feature tracking (<a
href="https://redirect.github.com/aws/aws-sdk-go-v2/issues/2682">#2682</a>)</li>
<li>See full diff in <a
href="https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.55.2...service/s3/v1.56.0">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-sdk-go-v2/service/s3&package-manager=go_modules&previous-version=1.55.2&new-version=1.56.0)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.20 to 1.27.21 (#493)

Bumps
[github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2)
from 1.27.20 to 1.27.21.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/2d43b815f645eae163e7521c9789554dfe60e40c"><code>2d43b81</code></a>
Release 2024-06-19</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/812bc72fb0611de5a988fc08c7352640bb6513ea"><code>812bc72</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/12e26483a56e94cb4f58d8632526d175ecebee09"><code>12e2648</code></a>
Update endpoints model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/5df426acd2fbd5c0b52c0fcc2c20cfd42492d26c"><code>5df426a</code></a>
Update API model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/78777b63b91f22f973a5613595f15d32ff42080b"><code>78777b6</code></a>
add implicit global region to internal partition metadata (<a
href="https://redirect.github.com/aws/aws-sdk-go-v2/issues/2688">#2688</a>)</li>
<li>See full diff in <a
href="https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.20...config/v1.27.21">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-sdk-go-v2/config&package-manager=go_modules&previous-version=1.27.20&new-version=1.27.21)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

deps: bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.56.0 to 1.56.1 (#494)

Bumps
[github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2)
from 1.56.0 to 1.56.1.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/2d43b815f645eae163e7521c9789554dfe60e40c"><code>2d43b81</code></a>
Release 2024-06-19</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/812bc72fb0611de5a988fc08c7352640bb6513ea"><code>812bc72</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/12e26483a56e94cb4f58d8632526d175ecebee09"><code>12e2648</code></a>
Update endpoints model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/5df426acd2fbd5c0b52c0fcc2c20cfd42492d26c"><code>5df426a</code></a>
Update API model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/78777b63b91f22f973a5613595f15d32ff42080b"><code>78777b6</code></a>
add implicit global region to internal partition metadata (<a
href="https://redirect.github.com/aws/aws-sdk-go-v2/issues/2688">#2688</a>)</li>
<li>See full diff in <a
href="https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.56.0...service/s3/v1.56.1">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-sdk-go-v2/service/s3&package-manager=go_modules&previous-version=1.56.0&new-version=1.56.1)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

deps: bump github.com/Azure/azure-sdk-for-go/sdk/azidentity from 1.6.0 to 1.7.0 (#497)

Bumps
[github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go)
from 1.6.0 to 1.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Azure/azure-sdk-for-go/releases">github.com/Azure/azure-sdk-for-go/sdk/azidentity's
releases</a>.</em></p>
<blockquote>
<h2>sdk/messaging/azservicebus/v1.7.0</h2>
<h2>1.7.0 (2024-04-02)</h2>
<h3>Features Added</h3>
<ul>
<li>Add in ability to handle emulator connection strings.
(PR#22663)</li>
</ul>
<h2>sdk/internal/v1.7.0</h2>
<h2>1.7.0 (2024-05-01)</h2>
<h3>Features Added</h3>
<ul>
<li>
<p>Support for local repo override (via presence of
eng/target_proxy_version.txt) of invoked test-proxy version.</p>
</li>
<li>
<p><code>RemoveRegisteredSanitizers</code> selectively disables
sanitizers the test proxy enables by
default since version 1.0.0-dev.20240422.1</p>
</li>
</ul>
<h3>Breaking Changes</h3>
<ul>
<li>Deprecated the <code>go-vcr</code> based test recording API. Its
methods now return errors or panic.</li>
<li>Changed value of <code>recording.SanitizedValue</code> from
&quot;sanitized&quot; to &quot;Sanitized&quot; to match the
test proxy</li>
</ul>
<h2>sdk/azidentity/v1.7.0</h2>
<h2>1.7.0 (2024-06-20)</h2>
<h3>Features Added</h3>
<ul>
<li><code>AzurePipelinesCredential</code> authenticates an Azure
Pipelines service connection with
workload identity federation</li>
</ul>
<h3>Breaking Changes</h3>
<blockquote>
<p>These changes affect only code written against a beta version such as
v1.7.0-beta.1</p>
</blockquote>
<ul>
<li>Removed the persistent token caching API. It will return in
v1.8.0-beta.1</li>
</ul>
<h2>sdk/azidentity/v1.7.0-beta.1</h2>
<h2>1.7.0-beta.1 (2024-06-10)</h2>
<h3>Features Added</h3>
<ul>
<li>Restored <code>AzurePipelinesCredential</code> and persistent token
caching API</li>
</ul>
<h2>Breaking Changes</h2>
<blockquote>
<p>These changes affect only code written against a beta version such as
v1.6.0-beta.4</p>
</blockquote>
<ul>
<li>Values which <code>NewAzurePipelinesCredential</code> read from
environment variables in
prior versions are now parameters</li>
<li>Renamed
<code>AzurePipelinesServiceConnectionCredentialOptions</code> to
<code>AzurePipelinesCredentialOptions</code></li>
</ul>
<h3>Bugs Fixed</h3>
<ul>
<li>Managed identity bug fixes</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/624babab3d2e3a95628afa61d1474a035cc7d094"><code>624baba</code></a>
bump azcore version number</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/ce7217c3f5f5a2f88f3a5d1ded48da338f3d8d06"><code>ce7217c</code></a>
Prep for azcore v1.7.0 release (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21149">#21149</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/62a8079d41783914d9a5f585bcdb6f6b91223e5c"><code>62a8079</code></a>
Add support for shallow cloning azcore.Client instances (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21065">#21065</a>)
(<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21098">#21098</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/47286b065b0e3aa7d367fb20212aad3a143e6343"><code>47286b0</code></a>
Add flag to enable skipping of dependency checks (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21146">#21146</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/ee762d4420eb57051cdebe55e55b107dae4f6bfc"><code>ee762d4</code></a>
Fix populating module name in telemetry policy (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/20967">#20967</a>)
(<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/20971">#20971</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/02431759c00a99a31e159e9905c392b8f430c897"><code>0243175</code></a>
Prep azcore v1.6.1 for release (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/20961">#20961</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/9c9d62a1d612cf1f9e6902ddd3c538abd90b955c"><code>9c9d62a</code></a>
Increment package version after release of azcore (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/20740">#20740</a>)</li>
<li>See full diff in <a
href="https://github.com/Azure/azure-sdk-for-go/compare/sdk/azcore/v1.6.0...sdk/azcore/v1.7.0">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/azure-sdk-for-go/sdk/azidentity&package-manager=go_modules&previous-version=1.6.0&new-version=1.7.0)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

deps: bump github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5 from 5.1.1 to 5.2.0 (#498)

Bumps
[github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5](https://github.com/Azure/azure-sdk-for-go)
from 5.1.1 to 5.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Azure/azure-sdk-for-go/releases">github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5's
releases</a>.</em></p>
<blockquote>
<h2>sdk/resourcemanager/network/armnetwork/v5.2.0</h2>
<h2>5.2.0 (2024-06-21)</h2>
<h3>Features Added</h3>
<ul>
<li>New value <code>EndpointTypeAzureArcNetwork</code> added to enum
type <code>EndpointType</code></li>
<li>New enum type <code>ApplicationGatewaySKUFamily</code> with values
<code>ApplicationGatewaySKUFamilyGeneration1</code>,
<code>ApplicationGatewaySKUFamilyGeneration2</code></li>
<li>New enum type <code>InboundSecurityRuleType</code> with values
<code>InboundSecurityRuleTypeAutoExpire</code>,
<code>InboundSecurityRuleTypePermanent</code></li>
<li>New enum type <code>NicTypeInRequest</code> with values
<code>NicTypeInRequestPrivateNic</code>,
<code>NicTypeInRequestPublicNic</code></li>
<li>New enum type <code>NicTypeInResponse</code> with values
<code>NicTypeInResponseAdditionalNic</code>,
<code>NicTypeInResponsePrivateNic</code>,
<code>NicTypeInResponsePublicNic</code></li>
<li>New enum type <code>SharingScope</code> with values
<code>SharingScopeDelegatedServices</code>,
<code>SharingScopeTenant</code></li>
<li>New function
<code>*ClientFactory.NewFirewallPolicyDeploymentsClient()
*FirewallPolicyDeploymentsClient</code></li>
<li>New function <code>*ClientFactory.NewFirewallPolicyDraftsClient()
*FirewallPolicyDraftsClient</code></li>
<li>New function
<code>*ClientFactory.NewFirewallPolicyRuleCollectionGroupDraftsClient()
*FirewallPolicyRuleCollectionGroupDraftsClient</code></li>
<li>New function <code>NewFirewallPolicyDeploymentsClient(string,
azcore.TokenCredential, *arm.ClientOptions)
(*FirewallPolicyDeploymentsClient, error)</code></li>
<li>New function
<code>*FirewallPolicyDeploymentsClient.BeginDeploy(context.Context,
string, string, *FirewallPolicyDeploymentsClientBeginDeployOptions)
(*runtime.Poller[FirewallPolicyDeploymentsClientDeployResponse],
error)</code></li>
<li>New function <code>NewFirewallPolicyDraftsClient(string,
azcore.TokenCredential, *arm.ClientOptions)
(*FirewallPolicyDraftsClient, error)</code></li>
<li>New function
<code>*FirewallPolicyDraftsClient.CreateOrUpdate(context.Context,
string, string, FirewallPolicyDraft,
*FirewallPolicyDraftsClientCreateOrUpdateOptions)
(FirewallPolicyDraftsClientCreateOrUpdateResponse, error)</code></li>
<li>New function
<code>*FirewallPolicyDraftsClient.Delete(context.Context, string,
string, *FirewallPolicyDraftsClientDeleteOptions)
(FirewallPolicyDraftsClientDeleteResponse, error)</code></li>
<li>New function <code>*FirewallPolicyDraftsClient.Get(context.Context,
string, string, *FirewallPolicyDraftsClientGetOptions)
(FirewallPolicyDraftsClientGetResponse, error)</code></li>
<li>New function
<code>NewFirewallPolicyRuleCollectionGroupDraftsClient(string,
azcore.TokenCredential, *arm.ClientOptions)
(*FirewallPolicyRuleCollectionGroupDraftsClient, error)</code></li>
<li>New function
<code>*FirewallPolicyRuleCollectionGroupDraftsClient.CreateOrUpdate(context.Context,
string, string, string, FirewallPolicyRuleCollectionGroupDraft,
*FirewallPolicyRuleCollectionGroupDraftsClientCreateOrUpdateOptions)
(FirewallPolicyRuleCollectionGroupDraftsClientCreateOrUpdateResponse,
error)</code></li>
<li>New function
<code>*FirewallPolicyRuleCollectionGroupDraftsClient.Delete(context.Context,
string, string, string,
*FirewallPolicyRuleCollectionGroupDraftsClientDeleteOptions)
(FirewallPolicyRuleCollectionGroupDraftsClientDeleteResponse,
error)</code></li>
<li>New function
<code>*FirewallPolicyRuleCollectionGroupDraftsClient.Get(context.Context,
string, string, string,
*FirewallPolicyRuleCollectionGroupDraftsClientGetOptions)
(FirewallPolicyRuleCollectionGroupDraftsClientGetResponse,
error)</code></li>
<li>New function
<code>*VirtualAppliancesClient.BeginRestart(context.Context, string,
string, *VirtualAppliancesClientBeginRestartOptions)
(*runtime.Poller[VirtualAppliancesClientRestartResponse],
error)</code></li>
<li>New struct
<code>ConnectionMonitorEndpointLocationDetails</code></li>
<li>New struct <code>FirewallPolicyDraft</code></li>
<li>New struct <code>FirewallPolicyDraftProperties</code></li>
<li>New struct <code>FirewallPolicyRuleCollectionGroupDraft</code></li>
<li>New struct
<code>FirewallPolicyRuleCollectionGroupDraftProperties</code></li>
<li>New struct <code>HeaderValueMatcher</code></li>
<li>New struct <code>PacketCaptureSettings</code></li>
<li>New struct <code>VirtualApplianceIPConfiguration</code></li>
<li>New struct
<code>VirtualApplianceIPConfigurationProperties</code></li>
<li>New struct <code>VirtualApplianceInstanceIDs</code></li>
<li>New struct
<code>VirtualApplianceNetworkInterfaceConfiguration</code></li>
<li>New struct
<code>VirtualApplianceNetworkInterfaceConfigurationProperties</code></li>
<li>New struct
<code>VirtualAppliancePropertiesFormatNetworkProfile</code></li>
<li>New field <code>HeaderValueMatcher</code> in struct
<code>ApplicationGatewayHeaderConfiguration</code></li>
<li>New field <code>Family</code> in struct
<code>ApplicationGatewaySKU</code></li>
<li>New field <code>LocationDetails</code>, <code>SubscriptionID</code>
in struct <code>ConnectionMonitorEndpoint</code></li>
<li>New field <code>EnableDirectPortRateLimit</code> in struct
<code>ExpressRouteCircuitPropertiesFormat</code></li>
<li>New field <code>RuleType</code> in struct
<code>InboundSecurityRuleProperties</code></li>
<li>New field <code>AppliesOn</code>,
<code>DestinationPortRanges</code>, <code>Name</code> in struct
<code>InboundSecurityRules</code></li>
<li>New field <code>PrivateIPAddressPrefixLength</code> in struct
<code>InterfaceIPConfigurationPropertiesFormat</code></li>
<li>New field <code>CaptureSettings</code>,
<code>ContinuousCapture</code> in struct
<code>PacketCaptureParameters</code></li>
<li>New field <code>CaptureSettings</code>,
<code>ContinuousCapture</code> in struct
<code>PacketCaptureResultProperties</code></li>
<li>New field <code>LocalPath</code> in struct
<code>PacketCaptureStorageLocation</code></li>
<li>New field <code>JsChallengeCookieExpirationInMins</code> in struct
<code>PolicySettings</code></li>
<li>New field <code>SharingScope</code> in struct
<code>SubnetPropertiesFormat</code></li>
<li>New field <code>DpdTimeoutSeconds</code> in struct
<code>VPNSiteLinkConnectionProperties</code></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/20751203d34092d595f29e5bd2e1fd3bb98155f7"><code>2075120</code></a>
[Release] sdk/resourcemanager/compute/armcompute/5.2.0 (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21533">#21533</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/40b4a5358834809faac6381137b42c9c7f3f5a50"><code>40b4a53</code></a>
Return specific errors when parsing connection strings (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21586">#21586</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/b356b4a41dfd71441f38c7c59c228d6d89dc352e"><code>b356b4a</code></a>
Don't recreate body after reading (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21580">#21580</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/0872c8042db81c92737f0fc99561d1bbadd40cc6"><code>0872c80</code></a>
Deprecated sdk/resourcemanager/servicefabricmesh/armservicefabricmesh
(<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21583">#21583</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/e4491a8e239619b14612d49d621cbb7c2652b745"><code>e4491a8</code></a>
generator tools add --force-stable-version flag (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21582">#21582</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/d82c2b83d410593d501f39c5c4651934761eab7c"><code>d82c2b8</code></a>
Move the HMAC auth policy to an internal package (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21579">#21579</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/b2c13bb29371890521943c1347df8bb8bffa9288"><code>b2c13bb</code></a>
Clean up azdatalake pending version number (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21575">#21575</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/fa976efb239f5ba81d1286fa89dd6f59c3af3209"><code>fa976ef</code></a>
Serilaize with depth (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21568">#21568</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/b2e324fc5c38463f95eebac87ea937ce9359b443"><code>b2e324f</code></a>
azblob: STG 90 Preview (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21574">#21574</a>)</li>
<li><a
href="https://github.com/Azure/azure-sdk-for-go/commit/400ace9928229820b314c7b4fa52552054e3b838"><code>400ace9</code></a>
Updating Module Version + Changelog (<a
href="https://redirect.github.com/Azure/azure-sdk-for-go/issues/21565">#21565</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/Azure/azure-sdk-for-go/compare/sdk/resourcemanager/network/armnetwork/v5.1.1...sdk/resourcemanager/compute/armcompute/v5.2.0">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v5&package-manager=go_modules&previous-version=5.1.1&new-version=5.2.0)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

refacto

deps: bump github.com/safchain/ethtool from 0.4.0 to 0.4.1 (#500)

Bumps [github.com/safchain/ethtool](https://github.com/safchain/ethtool)
from 0.4.0 to 0.4.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/safchain/ethtool/releases">github.com/safchain/ethtool's
releases</a>.</em></p>
<blockquote>
<h2>v0.4.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Conditionally inject supportedCapabilities by <a
href="https://github.com/gavinbunney"><code>@​gavinbunney</code></a> in
<a
href="https://redirect.github.com/safchain/ethtool/pull/81">safchain/ethtool#81</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/gavinbunney"><code>@​gavinbunney</code></a>
made their first contribution in <a
href="https://redirect.github.com/safchain/ethtool/pull/81">safchain/ethtool#81</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/safchain/ethtool/compare/v0.4.0...v0.4.1">https://github.com/safchain/ethtool/compare/v0.4.0...v0.4.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/safchain/ethtool/commit/6585e3fce8548c018758658cd643350c648af6fa"><code>6585e3f</code></a>
Merge pull request <a
href="https://redirect.github.com/safchain/ethtool/issues/81">#81</a>
from gavinbunney/master</li>
<li><a
href="https://github.com/safchain/ethtool/commit/5dfe5f52d33163443e28611fd06c74a53517036f"><code>5dfe5f5</code></a>
Conditionally inject supportedCapabilities</li>
<li>See full diff in <a
href="https://github.com/safchain/ethtool/compare/v0.4.0...v0.4.1">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/safchain/ethtool&package-manager=go_modules&previous-version=0.4.0&new-version=0.4.1)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

deps: bump github.com/hashicorp/go-retryablehttp from 0.7.5 to 0.7.7 in /hack/tools in the go_modules group (#504)

Bumps the go_modules group in /hack/tools with 1 update:
[github.com/hashicorp/go-retryablehttp](https://github.com/hashicorp/go-retryablehttp).

Updates `github.com/hashicorp/go-retryablehttp` from 0.7.5 to 0.7.7
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/hashicorp/go-retryablehttp/blob/main/CHANGELOG.md">github.com/hashicorp/go-retryablehttp's
changelog</a>.</em></p>
<blockquote>
<h2>0.7.7 (May 30, 2024)</h2>
<p>BUG FIXES:</p>
<ul>
<li>client: avoid potentially leaking URL-embedded basic authentication
credentials in logs (<a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/158">#158</a>)</li>
</ul>
<h2>0.7.6 (May 9, 2024)</h2>
<p>ENHANCEMENTS:</p>
<ul>
<li>client: support a <code>RetryPrepare</code> function for modifying
the request before retrying (<a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/216">#216</a>)</li>
<li>client: support HTTP-date values for <code>Retry-After</code> header
value (<a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/138">#138</a>)</li>
<li>client: avoid reading entire body when the body is a
<code>*bytes.Reader</code> (<a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/197">#197</a>)</li>
</ul>
<p>BUG FIXES:</p>
<ul>
<li>client: fix a broken check for invalid server certificate in go
1.20+ (<a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/210">#210</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/1542b31176d3973a6ecbc06c05a2d0df89b59afb"><code>1542b31</code></a>
v0.7.7</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/defb9f441dcf67a2a56fae733482836ea83349ac"><code>defb9f4</code></a>
v0.7.7</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/a99f07beb3c5faaa0a283617e6eb6bcf25f5049a"><code>a99f07b</code></a>
Merge pull request <a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/158">#158</a>
from dany74q/danny/redacted-url-in-logs</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/8a28c574da4098c0612fe1c7135f1f6de113d411"><code>8a28c57</code></a>
Merge branch 'main' into danny/redacted-url-in-logs</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/86e852df43aa0d94150c4629d74e5116d1ff3348"><code>86e852d</code></a>
Merge pull request <a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/227">#227</a>
from hashicorp/dependabot/github_actions/actions/chec...</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/47fe99e6460cddc5f433aad2b54dcf32281f8a53"><code>47fe99e</code></a>
Bump actions/checkout from 4.1.5 to 4.1.6</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/490fc06be0931548d3523a4245d15e9dc5d9214d"><code>490fc06</code></a>
Merge pull request <a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/226">#226</a>
from testwill/ioutil</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/f3e9417dbfcd0dc2b4a02a1dfdeb75f1e636b692"><code>f3e9417</code></a>
chore: remove refs to deprecated io/ioutil</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/d969eaa9c97860482749df718a35b4a269361055"><code>d969eaa</code></a>
Merge pull request <a
href="https://redirect.github.com/hashicorp/go-retryablehttp/issues/225">#225</a>
from hashicorp/manicminer-patch-2</li>
<li><a
href="https://github.com/hashicorp/go-retryablehttp/commit/2ad8ed4a1d9e632284f6937e91b2f9a1d30e8298"><code>2ad8ed4</code></a>
v0.7.6</li>
<li>Additional commits viewable in <a
href="https://github.com/hashicorp/go-retryablehttp/compare/v0.7.5...v0.7.7">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/hashicorp/go-retryablehttp&package-manager=go_modules&previous-version=0.7.5&new-version=0.7.7)](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 <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/microsoft/retina/network/alerts).

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

fix lint

fix lint errors

fix lint

deps: bump github.com/prometheus/common from 0.54.0 to 0.55.0 (#506)

Bumps
[github.com/prometheus/common](https://github.com/prometheus/common)
from 0.54.0 to 0.55.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/prometheus/common/releases">github.com/prometheus/common's
releases</a>.</em></p>
<blockquote>
<h2>v0.55.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update Go modules by <a
href="https://github.com/SuperQ"><code>@​SuperQ</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/643">prometheus/common#643</a></li>
<li>enable errcheck linter by <a
href="https://github.com/mmorel-35"><code>@​mmorel-35</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/637">prometheus/common#637</a></li>
<li>Add a <code>RELEASE.md</code> and add <a
href="https://github.com/gotjosh"><code>@​gotjosh</code></a> as a
mantainer by <a
href="https://github.com/gotjosh"><code>@​gotjosh</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/644">prometheus/common#644</a></li>
<li>Move goautoneg to external dependency by <a
href="https://github.com/mikelolasagasti"><code>@​mikelolasagasti</code></a>
in <a
href="https://redirect.github.com/prometheus/common/pull/625">prometheus/common#625</a></li>
<li>Expose secret as SecretReader and InlineSecret from config package
by <a href="https://github.com/pracucci"><code>@​pracucci</code></a> in
<a
href="https://redirect.github.com/prometheus/common/pull/650">prometheus/common#650</a></li>
<li>Fix HTTPClientConfig JSON marshalling by <a
href="https://github.com/pracucci"><code>@​pracucci</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/651">prometheus/common#651</a></li>
<li>Expose secret as FileSecret from config package by <a
href="https://github.com/alanprot"><code>@​alanprot</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/653">prometheus/common#653</a></li>
<li>Synchronize common files from prometheus/prometheus by <a
href="https://github.com/prombot"><code>@​prombot</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/646">prometheus/common#646</a></li>
<li>Set http_headers to be omit empty by <a
href="https://github.com/yeya24"><code>@​yeya24</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/655">prometheus/common#655</a></li>
<li>chore: add HumanizeTimestamp; make ConvertToFloat exportable by <a
href="https://github.com/freak12techno"><code>@​freak12techno</code></a>
in <a
href="https://redirect.github.com/prometheus/common/pull/654">prometheus/common#654</a></li>
<li>Bump github.com/aws/aws-sdk-go from 1.53.14 to 1.54.7 in /sigv4 by
<a href="https://github.com/dependabot"><code>@​dependabot</code></a> in
<a
href="https://redirect.github.com/prometheus/common/pull/659">prometheus/common#659</a></li>
<li>Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/656">prometheus/common#656</a></li>
<li>Bump google.golang.org/protobuf from 1.34.1 to 1.34.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/658">prometheus/common#658</a></li>
<li>Bump golang.org/x/net from 0.25.0 to 0.26.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/657">prometheus/common#657</a></li>
<li>Synchronize common files from prometheus/prometheus by <a
href="https://github.com/prombot"><code>@​prombot</code></a> in <a
href="https://redirect.github.com/prometheus/common/pull/660">prometheus/common#660</a></li>
<li>Add SigV4 FIPS STS endpoint config by <a
href="https://github.com/rajagopalanand"><code>@​rajagopalanand</code></a>
in <a
href="https://redirect.github.com/prometheus/common/pull/649">prometheus/common#649</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/gotjosh"><code>@​gotjosh</code></a> made
their first contribution in <a
href="https://redirect.github.com/prometheus/common/pull/644">prometheus/common#644</a></li>
<li><a
href="https://github.com/mikelolasagasti"><code>@​mikelolasagasti</code></a>
made their first contribution in <a
href="https://redirect.github.com/prometheus/common/pull/625">prometheus/common#625</a></li>
<li><a href="https://github.com/alanprot"><code>@​alanprot</code></a>
made their first contribution in <a
href="https://redirect.github.com/prometheus/common/pull/653">prometheus/common#653</a></li>
<li><a href="https://github.com/yeya24"><code>@​yeya24</code></a> made
their first contribution in <a
href="https://redirect.github.com/prometheus/common/pull/655">prometheus/common#655</a></li>
<li><a
href="https://github.com/rajagopalanand"><code>@​rajagopalanand</code></a>
made their first contribution in <a
href="https://redirect.github.com/prometheus/common/pull/649">prometheus/common#649</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/prometheus/common/compare/v0.54.0...v0.55.0">https://github.com/prometheus/common/compare/v0.54.0...v0.55.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/prometheus/common/commit/0c7b585c7da330aae136aaa874cb4f89f5b3e5d9"><code>0c7b585</code></a>
Merge pull request <a
href="https://redirect.github.com/prometheus/common/issues/649">#649</a>
from rajagopalanand/13364</li>
<li><a
href="https://github.com/prometheus/common/commit/804fbbe9d6bcca828ac14d7b5dfa204de880c22e"><code>804fbbe</code></a>
Update common Prometheus files (<a
href="https://redirect.github.com/prometheus/common/issues/660">#660</a>)</li>
<li><a
href="https://github.com/prometheus/common/commit/3f20456b01f7c7816064350d02e7f68ad011576d"><code>3f20456</code></a>
Bump golang.org/x/net from 0.25.0 to 0.26.0 (<a
href="https://redirect.github.com/prometheus/common/issues/657">#657</a>)</li>
<li><a
href="https://github.com/prometheus/common/commit/e31eeaaced72e694bc8be87a6d1a09c21f8e4635"><code>e31eeaa</code></a>
Bump google.golang.org/protobuf from 1.34.1 to 1.34.2 (<a
href="https://redirect.github.com/prometheus/common/issues/658">#658</a>)</li>
<li><a
href="https://github.com/prometheus/common/commit/3236a12e2e6cc0592985c2851d8e53b30f03e94c"><code>3236a12</code></a>
Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0 (<a
href="https://redirect.github.com/prometheus/common/issues/656">#656</a>)</li>
<li><a
href="https://github.com/prometheus/common/commit/1cfb464a28c5fefa56beec1b48ccf0e41f4cb347"><code>1cfb464</code></a>
Bump github.com/aws/aws-sdk-go from 1.53.14 to 1.54.7 in /sigv4 (<a
href="https://redirect.github.com/prometheus/common/issues/659">#659</a>)</li>
<li><a
href="https://github.com/prometheus/common/commit/ab322ea2c291549d457c23476304ed16a4d814a3"><code>ab322ea</code></a>
chore: add HumanizeTimestamp; make ConvertToFloat exportable (<a
href="https://redirect.github.com/prometheus/common/issues/654">#654</a>)</li>
<li><a
href="https://github.com/prometheus/common/commit/04635d2962f9f3232a2cf2cb5616b72a466d78d7"><code>04635d2</code></a>
Merge pull request <a
href="https://redirect.github.com/prometheus/common/issues/655">#655</a>
from yeya24/change-omit-empty</li>
<li><a
href="https://github.com/prometheus/common/commit/c4974e5a1af10e6cfa1b3b93f4a0ab350c9647fa"><code>c4974e5</code></a>
fix test</li>
<li><a
href="https://github.com/prometheus/common/commit/43f0db5d12a3168b4acb3e0fd1add422b00a6758"><code>43f0db5</code></a>
set http_headers to be omit empty</li>
<li>Additional commits viewable in <a
href="https://github.com/prometheus/common/compare/v0.54.0...v0.55.0">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/prometheus/common&package-manager=go_modules&previous-version=0.54.0&new-version=0.55.0)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

deps: bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.56.1 to 1.57.0 (#511)

Bumps
[github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2)
from 1.56.1 to 1.57.0.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/7c25c211744bdcff47a7203a7a894b1241f9da50"><code>7c25c21</code></a>
Release 2024-06-26</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/b374423feaf0b04f01c7624b10915871e589b8a1"><code>b374423</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/923f54ea6016e1c70ad45ba0854e7361a72c3ba6"><code>923f54e</code></a>
Update API model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/5f3bdfcf190150f62a7a07a03bc32d9c58a68f2e"><code>5f3bdfc</code></a>
track changes for string_array endpoint parameters (<a
href="https://redirect.github.com/aws/aws-sdk-go-v2/issues/2699">#2699</a>)</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/2b4498c633741e24ff4930313610096601dc4036"><code>2b4498c</code></a>
Release 2024-06-25</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/332d372bb946f0d50cae58f9401b9c1244e4b818"><code>332d372</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/9397b8d8c05eb1528910ba81881797e7c0e53d17"><code>9397b8d</code></a>
Update API model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/674e1e4412ce44325902125c935ce124d0bfaf4f"><code>674e1e4</code></a>
Release 2024-06-24</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/406eeb4367bab3ac49b75fbd2d842186e961f4f0"><code>406eeb4</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/17bd894f3c3842d21d5963bc23213397557c3105"><code>17bd894</code></a>
Update endpoints model</li>
<li>Additional commits viewable in <a
href="https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.56.1...service/s3/v1.57.0">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-sdk-go-v2/service/s3&package-manager=go_modules&previous-version=1.56.1&new-version=1.57.0)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

deps: bump github.com/aws/aws-sdk-go-v2/config from 1.27.21 to 1.27.22 (#510)

Bumps
[github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2)
from 1.27.21 to 1.27.22.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/7c25c211744bdcff47a7203a7a894b1241f9da50"><code>7c25c21</code></a>
Release 2024-06-26</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/b374423feaf0b04f01c7624b10915871e589b8a1"><code>b374423</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/923f54ea6016e1c70ad45ba0854e7361a72c3ba6"><code>923f54e</code></a>
Update API model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/5f3bdfcf190150f62a7a07a03bc32d9c58a68f2e"><code>5f3bdfc</code></a>
track changes for string_array endpoint parameters (<a
href="https://redirect.github.com/aws/aws-sdk-go-v2/issues/2699">#2699</a>)</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/2b4498c633741e24ff4930313610096601dc4036"><code>2b4498c</code></a>
Release 2024-06-25</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/332d372bb946f0d50cae58f9401b9c1244e4b818"><code>332d372</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/9397b8d8c05eb1528910ba81881797e7c0e53d17"><code>9397b8d</code></a>
Update API model</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/674e1e4412ce44325902125c935ce124d0bfaf4f"><code>674e1e4</code></a>
Release 2024-06-24</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/406eeb4367bab3ac49b75fbd2d842186e961f4f0"><code>406eeb4</code></a>
Regenerated Clients</li>
<li><a
href="https://github.com/aws/aws-sdk-go-v2/commit/17bd894f3c3842d21d5963bc23213397557c3105"><code>17bd894</code></a>
Update endpoints model</li>
<li>Additional commits viewable in <a
href="https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.21...config/v1.27.22">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/aws/aws-sdk-go-v2/config&package-manager=go_modules&previous-version=1.27.21&new-version=1.27.22)](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)

</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

chore: update krew release bot condition (#509)

Update condition so this will only run in owner's repo

If this pull request is related to any issue, please mention it here.
Additionally, make sure that the issue is assigned to you before
submitting this pull request.

- [ ] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [ ] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [ ] I have correctly attributed the author(s) of the code.
- [ ] I have tested the changes locally.
- [ ] I have followed the project's style guidelines.
- [ ] I have updated the documentation, if necessary.
- [ ] I have added tests, if applicable.

Please add any relevant screenshots or GIFs to showcase the changes
made.

Add any additional notes or context about the pull request here.

---

Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.

feat: Add support for Hubble control plane in Retina agent (#432)

This PR adds support for Hubble control plane in Retina agent. This is
being done in the most backward compatible way possible.

I am adding a new subcommand called `hubble-control-plane` which will
start Hubble instead of existing control plane.

```
$  ./retina -h                                                                                                                                 ✔  took 5s 
Start Retina Agent

Usage:
  retina-agent [flags]
  retina-agent [command]

Available Commands:
  completion           Generate the autocompletion script for the specified shell
  help                 Help about any command
  hubble-control-plane Start Hubble control plane

Flags:
      --config string                      config file (default "/retina/config/config.yaml")
      --health-probe-bind-address string   The address the probe endpoint binds to. (default ":18081")
  -h, --help                               help for retina-agent
      --leader-elect                       Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.
      --metrics-bind-address string        The address the metric endpoint binds to. (default ":18080")

Use "retina-agent [command] --help" for more information about a command.
$
$
$  ./retina                                                                                                                                                ✔
Starting Retina Agent
starting Retina daemon with legacy control plane
...
$
$
$ ./retina hubble-control-plane -h
Start Hubble control plane

Usage:
  retina-agent hubble-control-plane [flags]
  retina-agent hubble-control-plane [command]

Available Commands:
  hive        Inspect the hive

Flags:
      --cluster-name string                        name of the cluster (default "default")
...
$
$
$ ./retina hubble-control-plane --config-dir .
ts=2024-06-13T18:20:47.888Z level=info caller=hubble/daemon_main.go:276 msg="Traces telemetry initialized with zapai" version= appInsightsID=
time="2024-06-13T18:20:47Z" level=info msg=Invoked duration="483.869µs" function="pprof.init.func1 (pkg/pprof/cell.go:49)" subsys=hive
time="2024-06-13T18:20:47Z" level=info msg=Invoked duration="77.011µs" function="gops.registerGopsHooks (pkg/gops/cell.go:38)" subsys=hive
time="2024-06-13T18:20:47Z" level=info msg=Invoked duration=10.503879ms function="github.com/microsoft/retina/cmd/hubble.init.func3 (cmd/hubble/daemon.go:68)" subsys=hive
time="2024-06-13T18:20:47Z" level=info msg="&{{ 0}  [] 0s false true false false false false}" subsys=agent-config
time="2024-06-13T18:20:47Z" level=info msg="configuring telemetry" app-insights-id= retina-version= subsys=telemetry
time="2024-06-13T18:20:47Z" level=info msg="telemetry disabled" subsys=telemetry
ts=2024-06-13T18:20:47.902Z level=info caller=metrics/metrics.go:169 msg="Metrics initialized"
...
```

- Adopting
[Hive](https://docs.cilium.io/en/latest/contributing/development/hive/)
for dependency injection
- Moving to [Cobra](https://github.com/spf13/cobra) for CLI
- `controller/main.go` now is just the starting point of the command
- `retina/cmd` now houses `rootCmd` (starts retina as is) and `hubble`
(starts Hubble control plane)
- In terms of Dockerfiles, packaging `Hubble` cli in agent image
- Adding new YAML files to install Retina with Hubble
- Moved the current YAML files under `deploy/legacy`
- Fix the links in `doc`
- Update cilium version to pull in commits from upstream needed for
starting Hubble
- Update `init` to add a step that creates Cilium dirs (This will happen
for current control plane as well, but it consumes no resources, just
creates an empty directory)
- All new packages under `pkg` contains business logic required to run
Hubble (node reconciler, Hubble control plane, IPCache, etc.)
- Minor changes to `test/e2e` to support change to deployment directory
(`deploy` -> `deploy/legacy`)

https://github.com/microsoft/retina/issues/418

- [x] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [x] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [x] I have correctly attributed the author(s) of the code.
- [x] I have tested the changes locally.
- [x] I have followed the project's style guidelines.
- [x] I have updated the documentation, if necessary.
- [x] I have added tests, if applicable.

![image](https://github.com/microsoft/retina/assets/18243968/8e21e73c-e34e-4a8a-b7a3-7ede9c6cdf9a)

![image](https://github.com/microsoft/retina/assets/18243968/0ab02857-ca30-4afa-bad8-eec5755c6358)
---

Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.

Signed-off-by: Anubhab Majumdar <[email protected]>

merge operator changes and update

deps: bump github.com/golang/mock from 1.1.1 to 1.6.0 (#521)

Bumps [github.com/golang/mock](https://github.com/golang/mock) from
1.1.1 to 1.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/golang/mock/releases">github.com/golang/mock's
releases</a>.</em></p>
<blockquote>
<h2>v1.6.0</h2>
<h2>Changelog</h2>
<p>317c030 Best effort guesses for output package path (<a
href="https://redirect.github.com/golang/mock/issues/547">#547</a>)
c59ba11 add ARM to support apple M1 chip to releaser (<a
href="https://redirect.github.com/golang/mock/issues/562">#562</a>)
58935d8 add a basic CONTRIBUTING.md (<a
href="https://redirect.github.com/golang/mock/issues/535">#535</a>)
a5582fc add docs on 1.16 install and adding to PATH (<a
href="https://redirect.github.com/golang/mock/issues/534">#534</a>)
0cd3aaf add flags documentation (<a
href="https://redirect.github.com/golang/mock/issues/539">#539</a>)
64b0b80 add notes and error helper for vendor+reflect error (<a
href="https://redirect.github.com/golang/mock/issues/567">#567</a>)
e303461 add type information to error messages (<a
href="https://redirect.github.com/golang/mock/issues/559">#559</a>)
0cdccf5 feat add InAnyOrder matcher (<a
href="https://redirect.github.com/golang/mock/issues/546">#546</a>)
82ce4a7 feat validate Do &amp; DoReturn args (<a
href="https://redirect.github.com/golang/mock/issues/558">#558</a>)
93308c3 fix broken badge (<a
href="https://redirect.github.com/golang/mock/issues/525">#525</a>)
9336b7e fix error message in parse.go (<a
href="https://redirect.github.com/golang/mock/issues/540">#540</a>)
ab03293 fix ill-formatted message with fmt-verbs like %s (<a
href="https://redirect.github.com/golang/mock/issues/564">#564</a>)
bb5fd5e fix linter errors (<a
href="https://redirect.github.com/golang/mock/issues/552">#552</a>)
aba2ff9 fix parse array with the external const correctly (<a
href="https://redirect.github.com/golang/mock/issues/569">#569</a>)
6ff1070 fix parse arrays with const length correctly (<a
href="https://redirect.github.com/golang/mock/issues/520">#520</a>)
7f5f64d fixup some docs and templates (<a
href="https://redirect.github.com/golang/mock/issues/524">#524</a>)
7078515 refactor go:generate lines so they are consistently placed (<a
href="https://redirect.github.com/golang/mock/issues/527">#527</a>)
7105dde refactor …
  • Loading branch information
jimassa and dependabot[bot] committed Jul 9, 2024
1 parent f385d47 commit f72a15d
Show file tree
Hide file tree
Showing 91 changed files with 4,190 additions and 1,460 deletions.
1 change: 1 addition & 0 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
if: github.repository_owner == 'microsoft'
uses: rajatjindal/[email protected]
2 changes: 1 addition & 1 deletion .github/workflows/release-charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
push-retina-charts:
name: Publish Retina Helm Charts
runs-on: ubuntu-latest

if: github.ref_type == 'tag'
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
matrix:
platform: ["windows"]
arch: ["amd64"]
year: ["2019", "2022"]

steps:
- name: Checkout code
Expand Down Expand Up @@ -93,16 +94,15 @@ jobs:
make retina-image-win \
IMAGE_NAMESPACE=${{ github.repository }} \
PLATFORM=${{ matrix.platform }}/${{ matrix.arch }} \
WINDOWS_YEARS=${{ matrix.year }} \
BUILDX_ACTION=--push
- name: Sign container image
run: |
for year in 2019 2022; do
for image in retina-agent ; do
IMAGE_PATH="ghcr.io/${{ github.repository }}/$image:$TAG-windows-ltsc$year-${{ matrix.arch }}"
DIGEST=$(jq -r '.["containerimage.digest"]' image-metadata-$image-$TAG-windows-ltsc$year-${{ matrix.arch }}.json)
cosign sign --yes ${IMAGE_PATH}@${DIGEST}
done
for image in retina-agent ; do
IMAGE_PATH="ghcr.io/${{ github.repository }}/$image:$TAG-windows-ltsc${{ matrix.year }}-${{ matrix.arch }}"
DIGEST=$(jq -r '.["containerimage.digest"]' image-metadata-$image-$TAG-windows-ltsc${{ matrix.year }}-${{ matrix.arch }}.json)
cosign sign --yes ${IMAGE_PATH}@${DIGEST}
done
operator-images:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
echo "TAG=$(make version)" >> $GITHUB_ENV
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@7c2007bcb556501da015201bcba5aa14069b74e2
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
with:
image-ref: "ghcr.io/${{ github.repository }}/${{ matrix.image }}:${{ env.TAG }}"
format: "template"
Expand Down
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ linters:
disable:
- maligned
- scopelint
- gci
enable:
- exportloopref
- goconst
Expand Down
53 changes: 52 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ RMDIR := rm -rf
## Globals
GIT_CURRENT_BRANCH_NAME := $(shell git rev-parse --abbrev-ref HEAD)

CERT_FILES := tls.crt:tls-client-cert-file \
tls.key:tls-client-key-file \
ca.crt:tls-ca-cert-files

REPO_ROOT = $(shell git rev-parse --show-toplevel)
ifndef TAG
TAG ?= $(shell git describe --tags --always)
Expand Down Expand Up @@ -34,6 +38,8 @@ PLATFORM ?= $(OS)/$(ARCH)
PLATFORMS ?= linux/amd64 linux/arm64 windows/amd64
OS_VERSION ?= ltsc2019

HUBBLE_VERSION ?= v0.13.0

CONTAINER_BUILDER ?= docker
CONTAINER_RUNTIME ?= docker
YEAR ?= 2022
Expand All @@ -47,6 +53,12 @@ ALL_ARCH.windows = amd64
ENABLE_TLS ?= true
CERT_DIR := $(REPO_ROOT)/.certs

#######
# TLS #
#######
ENABLE_TLS ?= true
CERT_DIR := $(REPO_ROOT)/.certs

# TAG is OS and platform agonstic, which can be used for binary version and image manifest tag,
# while RETINA_PLATFORM_TAG is platform specific, which can be used for image built for specific platforms.
RETINA_PLATFORM_TAG ?= $(TAG)-$(subst /,-,$(PLATFORM))
Expand Down Expand Up @@ -242,6 +254,7 @@ container-docker: buildx # util target to build container images using docker bu
--build-arg GOARCH=$$arch \
--build-arg GOOS=$$os \
--build-arg OS_VERSION=$(OS_VERSION) \
--build-arg HUBBLE_VERSION=$(HUBBLE_VERSION) \
--build-arg VERSION=$(VERSION) $(EXTRA_BUILD_ARGS) \
--target=$(TARGET) \
-t $(IMAGE_REGISTRY)/$(IMAGE):$(TAG) \
Expand Down Expand Up @@ -382,6 +395,7 @@ HELM_IMAGE_TAG ?= v0.0.2

# basic/node-level mode
helm-install: manifests
helm upgrade --install retina ./deploy/legacy/manifests/controller/helm/retina/ \
helm upgrade --install retina ./deploy/legacy/manifests/controller/helm/retina/ \
--namespace kube-system \
--set image.repository=$(IMAGE_REGISTRY)/$(RETINA_IMAGE) \
Expand All @@ -395,6 +409,7 @@ helm-install: manifests
--set enabledPlugin_linux="\[dropreason\,packetforward\,linuxutil\,dns\]"

helm-install-with-operator: manifests
helm upgrade --install retina ./deploy/legacy/manifests/controller/helm/retina/ \
helm upgrade --install retina ./deploy/legacy/manifests/controller/helm/retina/ \
--namespace kube-system \
--set image.repository=$(IMAGE_REGISTRY)/$(RETINA_IMAGE) \
Expand All @@ -412,6 +427,7 @@ helm-install-with-operator: manifests

# advanced/pod-level mode with scale limitations, where metrics are aggregated by source and destination Pod
helm-install-advanced-remote-context: manifests
helm upgrade --install retina ./deploy/legacy/manifests/controller/helm/retina/ \
helm upgrade --install retina ./deploy/legacy/manifests/controller/helm/retina/ \
--namespace kube-system \
--set image.repository=$(IMAGE_REGISTRY)/$(RETINA_IMAGE) \
Expand All @@ -431,6 +447,7 @@ helm-install-advanced-remote-context: manifests

# advanced/pod-level mode designed for scale, where metrics are aggregated by "local" Pod (source for outgoing traffic, destination for incoming traffic)
helm-install-advanced-local-context: manifests
helm upgrade --install retina ./deploy/legacy/manifests/controller/helm/retina/ \
helm upgrade --install retina ./deploy/legacy/manifests/controller/helm/retina/ \
--namespace kube-system \
--set image.repository=$(IMAGE_REGISTRY)/$(RETINA_IMAGE) \
Expand Down Expand Up @@ -468,9 +485,37 @@ helm-install-hubble:
--set hubble.tls.auto.certValidityDuration=1 \
--set hubble.tls.auto.schedule="*/10 * * * *"

helm-install-without-tls: clean-certs
$(MAKE) helm-install-hubble ENABLE_TLS=false

helm-uninstall:
helm uninstall retina -n kube-system

.PHONY: get-certs
get-certs:
mkdir -p $(CERT_DIR)
$(foreach kv,$(CERT_FILES),\
$(eval FILE=$(word 1,$(subst :, ,$(kv)))) \
$(eval CONFIG_KEY=$(word 2,$(subst :, ,$(kv)))) \
kubectl get secret $(TLS_SECRET_NAME) \
-n kube-system \
-o jsonpath="{.data['$(call escape_dot,$(FILE))']}" \
| base64 -d > $(CERT_DIR)/$(FILE);\
hubble config set $(CONFIG_KEY) $(CERT_DIR)/$(FILE);\
)
hubble config set tls true
hubble config set tls-server-name instance.hubble-relay.cilium.io

.PHONY: clean-certs
clean-certs:
rm -rf $(CERT_DIR)
$(foreach kv,$(CERT_FILES),\
$(eval CONFIG_KEY=$(word 2,$(subst :, ,$(kv)))) \
hubble config reset $(CONFIG_KEY);\
)
hubble config set tls false
hubble config reset tls-server-name

.PHONY: docs
docs:
echo $(PWD)
Expand All @@ -489,6 +534,12 @@ quick-build:
quick-deploy:
$(MAKE) helm-install-advanced-local-context HELM_IMAGE_TAG=$(TAG)-linux-amd64

.PHONY: quick-deploy-hubble
quick-deploy-hubble:
$(MAKE) helm-uninstall || true
$(MAKE) helm-install-without-tls HELM_IMAGE_TAG=$(TAG)-linux-amd64

.PHONY: simplify-dashboards
simplify-dashboards:
cd deploy/legacy/grafana/dashboards/ && go test . -tags=dashboard,simplifydashboard -v
cd deploy/legacy/grafana/dashboards && go test . -tags=dashboard,simplifydashboard -v && cd $(REPO_ROOT)

201 changes: 201 additions & 0 deletions cmd/hubble/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} Authors of Cilium and Retina

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading

0 comments on commit f72a15d

Please sign in to comment.