Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
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.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More OpenStack prompts & error guides

Browse every OpenStack prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.