Involved in indole glucosinolate biosynthesis. Catalyzes hydroxylation reactions of the glucosinolate indole ring. Converts indol-3-yl-methylglucosinolate (I3M) to 4-hydroxy-indol-3-yl-methylglucosinolate (4OH-I3M) and/or 1-hydroxy-indol-3-yl-methylglucosinolate (1OH-I3M) intermediates. These hydroxy intermediates are converted to 4-methoxy-indol-3-yl-methylglucosinolate (4MO-I3M) and 1-methoxy-indol-3-yl-methylglucosinolate (1MO-I3M) by indole glucosinolate methyltransferase 1 and 2 (IGMT1 and IGMT2) (PubMed:21317374). Contributes to defense against the green peach aphid (Myzus persicae), a generalist phloem-feeding herbivore (PubMed:19293369). Required for the biosynthesis of antifungal indole glucosinolate metabolites (PubMed:19095900, PubMed:20605856, PubMed:20408997, PubMed:21317374). Required for the pathogen-induced accumulation of 4MO-I3M, which in turn is activated by the atypical BGLU26/PEN2 myrosinase (PubMed:19095900). Required for the biosynthesis of Trp-derived antifungal compounds and non-host resistance to the necrotrophic fungal pathogen Plectosphaerella cucumerina (PubMed:20408997). Required for resistance to the non-adapted fungal pathogen Colletotrichum gloeosporioides (PubMed:20605856). Secondary metabolite biosynthesis. By beta-aminobutyric acid (BABA) and elicitors of pattern-triggered immunity (PTI), such as flg22 and elf26 peptides. Belongs to the cytochrome P450 family.