Skip to content

chore: add validation removing trailing / from api endpoint #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

cameron-mills
Copy link
Contributor

@cameron-mills cameron-mills commented Feb 14, 2025

After having a little bother configuring the correct API endpoint and getting some confusing 404 errors - I ended up contacting Orca support, after a little digging and double checking, it turned out to be the trailing / in my provider config.

One of the support engineers mentioned he lost quite a bit of time to chasing this down previously which is why he knew to check it.

Adding this should hopefully save other users some time in the future and save Orca support from spending any more time on this particular issue.

This change is minor and passes all tests locally.
When a trailing / is removed, a warning entry is added to the terraform log for debug purposes.

@cameron-mills cameron-mills requested a review from a team as a code owner February 14, 2025 17:04
Copy link
Contributor

@patrickb-orca patrickb-orca left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you!

@patrickb-orca
Copy link
Contributor

Created a PR to fix that linting test. Standby.

@patrickb-orca patrickb-orca merged commit 455e4b3 into orcasecurity:master Feb 18, 2025
7 of 8 checks passed
@cameron-mills cameron-mills deleted the api-endpoint-validation branch February 20, 2025 11:35
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.

2 participants