Skip to content

Commit

Permalink
Merge pull request #80 from olavst-spk/bootstrap_token_regex
Browse files Browse the repository at this point in the history
Do not allow bootstrap tokens with a leading newline
  • Loading branch information
tuxmea authored Feb 1, 2024
2 parents dd60b3b + 0e74e3a commit 17384dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4105,7 +4105,7 @@ The index of the IP to retrieve

A Kubernetes bootstrap token, must be 16-characters lowercase alphanumerical

Alias of `Pattern[/^[a-z0-9]{16}\z/]`
Alias of `Pattern[/\A[a-z0-9]{16}\z/]`

### <a name="K8s--CIDR"></a>`K8s::CIDR`

Expand Down
2 changes: 1 addition & 1 deletion types/bootstrap_token.pp
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# @summary A Kubernetes bootstrap token, must be 16-characters lowercase alphanumerical
type K8s::Bootstrap_token = Pattern[/^[a-z0-9]{16}\z/]
type K8s::Bootstrap_token = Pattern[/\A[a-z0-9]{16}\z/]

0 comments on commit 17384dc

Please sign in to comment.