Skip to content

feat(oidc-discovery-provider): warn when allow_insecure_scheme is enabled - #6970

Merged
sorindumitru merged 1 commit into
spiffe:mainfrom
SAY-5:warn-allow-insecure-scheme
May 21, 2026
Merged

sorindumitru merged 1 commit into
spiffe:mainfrom
SAY-5:warn-allow-insecure-scheme

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 19, 2026

Copy link
Copy Markdown
Contributor

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality
OIDC Discovery Provider startup logging.

Description of change
Emit a startup warning when allow_insecure_scheme=true so operators have a runtime indication that JWKS keys are being served over HTTP. This implements the High Priority item from #6968 (the startup warning).

Which issue this PR fixes
fixes #6968

@sorindumitru sorindumitru left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @SAY-5! Could you also add a small note in the README.md that this experimental. That would also take care of point 3 there and that should be enough to close the issue.

@SAY-5

SAY-5 commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

Done, marked it as experimental in the config table with a note about the startup warning.

@sorindumitru

Copy link
Copy Markdown
Member

Done, marked it as experimental in the config table with a note about the startup warning.

So sorry, no idea why I said experimental, maybe it was too early in the morning. Could you remove the experimental from there, the note about the warning is sufficient.

@SAY-5
SAY-5 force-pushed the warn-allow-insecure-scheme branch from f65ad5f to 331d7b7 Compare May 21, 2026 06:30
@SAY-5

SAY-5 commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

No worries, dropped the experimental marker and kept just the warning note.

@sorindumitru sorindumitru left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @SAY-5 !

@sorindumitru
sorindumitru enabled auto-merge May 21, 2026 06:40
auto-merge was automatically disabled May 21, 2026 07:06

Head branch was pushed to by a user without write access

@SAY-5
SAY-5 force-pushed the warn-allow-insecure-scheme branch from 331d7b7 to 92c5333 Compare May 21, 2026 07:06
@SAY-5
SAY-5 force-pushed the warn-allow-insecure-scheme branch from 92c5333 to 783df46 Compare May 21, 2026 09:03
@sorindumitru
sorindumitru enabled auto-merge May 21, 2026 09:28
@sorindumitru sorindumitru added this to the 1.15.1 milestone May 21, 2026
@sorindumitru
sorindumitru added this pull request to the merge queue May 21, 2026
Merged via the queue into spiffe:main with commit 4747634 May 21, 2026
50 checks passed
MikeZappa87 pushed a commit to MikeZappa87/spire that referenced this pull request May 29, 2026
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.

Add runtime warnings for allowInsecureScheme in OIDC Discovery Provider

2 participants