Skip to content
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

Update and improve enrollment token pattern #25

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

GMartinez-Sisti
Copy link
Contributor

Summary

Update and improve enrollment token pattern

Description

Includes new barracuda domains and forces specific match. This will also prevent double copy.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

 → terraform console
> can(regex("^https:\\/\\/[a-zA-Z0-9.-]+\\.(fyde\\.com|access\\.barracuda\\.com)\\/proxies/v[0-9]+\\/enrollment\\/[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\\?proxy_auth_token=[0-9a-zA-Z]+&tenant_id=[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$", "aaa"))
false
> can(regex("^https:\\/\\/[a-zA-Z0-9.-]+\\.(fyde\\.com|access\\.barracuda\\.com)\\/proxies/v[0-9]+\\/enrollment\\/[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\\?proxy_auth_token=[0-9a-zA-Z]+&tenant_id=[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$", "https://enterprise.fyde.com/proxies/v2/enrollment/[redacted]?proxy_auth_token=[redacted]&tenant_id=[redacted]"))
true
> can(regex("^https:\\/\\/[a-zA-Z0-9.-]+\\.(fyde\\.com|access\\.barracuda\\.com)\\/proxies/v[0-9]+\\/enrollment\\/[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\\?proxy_auth_token=[0-9a-zA-Z]+&tenant_id=[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$", "https://us.access.barracuda.com/proxies/v2/enrollment/[redacted]?proxy_auth_token=[redacted]&tenant_id=[redacted]"))
true

@GMartinez-Sisti GMartinez-Sisti force-pushed the bncga-1823-update-token-pattern branch from ef9b3f9 to 8c2192a Compare June 29, 2022 11:38
@GMartinez-Sisti GMartinez-Sisti merged commit a14fc14 into main Jun 29, 2022
@GMartinez-Sisti GMartinez-Sisti deleted the bncga-1823-update-token-pattern branch June 29, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants