Skip to content

feat(vpn): add BGP filter resources and gateway/connection SDK updates - #1720

Open
steffenkoenig wants to merge 5 commits into
stackitcloud:mainfrom
steffenkoenig:main
Open

feat(vpn): add BGP filter resources and gateway/connection SDK updates#1720
steffenkoenig wants to merge 5 commits into
stackitcloud:mainfrom
steffenkoenig:main

Conversation

@steffenkoenig

@steffenkoenig steffenkoenig commented Aug 21, 2026

Copy link
Copy Markdown

Description

Reflects vpn changes:

  • New stackit_vpn_bgp_filter and stackit_vpn_bgp_filter_rule resources and data sources, supporting the new gateway-scoped BGP route filtering API.
  • stackit_vpn_gateway gains an optional network_config block (predefined_network_prefix, routing_table_id).
  • stackit_vpn_connection's tunnel bgp block gains inbound_filter_id, linking a tunnel's BGP session to a stackit_vpn_bgp_filter, with tri-state set/clear/leave-untouched handling on update.
  • integrity_algorithms now additionally accepts sha2_512. sha1 remains supported but is deprecated (SDK enum change, no code change needed since values are derived dynamically); a plan-time warning is now emitted when sha1 is configured, pointing users toward sha2_256/sha2_384/sha2_512 instead.

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see examples/ directory)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Acceptance tests got implemented or updated (see e.g. here)
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

Reflects upcoming stackit-sdk-go vpn changes (stackitcloud/stackit-sdk-go#9324,
pinned by commit since the SDK PR isn't tagged/released yet):

- New stackit_vpn_bgp_filter and stackit_vpn_bgp_filter_rule resources and
  data sources, supporting the new gateway-scoped BGP route filtering API.
- stackit_vpn_gateway gains an optional network_config block
  (predefined_network_prefix, routing_table_id).
- stackit_vpn_connection's tunnel bgp block gains inbound_filter_id, linking
  a tunnel's BGP session to a stackit_vpn_bgp_filter, with tri-state
  set/clear/leave-untouched handling on update.
- integrity_algorithms now accepts sha2_512 instead of sha1 (SDK enum change,
  no code change needed since values are derived dynamically).

go.mod is pinned to the SDK PR's commit as a pseudo-version with a
TODO(vpn-sdk-pin) marker to re-pin once the SDK PR merges and is tagged.
@steffenkoenig
steffenkoenig requested a review from a team as a code owner August 21, 2026 21:53
@steffenkoenig
steffenkoenig marked this pull request as draft August 21, 2026 21:54
The vpn changes (BGP filter, network_config, inbound_filter_id) landed on
stackit-sdk-go main and are now tagged as services/vpn/v0.15.0. Re-pin from
the temporary commit pseudo-version to this release; no code changes needed
since the tag points at the same content already implemented against.
The released stackit-sdk-go v0.15.0 kept `sha1` in
PhaseIntegrityAlgorithmsInner alongside the new `sha2_512`, unlike the
draft PR commit this was originally implemented against (which dropped
`sha1`). No Go code change is needed since the provider already derives
its integrity_algorithms validator values dynamically from the SDK enum,
but the previously generated docs were stale and needed a refresh.
sha1 remains supported by the API but is deprecated. Add a schema
description note and a plan-time diagnostic warning (on create/update)
when a stackit_vpn_connection tunnel's phase1/phase2 integrity_algorithms
includes sha1, pointing users toward sha2_256/sha2_384/sha2_512 instead.
@steffenkoenig
steffenkoenig marked this pull request as ready for review August 21, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant