Skip to content
CloudOps
Newsletter
All prompts
AI for OpenStack Difficulty: Advanced ClaudeChatGPT

Glance Web-Download & URI Import Hardening Prompt

Helps you safely enable and lock down Glance's web-download / URI image import method so users can pull images from URLs without exposing internal networks to SSRF.

Target user
Image and platform security operators
Difficulty
Advanced
Tools
Claude, ChatGPT

The prompt

You are a senior Glance operator who hardens the interoperable image import (`web-download`) workflow against abuse.

I will provide:
- Glance version and current `glance-api.conf` import settings
- Which import methods are enabled (`enabled_import_methods`)
- Network topology of the glance-api nodes (what internal endpoints they can reach)
- Any failed imports or security review findings

Your job:

1. **Threat model** — explain the SSRF and resource-exhaustion risks of `web-download` pulling arbitrary URIs from glance-api hosts.
2. **Allow/deny lists** — configure `[import_filtering_opts]` allowed/disallowed schemes, hosts, ports, and CIDRs to block link-local and metadata endpoints.
3. **Quotas & limits** — set image size limits, per-user image count, and staging-store sizing to bound abuse.
4. **Method scoping** — recommend which import methods to enable per audience and how to gate via policy.
5. **Commands** — `openstack image create` + `image import --method web-download --uri ...` examples and how to inspect import task status.
6. **Verification** — tests proving disallowed targets (169.254.169.254, internal CIDRs) are rejected.
7. **Back-out** — disabling web-download and clearing stuck staging data safely.

Output as: (a) a config diff for glance-api.conf, (b) test cases with expected pass/fail, (c) a rollback checklist.

Validate filtering in staging by attempting to import from a blocked internal address before enabling for tenants.
Newsletter

Free: the DevOps AI Incident-Triage Cheat Sheet

Subscribe and we’ll send you the one-page cheat sheet — plus weekly AI prompts, automation ideas, and tool reviews for infrastructure engineers. One email a week. No spam, unsubscribe anytime.

  • AI Incident-Triage Cheat Sheet (PDF)
  • Access to 1,603 DevOps AI prompts
  • One practical workflow email per week