René's URL Explorer Experiment


Title: Validation of Security Groups is wrong · Issue #1054 · stackitcloud/stackit-sdk-python · GitHub

Open Graph Title: Validation of Security Groups is wrong · Issue #1054 · stackitcloud/stackit-sdk-python

X Title: Validation of Security Groups is wrong · Issue #1054 · stackitcloud/stackit-sdk-python

Description: Invalid validation rule for security group We have a validation rule in place that checks for the correct name of a security group. It does not allow consecutive special characters in a name that is actually valid: cls.pydantic_validator...

Open Graph Description: Invalid validation rule for security group We have a validation rule in place that checks for the correct name of a security group. It does not allow consecutive special characters in a name that i...

X Description: Invalid validation rule for security group We have a validation rule in place that checks for the correct name of a security group. It does not allow consecutive special characters in a name that i...

Opengraph URL: https://github.com/stackitcloud/stackit-sdk-python/issues/1054

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Validation of Security Groups is wrong","articleBody":"## Invalid validation rule for security group\n\nWe have a validation rule in place that checks for the correct name of a security group. It does not allow consecutive special characters in a name that is actually valid:\n\ncls.__pydantic_validator__.validate_python(\\npydantic_core._pydantic_core.ValidationError: 1 validation error for SecurityGroup\\nname\\n  \nValue error, must validate the regular expression /^[A-Za-z0-9]+((-|_|\\\\s|\\\\.)[A-Za-z0-9]+)*$/ [type=value_error, input_value='Nagios Monitoring - NRPE', input_type=str]\n\nThe problem is, that a space, dash and another space in a row are correct, but maybe two spaces are not. Either the regex needs to be more specific or is should be deleted. \n\n## Steps to reproduce\nThe error is in the class iaas/models/security_group.py\n\n```python\n    @field_validator(\"name\")\n    def name_validate_regular_expression(cls, value):\n        \"\"\"Validates the regular expression\"\"\"\n        if not re.match(r\"^[A-Za-z0-9]+((-|_|\\s|\\.)[A-Za-z0-9]+)*$\", value):\n            raise ValueError(r\"must validate the regular expression /^[A-Za-z0-9]+((-|_|\\s|\\.)[A-Za-z0-9]+)*$/\")\n        return value\n```\n\nthe security groups cannot even be loaded:\n\n```python\n    def __get_security_groups(self, client: DefaultApi, uuid: UUID) -\u003e List[StackitSecurityGroup]:\n        security_groups = client.list_security_groups(uuid)\n```\n\n## Actual behavior\n\nRaises an exception on valid security names\n\n## Expected behavior\n\nRaise only an exception on invalid security group name\n\n## Environment\n - OS: Mac\n - Python version (see `python --version`): `Python 3.9.4`\n - Version of the Python STACKIT SDK:  4.5.0\n\nUnfortunately I could not find the check Openstack is implementing in its code and validation ...\nMaybe it is also not in the responsibility of this class to check weather the name complies with a certain pattern as the Openstack Neutron server will raise a 4xx error when the name is not correct (e.g., too long, already taken, etc) in any case. Maybe we want to rely on what Openstack says to the name (or any other field, or even on any other resource). Maybe we will not be able to keep up with changes on the server side.\n\n\nUps, now I see this bug: https://github.com/stackitcloud/stackit-sdk-python/issues/790\nSame problem, different Openstack resource\nAgain, maybe not the responsibility of this lib to check for the validity of the names, esp. not when reading only the resources","author":{"url":"https://github.com/wuppermann","@type":"Person","name":"wuppermann"},"datePublished":"2025-05-06T15:02:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1054/stackit-sdk-python/issues/1054"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1b135221-97a4-9b3a-de84-9da392bfc698
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC72C:AD316:2937A:35014:6981B4B9
html-safe-nonce7dad0a78bc8187277d64107a083f5b4598ba461f928e69020d8a5ae12c36c4ff
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzJDOkFEMzE2OjI5MzdBOjM1MDE0OjY5ODFCNEI5IiwidmlzaXRvcl9pZCI6IjcxMjM0NjQ3MDk3MzAzMTc0OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac982037141ad178755d7fba2cd6da86b454553b3f01ff84b632f29d9925b8122c
hovercard-subject-tagissue:3043142685
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackitcloud/stackit-sdk-python/1054/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7501ed8b46df3bd5d019b9bc4b48b4c8303bd043ca4066c37afda3d69d72daaf/stackitcloud/stackit-sdk-python/issues/1054
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7501ed8b46df3bd5d019b9bc4b48b4c8303bd043ca4066c37afda3d69d72daaf/stackitcloud/stackit-sdk-python/issues/1054
og:image:altInvalid validation rule for security group We have a validation rule in place that checks for the correct name of a security group. It does not allow consecutive special characters in a name that i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewuppermann
hostnamegithub.com
expected-hostnamegithub.com
Nonee137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6
turbo-cache-controlno-preview
go-importgithub.com/stackitcloud/stackit-sdk-python git https://github.com/stackitcloud/stackit-sdk-python.git
octolytics-dimension-user_id55577607
octolytics-dimension-user_loginstackitcloud
octolytics-dimension-repository_id872376182
octolytics-dimension-repository_nwostackitcloud/stackit-sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id872376182
octolytics-dimension-repository_network_root_nwostackitcloud/stackit-sdk-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd58d68a7813bbec9c91422c8c35f4af33832d70
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/stackitcloud/stackit-sdk-python/issues/1054#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackitcloud%2Fstackit-sdk-python%2Fissues%2F1054
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstackitcloud%2Fstackit-sdk-python%2Fissues%2F1054
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=stackitcloud%2Fstackit-sdk-python
Reloadhttps://github.com/stackitcloud/stackit-sdk-python/issues/1054
Reloadhttps://github.com/stackitcloud/stackit-sdk-python/issues/1054
Reloadhttps://github.com/stackitcloud/stackit-sdk-python/issues/1054
stackitcloud https://github.com/stackitcloud
stackit-sdk-pythonhttps://github.com/stackitcloud/stackit-sdk-python
Notifications https://github.com/login?return_to=%2Fstackitcloud%2Fstackit-sdk-python
Fork 2 https://github.com/login?return_to=%2Fstackitcloud%2Fstackit-sdk-python
Star 47 https://github.com/login?return_to=%2Fstackitcloud%2Fstackit-sdk-python
Code https://github.com/stackitcloud/stackit-sdk-python
Issues 4 https://github.com/stackitcloud/stackit-sdk-python/issues
Pull requests 27 https://github.com/stackitcloud/stackit-sdk-python/pulls
Actions https://github.com/stackitcloud/stackit-sdk-python/actions
Projects 0 https://github.com/stackitcloud/stackit-sdk-python/projects
Security 0 https://github.com/stackitcloud/stackit-sdk-python/security
Insights https://github.com/stackitcloud/stackit-sdk-python/pulse
Code https://github.com/stackitcloud/stackit-sdk-python
Issues https://github.com/stackitcloud/stackit-sdk-python/issues
Pull requests https://github.com/stackitcloud/stackit-sdk-python/pulls
Actions https://github.com/stackitcloud/stackit-sdk-python/actions
Projects https://github.com/stackitcloud/stackit-sdk-python/projects
Security https://github.com/stackitcloud/stackit-sdk-python/security
Insights https://github.com/stackitcloud/stackit-sdk-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/stackitcloud/stackit-sdk-python/issues/1054
New issuehttps://github.com/login?return_to=https://github.com/stackitcloud/stackit-sdk-python/issues/1054
Validation of Security Groups is wronghttps://github.com/stackitcloud/stackit-sdk-python/issues/1054#top
bugSomething isn't workinghttps://github.com/stackitcloud/stackit-sdk-python/issues?q=state%3Aopen%20label%3A%22bug%22
has internal tracking issuehttps://github.com/stackitcloud/stackit-sdk-python/issues?q=state%3Aopen%20label%3A%22has%20internal%20tracking%20issue%22
https://github.com/wuppermann
https://github.com/wuppermann
wuppermannhttps://github.com/wuppermann
on May 6, 2025https://github.com/stackitcloud/stackit-sdk-python/issues/1054#issue-3043142685
#790https://github.com/stackitcloud/stackit-sdk-python/issues/790
bugSomething isn't workinghttps://github.com/stackitcloud/stackit-sdk-python/issues?q=state%3Aopen%20label%3A%22bug%22
has internal tracking issuehttps://github.com/stackitcloud/stackit-sdk-python/issues?q=state%3Aopen%20label%3A%22has%20internal%20tracking%20issue%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.