Go-Utils is a library containing a collection of Golang utilities

Go-Utils

Go-Utils is a library containing a collection of Golang utilities

Features

  • JSON-RPC client allowing to connect to any JSON-RPC server over HTTP. It is built using go-autorest library, it allows to easily adapt the client to specific server's configuration without having to modify the primary implementation. For example it allows to add authorization, circuit breakers, request limiters, custom request headers, etc.

  • Ethereum 1.0 client allowing to connect to any Ethereum node

    Features Available
    Connect to node over HTTP Yes
    Connect to node over WebSocket Not yet
    Use go context for timeout and cancellation Yes
    Use core go-ethereum types Yes
    Compatible with abigen generated Smart-Contract bindings Yes
    Provides tracing for requests Not Yet
  • Ethereum 2.0 client allowing to connect to any Ethereum 2.0 beacon chain node (compatible with Prysm, Teku, Lighthouse)

    Features Available
    Connect to beacon node over HTTP Yes
    Use go context for timeout and cancellation Yes
    Use core protolambda/zrnt types Yes
    Provides tracing for requests Not Yet
  • A collection of Ethereum 1.0 & 2.0 flags compatible with Cobra library to build CLI applications that need to interact with blockchain nodes

  • Helpers to manipulate data into CSV files

Comments
  • Bump gorm.io/gorm from 1.23.9 to 1.24.2

    Bump gorm.io/gorm from 1.23.9 to 1.24.2

    Bumps gorm.io/gorm from 1.23.9 to 1.24.2.

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/gorm from 1.23.9 to 1.24.1

    Bump gorm.io/gorm from 1.23.9 to 1.24.1

    Bumps gorm.io/gorm from 1.23.9 to 1.24.1.

    Commits
    • b2f4252 fix(Joins): args with select and omit (#5790)
    • 9d82aa5 test: invalid cache plan with prepare stmt (#5778)
    • 5dd2bb4 feat(PreparedStmtDB): support reset (#5782)
    • 3f20a54 Support use clause.Interface as query params
    • 62593cf add test: TestAutoMigrateInt8PG: shouldn't execute ALTER COLUMN TYPE smallint...
    • a0f4d3f Save as empty string for not nullable nil field serialized into json
    • ab5f80a Save as NULL for nil object serialized into json
    • 186e8a9 fix: association without pks (#5779)
    • 2a788fb Upgrade tests go.mod
    • aa4312e Don't display any GORM related package path as source
    • Additional commits viewable in compare view

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/driver/postgres from 1.3.9 to 1.4.5

    Bump gorm.io/driver/postgres from 1.3.9 to 1.4.5

    Bumps gorm.io/driver/postgres from 1.3.9 to 1.4.5.

    Commits
    • 35e3f98 fix: reset prepared stmts when table changed (#138)
    • e6551c7 Fix autoincrement check, close #88
    • d3403e4 Allow disable returning from dialector config, close #88
    • 0d0e3a2 Fix possible panic when comment not quoted, close #134
    • af97cb4 Fix migrate columns with default value
    • a4858c5 add USING ?::? to AlterColumn (#105)
    • 096c357 Only enable simple protocal for pgx
    • e6ed2df AutoMigrate fails with sql: expected 0 arguments, got 1 (#131)
    • 6145461 feat: support type alias (#133)
    • 9e7a2bb fix: use oid replace relfilenode in check column type (#129)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump github.com/hashicorp/vault/api from 1.7.2 to 1.8.1

    Bump github.com/hashicorp/vault/api from 1.7.2 to 1.8.1

    Bumps github.com/hashicorp/vault/api from 1.7.2 to 1.8.1.

    Release notes

    Sourced from github.com/hashicorp/vault/api's releases.

    v1.8.1

    1.8.1

    August 5th, 2021

    CHANGES:

    • go: Update go version to 1.16.6 [GH-12245]

    IMPROVEMENTS:

    • serviceregistration: add external-source: "vault" metadata value for Consul registration. [GH-12163]

    BUG FIXES:

    • auth/aws: Remove warning stating AWS Token TTL will be capped by the Default Lease TTL. [GH-12026]
    • auth/jwt: Fixes OIDC auth from the Vault UI when using form_post as the oidc_response_mode. [GH-12258]
    • core (enterprise): Disallow autogenerated licenses to be used in diagnose even when config is specified
    • core: fix byte printing for diagnose disk checks [GH-12229]
    • identity: do not allow a role's token_ttl to be longer than the signing key's verification_ttl [GH-12151]

    v1.8.0

    1.8.0

    July 28th, 2021

    CHANGES:

    • agent: Errors in the template engine will no longer cause agent to exit unless explicitly defined to do so. A new configuration parameter, exit_on_retry_failure, within the new top-level stanza, template_config, can be set to true in order to cause agent to exit. Note that for agent to exit if template.error_on_missing_key is set to true, exit_on_retry_failure must be also set to true. Otherwise, the template engine will log an error but then restart its internal runner. [GH-11775]
    • agent: Update to use IAM Service Account Credentials endpoint for signing JWTs when using GCP Auto-Auth method [GH-11473]
    • core (enterprise): License/EULA changes that ensure the presence of a valid HashiCorp license to start Vault. More information is available in the Vault License FAQ

    FEATURES:

    • GCP Secrets Engine Static Accounts: Adds ability to use existing service accounts for generation of service account keys and access tokens. [GH-12023]
    • Key Management Secrets Engine (Enterprise): Adds general availability for distributing and managing keys in AWS KMS. [GH-11958]
    • License Autoloading (Enterprise): Licenses may now be automatically loaded from the environment or disk.
    • MySQL Database UI: The UI now supports adding and editing MySQL connections in the database secret engine [GH-11532]
    • Vault Diagnose: A new vault operator command to detect common issues with vault server setups.

    IMPROVEMENTS:

    • agent/template: Added static_secret_render_interval to specify how often to fetch non-leased secrets [GH-11934]

    ... (truncated)

    Changelog

    Sourced from github.com/hashicorp/vault/api's changelog.

    1.8.12

    June 10, 2022

    BUG FIXES:

    • agent: Redact auto auth token from renew endpoints [GH-15380]
    • core: Prevent changing file permissions of audit logs when mode 0000 is used. [GH-15759]
    • core: fixed systemd reloading notification [GH-15041]
    • core: pre-calculate namespace specific paths when tainting a route during postUnseal [GH-15067]
    • storage/raft (enterprise): Auto-snapshot configuration now forbids slashes in file prefixes for all types, and "/" in path prefix for local storage type. Strip leading prefix in path prefix for AWS. Improve error handling/reporting.
    • transform (enterprise): Fix non-overridable column default value causing tokenization tokens to expire prematurely when using the MySQL storage backend.

    1.8.11

    April 29, 2022

    BUG FIXES:

    • raft: fix Raft TLS key rotation panic that occurs if active key is more than 24 hours old [GH-15156]
    • sdk: Fix OpenApi spec generator to properly convert TypeInt64 to OAS supported int64 [GH-15104]

    1.8.10

    April 22, 2022

    CHANGES:

    • core: A request that fails path validation due to relative path check will now be responded to with a 400 rather than 500. [GH-14328]
    • core: Bump Go version to 1.16.15. [GH-go-ver-1810]

    IMPROVEMENTS:

    • auth/ldap: Add username_as_alias configurable to change how aliases are named [GH-14324]
    • core: Systemd unit file included with the Linux packages now sets the service type to notify. [GH-14385]
    • sentinel (enterprise): Upgrade sentinel to v0.18.5 to avoid potential naming collisions in the remote installer

    BUG FIXES:

    • api/sys/raft: Update RaftSnapshotRestore to use net/http client allowing bodies larger than allocated memory to be streamed [GH-14269]
    • auth/approle: Add maximum length for input values that result in SHA56 HMAC calculation [GH-14746]
    • cassandra: Update gocql Cassandra client to fix "no hosts available in the pool" error [GH-14973]
    • cli: Fix panic caused by parsing key=value fields whose value is a single backslash [GH-14523]
    • core: Fix panic caused by parsing JSON integers for fields defined as comma-delimited integers [GH-15072]
    • core: Fix panic caused by parsing JSON integers for fields defined as comma-delimited strings [GH-14522]
    • core: Fix panic caused by parsing policies with empty slice values. [GH-14501]
    • core: Fix panic for help request URL paths without /v1/ prefix [GH-14704]
    • core: fixing excessive unix file permissions [GH-14791]
    • core: fixing excessive unix file permissions on dir, files and archive created by vault debug command [GH-14846]
    • core: report unused or redundant keys in server configuration [GH-14752]
    • core: time.After() used in a select statement can lead to memory leak [GH-14814]
    • metrics/autosnapshots (enterprise) : Fix bug that could cause vault.autosnapshots.save.errors to not be incremented when there is an

    ... (truncated)

    Commits
    • 4b0264f Updates vault-plugin-auth-jwt to v0.10.1 (#12258)
    • 21ecd7d Backport 1.8.1: identity: allow creating a role with a non-existent key (#122...
    • d4269f3 [VAULT-1986] Cap AWS Token TTL based on Default Lease TTL (#12026) (#12252)
    • 062842a Updating SDK version for 1.8.1 (#12247)
    • bd35cc7 Updating go version to 1.16.6 for security fix (#12245) (#12249)
    • c48b322 Forward cert signing requests to the primary on perf secondaries as well as p...
    • 436d893 serviceregistration: add external-source meta value (#12163) (#12241)
    • 7f2cfd0 Backport: Don't use autogenerated licenses in diagnose when config is specifi...
    • 6748c7d backport disk usage print fixes (#12232)
    • f882564 identity: do not allow a role's token_ttl to be longer than verification_ttl ...
    • Additional commits viewable in compare view

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump github.com/spf13/cobra from 1.5.0 to 1.6.0

    Bump github.com/spf13/cobra from 1.5.0 to 1.6.0

    Bumps github.com/spf13/cobra from 1.5.0 to 1.6.0.

    Release notes

    Sourced from github.com/spf13/cobra's releases.

    v1.6.0

    Summer 2022 Release

    Some exciting changes make their way to Cobra! Command completions continue to get better and better (including adding --help and --version automatic flags to the completions list). Grouping is now possible in your help output as well! And you can now use the OnFinalize method to cleanup things when all "work" is done. Checkout the full changelog below:


    Features 🌠

    Deprecation 👎🏼

    • ExactValidArgs is deprecated (but not being removed entirely). This is abit nuanced, so checkout #1643 for further information and the updated user_guide.md on how this may affect you (and how you can take advantage of the correct behavior in the validators): @​umarcor #1643

    Bug fixes 🐛

    Dependencies 🗳️

    Testing 🤔

    Docs ✏️

    Misc 💭

    Note: Per #1804, we will be moving away from "seasonal" releases and doing more generic point release targets. Continue to track the milestones and issues in the spf13/cobra GitHub repository for more information!

    Great work everyone! Cobra would never be possible without your contributions! 🐍

    ... (truncated)

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/driver/postgres from 1.3.9 to 1.4.4

    Bump gorm.io/driver/postgres from 1.3.9 to 1.4.4

    Bumps gorm.io/driver/postgres from 1.3.9 to 1.4.4.

    Commits
    • e6551c7 Fix autoincrement check, close #88
    • d3403e4 Allow disable returning from dialector config, close #88
    • 0d0e3a2 Fix possible panic when comment not quoted, close #134
    • af97cb4 Fix migrate columns with default value
    • a4858c5 add USING ?::? to AlterColumn (#105)
    • 096c357 Only enable simple protocal for pgx
    • e6ed2df AutoMigrate fails with sql: expected 0 arguments, got 1 (#131)
    • 6145461 feat: support type alias (#133)
    • 9e7a2bb fix: use oid replace relfilenode in check column type (#129)
    • 56e9b94 fix cockroachdb index name inspection (#122)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/gorm from 1.23.9 to 1.24.0

    Bump gorm.io/gorm from 1.23.9 to 1.24.0

    Bumps gorm.io/gorm from 1.23.9 to 1.24.0.

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/driver/postgres from 1.3.9 to 1.4.1

    Bump gorm.io/driver/postgres from 1.3.9 to 1.4.1

    Bumps gorm.io/driver/postgres from 1.3.9 to 1.4.1.

    Commits
    • 096c357 Only enable simple protocal for pgx
    • e6ed2df AutoMigrate fails with sql: expected 0 arguments, got 1 (#131)
    • 6145461 feat: support type alias (#133)
    • 9e7a2bb fix: use oid replace relfilenode in check column type (#129)
    • 56e9b94 fix cockroachdb index name inspection (#122)
    • 3ffd6ab Bump github.com/jackc/pgx/v4 from 4.17.1 to 4.17.2 (#128)
    • eab8f5c Bump github.com/jackc/pgx/v4 from 4.16.1 to 4.17.1 (#126)
    • See full diff in compare view

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/gorm from 1.23.9 to 1.23.10

    Bump gorm.io/gorm from 1.23.9 to 1.23.10

    Bumps gorm.io/gorm from 1.23.9 to 1.23.10.

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump github.com/hashicorp/vault/api from 1.7.2 to 1.8.0

    Bump github.com/hashicorp/vault/api from 1.7.2 to 1.8.0

    Bumps github.com/hashicorp/vault/api from 1.7.2 to 1.8.0.

    Release notes

    Sourced from github.com/hashicorp/vault/api's releases.

    v1.8.0

    1.8.0

    July 28th, 2021

    CHANGES:

    • agent: Errors in the template engine will no longer cause agent to exit unless explicitly defined to do so. A new configuration parameter, exit_on_retry_failure, within the new top-level stanza, template_config, can be set to true in order to cause agent to exit. Note that for agent to exit if template.error_on_missing_key is set to true, exit_on_retry_failure must be also set to true. Otherwise, the template engine will log an error but then restart its internal runner. [GH-11775]
    • agent: Update to use IAM Service Account Credentials endpoint for signing JWTs when using GCP Auto-Auth method [GH-11473]
    • core (enterprise): License/EULA changes that ensure the presence of a valid HashiCorp license to start Vault. More information is available in the Vault License FAQ

    FEATURES:

    • GCP Secrets Engine Static Accounts: Adds ability to use existing service accounts for generation of service account keys and access tokens. [GH-12023]
    • Key Management Secrets Engine (Enterprise): Adds general availability for distributing and managing keys in AWS KMS. [GH-11958]
    • License Autoloading (Enterprise): Licenses may now be automatically loaded from the environment or disk.
    • MySQL Database UI: The UI now supports adding and editing MySQL connections in the database secret engine [GH-11532]
    • Vault Diagnose: A new vault operator command to detect common issues with vault server setups.

    IMPROVEMENTS:

    • agent/template: Added static_secret_render_interval to specify how often to fetch non-leased secrets [GH-11934]
    • agent: Allow Agent auto auth to read symlinked JWT files [GH-11502]
    • api: Allow a leveled logger to be provided to api.Client through SetLogger. [GH-11696]
    • auth/aws: Underlying error included in validation failure message. [GH-11638]
    • cli/api: Add lease lookup command [GH-11129]
    • core: Add prefix_filter to telemetry config [GH-12025]
    • core: Add a darwin/arm64 binary release supporting the Apple M1 CPU [GH-12071]
    • core: Add a small (<1s) exponential backoff to failed TCP listener Accept failures. [GH-11588]
    • core (enterprise): Add controlled capabilities to control group policy stanza
    • core: Add metrics for standby node forwarding. [GH-11366]
    • core: Add metrics to report if a node is a perf standby, if a node is a dr secondary or primary, and if a node is a perf secondary or primary. [GH-11472]
    • core: Send notifications to systemd on start, stop, and configuration reload. [GH-11517]
    • core: add irrevocable lease list and count apis [GH-11607]
    • core: allow arbitrary length stack traces upon receiving SIGUSR2 (was 32MB) [GH-11364]
    • db/cassandra: Added tls_server_name to specify server name for TLS validation [GH-11820]
    • go: Update to Go 1.16.5 [GH-11802]
    • raft: Improve raft batch size selection [GH-11907]
    • raft: change freelist type to map and set nofreelistsync to true [GH-11895]
    • replication: Delay evaluation of X-Vault-Index headers until merkle sync completes.
    • secrets/rabbitmq: Add ability to customize dynamic usernames [GH-11899]
    • secrets/ad: Add rotate-role endpoint to allow rotations of service accounts. [GH-11942]

    ... (truncated)

    Changelog

    Sourced from github.com/hashicorp/vault/api's changelog.

    1.8.0

    July 28th, 2021

    CHANGES:

    • agent: Errors in the template engine will no longer cause agent to exit unless explicitly defined to do so. A new configuration parameter, exit_on_retry_failure, within the new top-level stanza, template_config, can be set to true in order to cause agent to exit. Note that for agent to exit if template.error_on_missing_key is set to true, exit_on_retry_failure must be also set to true. Otherwise, the template engine will log an error but then restart its internal runner. [GH-11775]
    • agent: Update to use IAM Service Account Credentials endpoint for signing JWTs when using GCP Auto-Auth method [GH-11473]
    • core (enterprise): License/EULA changes that ensure the presence of a valid HashiCorp license to start Vault. More information is available in the Vault License FAQ

    FEATURES:

    • GCP Secrets Engine Static Accounts: Adds ability to use existing service accounts for generation of service account keys and access tokens. [GH-12023]
    • Key Management Secrets Engine (Enterprise): Adds general availability for distributing and managing keys in AWS KMS. [GH-11958]
    • License Autoloading (Enterprise): Licenses may now be automatically loaded from the environment or disk.
    • MySQL Database UI: The UI now supports adding and editing MySQL connections in the database secret engine [GH-11532]
    • Vault Diagnose: A new vault operator command to detect common issues with vault server setups.

    SECURITY:

    • storage/raft: When initializing Vault’s Integrated Storage backend, excessively broad filesystem permissions may be set for the underlying Bolt database used by Vault’s Raft implementation. This vulnerability, CVE-2021-38553, was fixed in Vault 1.8.0.
    • ui: The Vault UI erroneously cached and exposed user-viewed secrets between authenticated sessions in a single shared browser, if the browser window / tab was not refreshed or closed between logout and a subsequent login. This vulnerability, CVE-2021-38554, was fixed in Vault 1.8.0 and will be addressed in pending 1.7.4 / 1.6.6 releases.

    IMPROVEMENTS:

    • agent/template: Added static_secret_render_interval to specify how often to fetch non-leased secrets [GH-11934]
    • agent: Allow Agent auto auth to read symlinked JWT files [GH-11502]
    • api: Allow a leveled logger to be provided to api.Client through SetLogger. [GH-11696]
    • auth/aws: Underlying error included in validation failure message. [GH-11638]
    • cli/api: Add lease lookup command [GH-11129]
    • core: Add prefix_filter to telemetry config [GH-12025]
    • core: Add a darwin/arm64 binary release supporting the Apple M1 CPU [GH-12071]
    • core: Add a small (<1s) exponential backoff to failed TCP listener Accept failures. [GH-11588]
    • core (enterprise): Add controlled capabilities to control group policy stanza
    • core: Add metrics for standby node forwarding. [GH-11366]
    • core: Add metrics to report if a node is a perf standby, if a node is a dr secondary or primary, and if a node is a perf secondary or primary. [GH-11472]
    • core: Send notifications to systemd on start, stop, and configuration reload. [GH-11517]
    • core: add irrevocable lease list and count apis [GH-11607]
    • core: allow arbitrary length stack traces upon receiving SIGUSR2 (was 32MB) [GH-11364]
    • core: Improve renew/revoke performance using per-lease locks [GH-11122]
    • db/cassandra: Added tls_server_name to specify server name for TLS validation [GH-11820]
    • go: Update to Go 1.16.5 [GH-11802]

    ... (truncated)

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/driver/postgres from 1.3.9 to 1.3.10

    Bump gorm.io/driver/postgres from 1.3.9 to 1.3.10

    Bumps gorm.io/driver/postgres from 1.3.9 to 1.3.10.

    Commits
    • 9e7a2bb fix: use oid replace relfilenode in check column type (#129)
    • 56e9b94 fix cockroachdb index name inspection (#122)
    • 3ffd6ab Bump github.com/jackc/pgx/v4 from 4.17.1 to 4.17.2 (#128)
    • eab8f5c Bump github.com/jackc/pgx/v4 from 4.16.1 to 4.17.1 (#126)
    • See full diff in compare view

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/driver/postgres from 1.3.9 to 1.4.6

    Bump gorm.io/driver/postgres from 1.3.9 to 1.4.6

    Bumps gorm.io/driver/postgres from 1.3.9 to 1.4.6.

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump gorm.io/gorm from 1.23.9 to 1.24.3

    Bump gorm.io/gorm from 1.23.9 to 1.24.3

    Bumps gorm.io/gorm from 1.23.9 to 1.24.3.

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump github.com/hashicorp/vault/api from 1.7.2 to 1.8.2

    Bump github.com/hashicorp/vault/api from 1.7.2 to 1.8.2

    Bumps github.com/hashicorp/vault/api from 1.7.2 to 1.8.2.

    Release notes

    Sourced from github.com/hashicorp/vault/api's releases.

    v1.8.2

    1.8.2

    26 August 2021

    CHANGES:

    • go: Update go version to 1.16.7 [GH-12408]

    BUG FIXES:

    • auth/aws: Fixes ec2 login no longer supporting DSA signature verification [GH-12340]
    • cli: vault debug now puts newlines after every captured log line. [GH-12175]
    • database/couchbase: change default template to truncate username at 128 characters [GH-12300]
    • identity: Fix a panic on arm64 platform when doing identity I/O. [GH-12371]
    • physical/raft: Fix safeio.Rename error when restoring snapshots on windows [GH-12377]
    • plugin/snowflake: Fixed bug where plugin would crash on 32 bit systems [GH-12378]
    • sdk/database: Fix a DeleteUser error message on the gRPC client. [GH-12351]
    • secrets/gcp: Fixes a potential panic in the service account policy rollback for rolesets. [GH-12379]
    • ui: Fixed api explorer routing bug [GH-12354]
    • ui: Fixes metrics page when read on counter config not allowed [GH-12348]
    • ui: fix issue where on MaskedInput on auth methods if tab it would clear the value. [GH-12409]

    v1.8.1

    1.8.1

    August 5th, 2021

    CHANGES:

    • go: Update go version to 1.16.6 [GH-12245]

    IMPROVEMENTS:

    • serviceregistration: add external-source: "vault" metadata value for Consul registration. [GH-12163]

    BUG FIXES:

    • auth/aws: Remove warning stating AWS Token TTL will be capped by the Default Lease TTL. [GH-12026]
    • auth/jwt: Fixes OIDC auth from the Vault UI when using form_post as the oidc_response_mode. [GH-12258]
    • core (enterprise): Disallow autogenerated licenses to be used in diagnose even when config is specified
    • core: fix byte printing for diagnose disk checks [GH-12229]
    • identity: do not allow a role's token_ttl to be longer than the signing key's verification_ttl [GH-12151]

    v1.8.0

    1.8.0

    July 28th, 2021

    CHANGES:

    • agent: Errors in the template engine will no longer cause agent to exit unless explicitly defined to do so. A new configuration parameter,

    ... (truncated)

    Changelog

    Sourced from github.com/hashicorp/vault/api's changelog.

    1.8.2

    26 August 2021

    CHANGES:

    • Alpine: Docker images for Vault 1.6.6+, 1.7.4+, and 1.8.2+ are built with Alpine 3.14, due to CVE-2021-36159
    • go: Update go version to 1.16.7 [GH-12408]

    BUG FIXES:

    • auth/aws: Fixes ec2 login no longer supporting DSA signature verification [GH-12340]
    • cli: vault debug now puts newlines after every captured log line. [GH-12175]
    • database/couchbase: change default template to truncate username at 128 characters [GH-12300]
    • identity: Fix a panic on arm64 platform when doing identity I/O. [GH-12371]
    • physical/raft: Fix safeio.Rename error when restoring snapshots on windows [GH-12377]
    • plugin/snowflake: Fixed bug where plugin would crash on 32 bit systems [GH-12378]
    • sdk/database: Fix a DeleteUser error message on the gRPC client. [GH-12351]
    • secrets/gcp: Fixes a potential panic in the service account policy rollback for rolesets. [GH-12379]
    • ui: Fixed api explorer routing bug [GH-12354]
    • ui: Fixes metrics page when read on counter config not allowed [GH-12348]
    • ui: fix issue where on MaskedInput on auth methods if tab it would clear the value. [GH-12409]

    1.8.1

    August 5th, 2021

    CHANGES:

    • go: Update go version to 1.16.6 [GH-12245]

    IMPROVEMENTS:

    • serviceregistration: add external-source: "vault" metadata value for Consul registration. [GH-12163]

    BUG FIXES:

    • auth/aws: Remove warning stating AWS Token TTL will be capped by the Default Lease TTL. [GH-12026]
    • auth/jwt: Fixes OIDC auth from the Vault UI when using form_post as the oidc_response_mode. [GH-12258]
    • core (enterprise): Disallow autogenerated licenses to be used in diagnose even when config is specified
    • core: fix byte printing for diagnose disk checks [GH-12229]
    • identity: do not allow a role's token_ttl to be longer than the signing key's verification_ttl [GH-12151]

    1.8.0

    July 28th, 2021

    CHANGES:

    • agent: Errors in the template engine will no longer cause agent to exit unless explicitly defined to do so. A new configuration parameter, exit_on_retry_failure, within the new top-level stanza, template_config, can be set to true in order to cause agent to exit. Note that for agent to exit if

    ... (truncated)

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump github.com/spf13/cobra from 1.5.0 to 1.6.1

    Bump github.com/spf13/cobra from 1.5.0 to 1.6.1

    Bumps github.com/spf13/cobra from 1.5.0 to 1.6.1.

    Release notes

    Sourced from github.com/spf13/cobra's releases.

    v1.6.1

    Bug fixes 🐛

    • Fixes a panic when AddGroup isn't called before AddCommand(my-sub-command) is executed. This can happen within more complex cobra file structures that have many different inits to be executed. Now, the check for groups has been moved to ExecuteC and provides more flexibility when working with grouped commands - @​marckhouzam (and shout out to @​aawsome, @​andig and @​KINGSABRI for a deep investigation into this! 👏🏼)

    v1.6.0

    Summer 2022 Release

    Some exciting changes make their way to Cobra! Command completions continue to get better and better (including adding --help and --version automatic flags to the completions list). Grouping is now possible in your help output as well! And you can now use the OnFinalize method to cleanup things when all "work" is done. Checkout the full changelog below:


    Features 🌠

    Deprecation 👎🏼

    • ExactValidArgs is deprecated (but not being removed entirely). This is abit nuanced, so checkout #1643 for further information and the updated user_guide.md on how this may affect you (and how you can take advantage of the correct behavior in the validators): @​umarcor #1643

    Bug fixes 🐛

    Dependencies 🗳️

    Testing 🤔

    Docs ✏️

    Misc 💭

    ... (truncated)

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
  • Bump github.com/wealdtech/go-eth2-wallet-encryptor-keystorev4 from 1.2.0 to 1.3.0

    Bump github.com/wealdtech/go-eth2-wallet-encryptor-keystorev4 from 1.2.0 to 1.3.0

    Bumps github.com/wealdtech/go-eth2-wallet-encryptor-keystorev4 from 1.2.0 to 1.3.0.

    Commits

    Dependabot compatibility score

    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 commands and options

    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 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)
Related tags
A collection of small Go utilities to make life easier.

The simplego package provides a collection of Go utilities for common tasks.

Jan 4, 2023
💪 Helper Utils For The Go: string, array/slice, map, format, cli, env, filesystem, test and more.
💪 Helper Utils For The Go: string, array/slice, map, format, cli, env, filesystem, test and more.

?? Helper Utils For The Go: string, array/slice, map, format, cli, env, filesystem, test and more. Go 的一些工具函数,格式化,特殊处理,常用信息获取等等

Jan 6, 2023
Common utils that need in every development

Utils modules Common utils that need in every development Modules Conversion String IntToString(num int) string Int8ToString(num int8) string Int16ToS

Nov 5, 2021
A fully Go userland with Linux bootloaders! u-root can create a one-binary root file system (initramfs) containing a busybox-like set of tools written in Go.

u-root Description u-root embodies four different projects. Go versions of many standard Linux tools, such as ls, cp, or shutdown. See cmds/core for m

Dec 29, 2022
Utilities and immutable collections for functional programming in Golang

Utilities and immutable collections for functional programming in Golang. This is an experimental library to play with the new Generics Feature in Go 1.18.

Sep 1, 2022
Utilities to generate (reference) documentation for the docker CLI

About This is a library containing utilities to generate (reference) documentation for the docker CLI on docs.docker.com. Disclaimer This library is i

Dec 28, 2022
Utilities for interacting with Dockerfiles
Utilities for interacting with Dockerfiles

go-dockerfile Golang utilities for interacting with Dockerfiles. This is not a place of honor. No esteemed source code is commemorated here. Don't tak

Apr 6, 2022
CUE utilities and helpers for working with tree based objects in any combination of CUE, Yaml, and JSON.

Cuetils CUE utilities and helpers for working with tree based objects in any combination of CUE, Yaml, and JSON. Using As a command line binary The cu

Dec 24, 2022
Simple utilities for creating ascii text in Go

Simple utilities for creating ascii text in Go

Oct 30, 2021
golden provides utilities for golden file tests.

golden provides utilities for golden file tests.

Dec 27, 2022
Source Repo for utilities used in Atlas

Atlas-Utilities Source Repo for utilities used in Atlas filepicker Simple file picker in Go using go-common-file-dialog This returns the path of a fil

Dec 25, 2022
Utilities for processing Wikipedia dumps in Go

Utilities for processing Wikipedia dumps in Go A Go package providing utilities for processing Wikipedia dumps. Features: Supports Wikidata entities J

Nov 29, 2022
Utilities for rounding and truncating floating point numbers.

Rounders Provides utilities for rounding and truncating floating point numbers. Example: rounders.RoundToDecimals(12.48881, 2)

Jan 6, 2022
Go-path - A helper package that provides utilities for parsing and using ipfs paths

go-path is a helper package that provides utilities for parsing and using ipfs paths

Jan 18, 2022
Goety - Generics based Go utilities

goety General purpose Go utilities. Package channel Utilities to work with chann

May 16, 2022
A collection of functional operators for golang with generics

fn fn is a collection of go functional operators with generics Getting Started P

Jul 8, 2022
gopkg is a universal utility collection for Go, it complements offerings such as Boost, Better std, Cloud tools.

gopkg is a universal utility collection for Go, it complements offerings such as Boost, Better std, Cloud tools. Table of Contents Introduction

Jan 5, 2023
Collection of unusual generics usecases in Go

Unusual Generics Type parameters or Generics in Go designed to reduce boilerplate for container data types like lists, graphs, etc. and functions like

Dec 14, 2022
Generic-based collection tools

go-collection go collection is a tool implemented using generic, it can help you process slice/map data quickly and easily convert between them. Note:

Dec 29, 2022